diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 2e06a164426d..b462fc29088b 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -172,7 +172,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 3970fede42f2..4cc9df133563 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.20230706.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230706.2" } } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs index dd157e6434a7..7265dbddfb73 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs @@ -4,56 +4,56 @@ public partial class ApplicationData { protected ApplicationData() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string applicationDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string applicationDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllApplicationData(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable applicationIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllApplicationDataAsync(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable applicationIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllApplicationDataByPartyId(string partyId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllApplicationDataByPartyIdAsync(string partyId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetApplicationData(string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetApplicationDataAsync(string partyId, string applicationDataId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllApplicationData(double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable applicationIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllApplicationDataAsync(double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable applicationIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllApplicationDataByPartyId(string partyId, double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllApplicationDataByPartyIdAsync(string partyId, double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetApplicationData(string partyId, string applicationDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetApplicationDataAsync(string partyId, string applicationDataId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } } public partial class Attachments { protected Attachments() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } public virtual Azure.Response Delete(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Download(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DownloadAsync(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAttachment(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAttachmentAsync(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAttachmentsByPartyId(string partyId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAttachmentsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Download(string partyId, string attachmentId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DownloadAsync(string partyId, string attachmentId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetAttachment(string partyId, string attachmentId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAttachmentAsync(string partyId, string attachmentId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAttachmentsByPartyId(string partyId, System.Collections.Generic.IEnumerable resourceIds, System.Collections.Generic.IEnumerable resourceTypes, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAttachmentsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable resourceIds, System.Collections.Generic.IEnumerable resourceTypes, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Boundaries { protected Boundaries() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string boundaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string boundaryId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string boundaryId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string boundaryId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetBoundaries(string parentType = null, string type = null, System.Collections.Generic.IEnumerable parentIds = null, double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable boundaryIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetBoundariesAsync(string parentType = null, string type = null, System.Collections.Generic.IEnumerable parentIds = null, double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable boundaryIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetBoundariesByPartyId(string partyId, string parentType = null, string type = null, System.Collections.Generic.IEnumerable parentIds = null, double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetBoundariesByPartyIdAsync(string partyId, string parentType = null, string type = null, System.Collections.Generic.IEnumerable parentIds = null, double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetBoundary(string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetBoundaryAsync(string partyId, string boundaryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetOverlap(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetOverlapAsync(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetBoundaries(string parentType, string type, System.Collections.Generic.IEnumerable parentIds, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable boundaryIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetBoundariesAsync(string parentType, string type, System.Collections.Generic.IEnumerable parentIds, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable boundaryIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetBoundariesByPartyId(string partyId, string parentType, string type, System.Collections.Generic.IEnumerable parentIds, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetBoundariesByPartyIdAsync(string partyId, string parentType, string type, System.Collections.Generic.IEnumerable parentIds, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetBoundary(string partyId, string boundaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetBoundaryAsync(string partyId, string boundaryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetOverlap(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetOverlapAsync(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, Azure.RequestContext context) { throw null; } public virtual Azure.Pageable Search(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.AsyncPageable SearchAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Pageable SearchByPartyId(string partyId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -67,10 +67,10 @@ protected CropProducts() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropProductId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string cropProductId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string cropProductId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCropProduct(string cropProductId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCropProductAsync(string cropProductId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCropProducts(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable traits = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCropProductsAsync(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable traits = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCropProduct(string cropProductId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCropProductAsync(string cropProductId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCropProducts(System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable brands, System.Collections.Generic.IEnumerable products, System.Collections.Generic.IEnumerable traits, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCropProductsAsync(System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable brands, System.Collections.Generic.IEnumerable products, System.Collections.Generic.IEnumerable traits, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Crops { @@ -80,10 +80,10 @@ protected Crops() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string cropId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string cropId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCrop(string cropId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCropAsync(string cropId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCrops(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable breedingMethods = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCropsAsync(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable breedingMethods = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCrop(string cropId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCropAsync(string cropId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCrops(System.Collections.Generic.IEnumerable phenotypes, System.Collections.Generic.IEnumerable breedingMethods, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCropsAsync(System.Collections.Generic.IEnumerable phenotypes, System.Collections.Generic.IEnumerable breedingMethods, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class DeviceDataModels { @@ -93,10 +93,10 @@ protected DeviceDataModels() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorPartnerId, string deviceDataModelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDeviceDataModel(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDeviceDataModelAsync(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetDeviceDataModels(string sensorPartnerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetDeviceDataModelsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetDeviceDataModel(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDeviceDataModelAsync(string sensorPartnerId, string deviceDataModelId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetDeviceDataModels(string sensorPartnerId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDeviceDataModelsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Devices { @@ -106,10 +106,10 @@ protected Devices() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorPartnerId, string deviceId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorPartnerId, string deviceId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorPartnerId, string deviceId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDevice(string sensorPartnerId, string deviceId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDeviceAsync(string sensorPartnerId, string deviceId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetDevices(string sensorPartnerId, System.Collections.Generic.IEnumerable parentDeviceIds = null, System.Collections.Generic.IEnumerable deviceDataModelIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetDevicesAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable parentDeviceIds = null, System.Collections.Generic.IEnumerable deviceDataModelIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetDevice(string sensorPartnerId, string deviceId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDeviceAsync(string sensorPartnerId, string deviceId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetDevices(string sensorPartnerId, System.Collections.Generic.IEnumerable parentDeviceIds, System.Collections.Generic.IEnumerable deviceDataModelIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDevicesAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable parentDeviceIds, System.Collections.Generic.IEnumerable deviceDataModelIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class FarmBeatsClient { @@ -167,12 +167,12 @@ public partial class FarmerOAuthTokens { protected FarmerOAuthTokens() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAuthenticatedFarmersDetails(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable partyIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAuthenticatedFarmersDetailsAsync(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable partyIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAuthenticatedFarmersDetails(System.Collections.Generic.IEnumerable authProviderIds, System.Collections.Generic.IEnumerable partyIds, bool? isValid, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAuthenticatedFarmersDetailsAsync(System.Collections.Generic.IEnumerable authProviderIds, System.Collections.Generic.IEnumerable partyIds, bool? isValid, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetOAuthConnectionLink(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task GetOAuthConnectionLinkAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } } @@ -182,65 +182,65 @@ protected FarmOperationsDataIngestion() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateJob(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } } public partial class Farms { protected Farms() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string farmId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string farmId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string farmId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string farmId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string farmId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string farmId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string farmId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string farmId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetFarm(string partyId, string farmId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetFarmAsync(string partyId, string farmId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetFarms(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetFarmsAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetFarmsByPartyId(string partyId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetFarmsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetFarm(string partyId, string farmId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetFarmAsync(string partyId, string farmId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetFarms(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetFarmsAsync(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetFarmsByPartyId(string partyId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetFarmsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Fields { protected Fields() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string fieldId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string fieldId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string fieldId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string fieldId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetField(string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetFieldAsync(string partyId, string fieldId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetFields(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetFieldsAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetFieldsByPartyId(string partyId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetFieldsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetField(string partyId, string fieldId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetFieldAsync(string partyId, string fieldId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetFields(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetFieldsAsync(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetFieldsByPartyId(string partyId, System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetFieldsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class HarvestData { protected HarvestData() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string harvestDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string harvestDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllHarvestData(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable harvestDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllHarvestDataAsync(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable harvestDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllHarvestDataByPartyId(string partyId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllHarvestDataByPartyIdAsync(string partyId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetHarvestData(string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetHarvestDataAsync(string partyId, string harvestDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllHarvestData(double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable harvestDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllHarvestDataAsync(double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable harvestDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllHarvestDataByPartyId(string partyId, double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllHarvestDataByPartyIdAsync(string partyId, double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetHarvestData(string partyId, string harvestDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetHarvestDataAsync(string partyId, string harvestDataId, Azure.RequestContext context) { throw null; } } public partial class ImageProcessing { @@ -248,59 +248,59 @@ protected ImageProcessing() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateRasterizeJob(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateRasterizeJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRasterizeJob(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRasterizeJobAsync(string jobId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetRasterizeJob(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRasterizeJobAsync(string jobId, Azure.RequestContext context) { throw null; } } public partial class InsightAttachments { protected InsightAttachments() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } public virtual Azure.Response Delete(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Download(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DownloadAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetInsightAttachment(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetInsightAttachmentAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetInsightAttachmentsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, System.Collections.Generic.IEnumerable insightIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetInsightAttachmentsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, System.Collections.Generic.IEnumerable insightIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Download(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DownloadAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetInsightAttachment(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetInsightAttachmentAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetInsightAttachmentsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, System.Collections.Generic.IEnumerable insightIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetInsightAttachmentsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, System.Collections.Generic.IEnumerable insightIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Insights { protected Insights() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetInsight(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetInsightAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetInsightsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, System.DateTimeOffset? minInsightStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxInsightStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minInsightEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxInsightEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable measurementFilters = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetInsightsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, System.DateTimeOffset? minInsightStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxInsightStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minInsightEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxInsightEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable measurementFilters = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetInsight(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetInsightAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetInsightsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, System.DateTimeOffset? minInsightStartDateTime, System.DateTimeOffset? maxInsightStartDateTime, System.DateTimeOffset? minInsightEndDateTime, System.DateTimeOffset? maxInsightEndDateTime, System.Collections.Generic.IEnumerable measurementFilters, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetInsightsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, System.DateTimeOffset? minInsightStartDateTime, System.DateTimeOffset? maxInsightStartDateTime, System.DateTimeOffset? minInsightEndDateTime, System.DateTimeOffset? maxInsightEndDateTime, System.Collections.Generic.IEnumerable measurementFilters, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class ManagementZones { protected ManagementZones() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string managementZoneId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string managementZoneId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetManagementZone(string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetManagementZoneAsync(string partyId, string managementZoneId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetManagementZones(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetManagementZonesAsync(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetManagementZonesByPartyId(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetManagementZonesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetManagementZone(string partyId, string managementZoneId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetManagementZoneAsync(string partyId, string managementZoneId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetManagementZones(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetManagementZonesAsync(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetManagementZonesByPartyId(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetManagementZonesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class ModelInference { @@ -312,12 +312,12 @@ protected ModelInference() { } public virtual System.Threading.Tasks.Task> CreateSensorPlacementModelJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation CreateSoilMoistureModelJob(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateSoilMoistureModelJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetBiomassModelJob(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetBiomassModelJobAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSensorPlacementModelJob(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorPlacementModelJobAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSoilMoistureModelJob(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSoilMoistureModelJobAsync(string jobId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetBiomassModelJob(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetBiomassModelJobAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSensorPlacementModelJob(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorPlacementModelJobAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSoilMoistureModelJob(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSoilMoistureModelJobAsync(string jobId, Azure.RequestContext context) { throw null; } } public partial class NutrientAnalyses { @@ -327,122 +327,122 @@ protected NutrientAnalyses() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string nutrientAnalysisId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string nutrientAnalysisId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string nutrientAnalysisId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetNutrientAnalyses(string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, System.Collections.Generic.IEnumerable classifications = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetNutrientAnalysesAsync(string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, System.Collections.Generic.IEnumerable classifications = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetNutrientAnalysesByPartyId(string partyId, string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, System.Collections.Generic.IEnumerable classifications = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetNutrientAnalysesByPartyIdAsync(string partyId, string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, System.Collections.Generic.IEnumerable classifications = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetNutrientAnalysis(string partyId, string nutrientAnalysisId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetNutrientAnalysisAsync(string partyId, string nutrientAnalysisId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetNutrientAnalyses(string parentType, System.Collections.Generic.IEnumerable parentIds, System.Collections.Generic.IEnumerable classifications, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetNutrientAnalysesAsync(string parentType, System.Collections.Generic.IEnumerable parentIds, System.Collections.Generic.IEnumerable classifications, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetNutrientAnalysesByPartyId(string partyId, string parentType, System.Collections.Generic.IEnumerable parentIds, System.Collections.Generic.IEnumerable classifications, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetNutrientAnalysesByPartyIdAsync(string partyId, string parentType, System.Collections.Generic.IEnumerable parentIds, System.Collections.Generic.IEnumerable classifications, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetNutrientAnalysis(string partyId, string nutrientAnalysisId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetNutrientAnalysisAsync(string partyId, string nutrientAnalysisId, Azure.RequestContext context) { throw null; } } public partial class OAuthProviders { protected OAuthProviders() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string oauthProviderId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string oauthProviderId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string oauthProviderId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string oauthProviderId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string oauthProviderId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string oauthProviderId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetOAuthProvider(string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetOAuthProviderAsync(string oauthProviderId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetOAuthProviders(System.Collections.Generic.IEnumerable providerIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetOAuthProvidersAsync(System.Collections.Generic.IEnumerable providerIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetOAuthProvider(string oauthProviderId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetOAuthProviderAsync(string oauthProviderId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetOAuthProviders(System.Collections.Generic.IEnumerable providerIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetOAuthProvidersAsync(System.Collections.Generic.IEnumerable providerIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Parties { protected Parties() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetParties(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPartiesAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetParty(string partyId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPartyAsync(string partyId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetParties(System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPartiesAsync(System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetParty(string partyId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPartyAsync(string partyId, Azure.RequestContext context) { throw null; } } public partial class PlantingData { protected PlantingData() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string plantingDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string plantingDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllPlantingData(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable plantingDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllPlantingDataAsync(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable plantingDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllPlantingDataByPartyId(string partyId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllPlantingDataByPartyIdAsync(string partyId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPlantingData(string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPlantingDataAsync(string partyId, string plantingDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllPlantingData(double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable plantingDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllPlantingDataAsync(double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable plantingDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllPlantingDataByPartyId(string partyId, double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllPlantingDataByPartyIdAsync(string partyId, double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPlantingData(string partyId, string plantingDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPlantingDataAsync(string partyId, string plantingDataId, Azure.RequestContext context) { throw null; } } public partial class PlantTissueAnalyses { protected PlantTissueAnalyses() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string plantTissueAnalysisId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string plantTissueAnalysisId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPlantTissueAnalyses(System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable cropProductsIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPlantTissueAnalysesAsync(System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable cropProductsIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPlantTissueAnalysesByPartyId(string partyId, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable cropProductsIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPlantTissueAnalysesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable cropProductsIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPlantTissueAnalysis(string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPlantTissueAnalysisAsync(string partyId, string plantTissueAnalysisId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPlantTissueAnalyses(System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable cropProductsIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPlantTissueAnalysesAsync(System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable cropProductsIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPlantTissueAnalysesByPartyId(string partyId, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable cropProductsIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPlantTissueAnalysesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable cropProductsIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPlantTissueAnalysis(string partyId, string plantTissueAnalysisId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPlantTissueAnalysisAsync(string partyId, string plantTissueAnalysisId, Azure.RequestContext context) { throw null; } } public partial class PrescriptionMaps { protected PrescriptionMaps() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string prescriptionMapId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string prescriptionMapId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPrescriptionMap(string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPrescriptionMapAsync(string partyId, string prescriptionMapId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPrescriptionMaps(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPrescriptionMapsAsync(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPrescriptionMapsByPartyId(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPrescriptionMapsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPrescriptionMap(string partyId, string prescriptionMapId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPrescriptionMapAsync(string partyId, string prescriptionMapId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPrescriptionMaps(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPrescriptionMapsAsync(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPrescriptionMapsByPartyId(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPrescriptionMapsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Prescriptions { protected Prescriptions() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string prescriptionId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string prescriptionId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPrescription(string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPrescriptionAsync(string partyId, string prescriptionId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPrescriptions(System.Collections.Generic.IEnumerable prescriptionMapIds = null, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable productCodes = null, System.Collections.Generic.IEnumerable productNames = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPrescriptionsAsync(System.Collections.Generic.IEnumerable prescriptionMapIds = null, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable productCodes = null, System.Collections.Generic.IEnumerable productNames = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPrescriptionsByPartyId(string partyId, System.Collections.Generic.IEnumerable prescriptionMapIds = null, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable productCodes = null, System.Collections.Generic.IEnumerable productNames = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPrescriptionsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable prescriptionMapIds = null, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable productCodes = null, System.Collections.Generic.IEnumerable productNames = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPrescription(string partyId, string prescriptionId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPrescriptionAsync(string partyId, string prescriptionId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPrescriptions(System.Collections.Generic.IEnumerable prescriptionMapIds, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable productCodes, System.Collections.Generic.IEnumerable productNames, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPrescriptionsAsync(System.Collections.Generic.IEnumerable prescriptionMapIds, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable productCodes, System.Collections.Generic.IEnumerable productNames, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPrescriptionsByPartyId(string partyId, System.Collections.Generic.IEnumerable prescriptionMapIds, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable productCodes, System.Collections.Generic.IEnumerable productNames, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPrescriptionsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable prescriptionMapIds, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable productCodes, System.Collections.Generic.IEnumerable productNames, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Scenes { @@ -450,14 +450,14 @@ protected Scenes() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateSatelliteDataIngestionJob(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateSatelliteDataIngestionJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Download(string filePath, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DownloadAsync(string filePath, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSatelliteDataIngestionJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetScenes(string provider, string partyId, string boundaryId, string source, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetScenesAsync(string provider, string partyId, string boundaryId, string source, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetStacFeature(string collectionId, string featureId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetStacFeatureAsync(string collectionId, string featureId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Download(string filePath, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DownloadAsync(string filePath, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSatelliteDataIngestionJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetScenes(string provider, string partyId, string boundaryId, string source, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, double? maxCloudCoveragePercentage, double? maxDarkPixelCoveragePercentage, System.Collections.Generic.IEnumerable imageNames, System.Collections.Generic.IEnumerable imageResolutions, System.Collections.Generic.IEnumerable imageFormats, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetScenesAsync(string provider, string partyId, string boundaryId, string source, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, double? maxCloudCoveragePercentage, double? maxDarkPixelCoveragePercentage, System.Collections.Generic.IEnumerable imageNames, System.Collections.Generic.IEnumerable imageResolutions, System.Collections.Generic.IEnumerable imageFormats, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetStacFeature(string collectionId, string featureId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetStacFeatureAsync(string collectionId, string featureId, Azure.RequestContext context) { throw null; } public virtual Azure.Response SearchFeatures(string collectionId, Azure.Core.RequestContent content, int? maxpagesize = default(int?), int? skip = default(int?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task SearchFeaturesAsync(string collectionId, Azure.Core.RequestContent content, int? maxpagesize = default(int?), int? skip = default(int?), Azure.RequestContext context = null) { throw null; } } @@ -465,20 +465,20 @@ public partial class SeasonalFields { protected SeasonalFields() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string seasonalFieldId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string seasonalFieldId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSeasonalField(string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSeasonalFieldAsync(string partyId, string seasonalFieldId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSeasonalFields(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropProductIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonalFieldIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSeasonalFieldsAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropProductIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable seasonalFieldIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSeasonalFieldsByPartyId(string partyId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropProductIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSeasonalFieldsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropProductIds = null, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSeasonalField(string partyId, string seasonalFieldId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSeasonalFieldAsync(string partyId, string seasonalFieldId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSeasonalFields(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropProductIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonalFieldIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSeasonalFieldsAsync(System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropProductIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable seasonalFieldIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSeasonalFieldsByPartyId(string partyId, System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropProductIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSeasonalFieldsByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable farmIds, System.Collections.Generic.IEnumerable fieldIds, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable cropProductIds, System.Collections.Generic.IEnumerable cropIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Seasons { @@ -488,10 +488,10 @@ protected Seasons() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string seasonId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string seasonId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string seasonId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSeason(string seasonId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSeasonAsync(string seasonId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSeasons(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSeasonsAsync(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSeason(string seasonId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSeasonAsync(string seasonId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSeasons(System.DateTimeOffset? minStartDateTime, System.DateTimeOffset? maxStartDateTime, System.DateTimeOffset? minEndDateTime, System.DateTimeOffset? maxEndDateTime, System.Collections.Generic.IEnumerable years, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSeasonsAsync(System.DateTimeOffset? minStartDateTime, System.DateTimeOffset? maxStartDateTime, System.DateTimeOffset? minEndDateTime, System.DateTimeOffset? maxEndDateTime, System.Collections.Generic.IEnumerable years, System.Collections.Generic.IEnumerable seasonIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class SensorDataModels { @@ -501,17 +501,17 @@ protected SensorDataModels() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorPartnerId, string sensorDataModelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSensorDataModel(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorDataModelAsync(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSensorDataModels(string sensorPartnerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSensorDataModelsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSensorDataModel(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorDataModelAsync(string sensorPartnerId, string sensorDataModelId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSensorDataModels(string sensorPartnerId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSensorDataModelsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class SensorEvents { protected SensorEvents() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetSensorEvents(string sensorId, string sensorPartnerId, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), bool? excludeDuplicateEvents = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorEventsAsync(string sensorId, string sensorPartnerId, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), bool? excludeDuplicateEvents = default(bool?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSensorEvents(string sensorId, string sensorPartnerId, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, bool? excludeDuplicateEvents, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorEventsAsync(string sensorId, string sensorPartnerId, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, bool? excludeDuplicateEvents, Azure.RequestContext context) { throw null; } } public partial class SensorMappings { @@ -521,27 +521,27 @@ protected SensorMappings() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorMappingId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorMappingId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorMappingId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSensorMapping(string sensorMappingId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorMappingAsync(string sensorMappingId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSensorMappings(System.Collections.Generic.IEnumerable sensorIds = null, System.Collections.Generic.IEnumerable sensorPartnerIds = null, System.Collections.Generic.IEnumerable partyIds = null, System.Collections.Generic.IEnumerable boundaryIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSensorMappingsAsync(System.Collections.Generic.IEnumerable sensorIds = null, System.Collections.Generic.IEnumerable sensorPartnerIds = null, System.Collections.Generic.IEnumerable partyIds = null, System.Collections.Generic.IEnumerable boundaryIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSensorMapping(string sensorMappingId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorMappingAsync(string sensorMappingId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSensorMappings(System.Collections.Generic.IEnumerable sensorIds, System.Collections.Generic.IEnumerable sensorPartnerIds, System.Collections.Generic.IEnumerable partyIds, System.Collections.Generic.IEnumerable boundaryIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSensorMappingsAsync(System.Collections.Generic.IEnumerable sensorIds, System.Collections.Generic.IEnumerable sensorPartnerIds, System.Collections.Generic.IEnumerable partyIds, System.Collections.Generic.IEnumerable boundaryIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class SensorPartnerIntegrations { protected SensorPartnerIntegrations() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CheckConsent(string sensorPartnerId, string integrationId, string key, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CheckConsentAsync(string sensorPartnerId, string integrationId, string key, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CheckConsent(string sensorPartnerId, string integrationId, string key, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CheckConsentAsync(string sensorPartnerId, string integrationId, string key, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string sensorPartnerId, string integrationId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorPartnerId, string integrationId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GenerateConsentLink(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GenerateConsentLinkAsync(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSensorPartnerIntegration(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorPartnerIntegrationAsync(string sensorPartnerId, string integrationId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSensorPartnerIntegrations(string sensorPartnerId, System.Collections.Generic.IEnumerable integrationIds = null, System.Collections.Generic.IEnumerable partyIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSensorPartnerIntegrationsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable integrationIds = null, System.Collections.Generic.IEnumerable partyIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GenerateConsentLink(string sensorPartnerId, string integrationId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GenerateConsentLinkAsync(string sensorPartnerId, string integrationId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSensorPartnerIntegration(string sensorPartnerId, string integrationId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorPartnerIntegrationAsync(string sensorPartnerId, string integrationId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSensorPartnerIntegrations(string sensorPartnerId, System.Collections.Generic.IEnumerable integrationIds, System.Collections.Generic.IEnumerable partyIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSensorPartnerIntegrationsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable integrationIds, System.Collections.Generic.IEnumerable partyIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class Sensors { @@ -551,12 +551,12 @@ protected Sensors() { } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sensorPartnerId, string sensorId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetConnectionString(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetConnectionStringAsync(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSensor(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSensorAsync(string sensorPartnerId, string sensorId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSensors(string sensorPartnerId, System.Collections.Generic.IEnumerable sensorDataModelIds = null, System.Collections.Generic.IEnumerable sensorMappingIds = null, System.Collections.Generic.IEnumerable deviceIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSensorsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable sensorDataModelIds = null, System.Collections.Generic.IEnumerable sensorMappingIds = null, System.Collections.Generic.IEnumerable deviceIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetConnectionString(string sensorPartnerId, string sensorId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetConnectionStringAsync(string sensorPartnerId, string sensorId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSensor(string sensorPartnerId, string sensorId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSensorAsync(string sensorPartnerId, string sensorId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSensors(string sensorPartnerId, System.Collections.Generic.IEnumerable sensorDataModelIds, System.Collections.Generic.IEnumerable sensorMappingIds, System.Collections.Generic.IEnumerable deviceIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSensorsAsync(string sensorPartnerId, System.Collections.Generic.IEnumerable sensorDataModelIds, System.Collections.Generic.IEnumerable sensorMappingIds, System.Collections.Generic.IEnumerable deviceIds, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Response RenewConnectionString(string sensorPartnerId, string sensorId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RenewConnectionStringAsync(string sensorPartnerId, string sensorId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } } @@ -575,20 +575,20 @@ public partial class TillageData { protected TillageData() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string tillageDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string tillageDataId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllTillageData(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable tillageDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllTillageDataAsync(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable tillageDataIds = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllTillageDataByPartyId(string partyId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllTillageDataByPartyIdAsync(string partyId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTillageData(string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTillageDataAsync(string partyId, string tillageDataId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllTillageData(double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable tillageDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllTillageDataAsync(double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable tillageDataIds, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllTillageDataByPartyId(string partyId, double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllTillageDataByPartyIdAsync(string partyId, double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable associatedBoundaryIds, System.DateTimeOffset? minOperationStartDateTime, System.DateTimeOffset? maxOperationStartDateTime, System.DateTimeOffset? minOperationEndDateTime, System.DateTimeOffset? maxOperationEndDateTime, System.DateTimeOffset? minOperationModifiedDateTime, System.DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTillageData(string partyId, string tillageDataId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTillageDataAsync(string partyId, string tillageDataId, Azure.RequestContext context) { throw null; } } public partial class Weather { @@ -598,12 +598,12 @@ protected Weather() { } public virtual System.Threading.Tasks.Task> CreateDataDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation CreateDataIngestionJob(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateDataIngestionJobAsync(Azure.WaitUntil waitUntil, string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDataDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetWeathers(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetWeathersAsync(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetDataDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDataDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetWeathers(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetWeathersAsync(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime, System.DateTimeOffset? endDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } public partial class WeatherData { @@ -616,20 +616,20 @@ public partial class Zones { protected Zones() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation CreateCascadeDeleteJob(Azure.WaitUntil waitUntil, string jobId, string partyId, string zoneId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCascadeDeleteJobAsync(Azure.WaitUntil waitUntil, string jobId, string partyId, string zoneId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(string partyId, string zoneId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string partyId, string zoneId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetZone(string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetZoneAsync(string partyId, string zoneId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetZones(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable managementZoneIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetZonesAsync(System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable managementZoneIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetZonesByPartyId(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable managementZoneIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetZonesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types = null, System.Collections.Generic.IEnumerable managementZoneIds = null, System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetZone(string partyId, string zoneId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetZoneAsync(string partyId, string zoneId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetZones(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable managementZoneIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetZonesAsync(System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable managementZoneIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetZonesByPartyId(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable managementZoneIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetZonesByPartyIdAsync(string partyId, System.Collections.Generic.IEnumerable types, System.Collections.Generic.IEnumerable managementZoneIds, System.Collections.Generic.IEnumerable sources, System.Collections.Generic.IEnumerable ids, System.Collections.Generic.IEnumerable names, System.Collections.Generic.IEnumerable propertyFilters, System.Collections.Generic.IEnumerable statuses, System.DateTimeOffset? minCreatedDateTime, System.DateTimeOffset? maxCreatedDateTime, System.DateTimeOffset? minLastModifiedDateTime, System.DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationData.cs index 0b21eab80fc8..f58496a615a0 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationData.cs @@ -67,7 +67,7 @@ internal ApplicationData(ClientDiagnostics clientDiagnostics, HttpPipeline pipel /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -138,7 +138,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetApplicationDataAsync(string partyId, string applicationDataId, RequestContext context = null) + public virtual async Task GetApplicationDataAsync(string partyId, string applicationDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(applicationDataId, nameof(applicationDataId)); @@ -175,7 +175,7 @@ public virtual async Task GetApplicationDataAsync(string partyId, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetApplicationData(string partyId, string applicationDataId, RequestContext context = null) + public virtual Response GetApplicationData(string partyId, string applicationDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(applicationDataId, nameof(applicationDataId)); @@ -390,7 +390,7 @@ public virtual Response Delete(string partyId, string applicationDataId, Request /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllApplicationDataAsync(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable applicationIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllApplicationDataAsync(double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable applicationIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllApplicationDataRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, applicationIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllApplicationDataNextPageRequest(nextLink, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, applicationIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -441,7 +441,7 @@ public virtual AsyncPageable GetAllApplicationDataAsync(double? minA /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllApplicationData(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable applicationIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllApplicationData(double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable applicationIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllApplicationDataRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, applicationIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllApplicationDataNextPageRequest(nextLink, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, applicationIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -495,7 +495,7 @@ public virtual Pageable GetAllApplicationData(double? minAvgMaterial /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllApplicationDataByPartyIdAsync(string partyId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllApplicationDataByPartyIdAsync(string partyId, double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -551,7 +551,7 @@ public virtual AsyncPageable GetAllApplicationDataByPartyIdAsync(str /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllApplicationDataByPartyId(string partyId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllApplicationDataByPartyId(string partyId, double? minAvgMaterial, double? maxAvgMaterial, double? minTotalMaterial, double? maxTotalMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -580,7 +580,7 @@ public virtual Pageable GetAllApplicationDataByPartyId(string partyI /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -620,7 +620,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string applicationDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); 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 fd464b1eb9ba..877d0ac0be2f 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs @@ -68,7 +68,7 @@ internal Attachments(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAttachmentAsync(string partyId, string attachmentId, RequestContext context = null) + public virtual async Task GetAttachmentAsync(string partyId, string attachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -105,7 +105,7 @@ public virtual async Task GetAttachmentAsync(string partyId, string at /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAttachment(string partyId, string attachmentId, RequestContext context = null) + public virtual Response GetAttachment(string partyId, string attachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -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 = null) + public virtual async Task CreateOrUpdateAsync(string partyId, string attachmentId, RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdate(string partyId, string attachmentId, RequestContent content, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -292,7 +292,7 @@ public virtual Response Delete(string partyId, string attachmentId, RequestConte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DownloadAsync(string partyId, string attachmentId, RequestContext context = null) + public virtual async Task DownloadAsync(string partyId, string attachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -329,7 +329,7 @@ public virtual async Task DownloadAsync(string partyId, string attachm /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Download(string partyId, string attachmentId, RequestContext context = null) + public virtual Response Download(string partyId, string attachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -386,7 +386,7 @@ public virtual Response Download(string partyId, string attachmentId, RequestCon /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAttachmentsByPartyIdAsync(string partyId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAttachmentsByPartyIdAsync(string partyId, IEnumerable resourceIds, IEnumerable resourceTypes, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -433,7 +433,7 @@ public virtual AsyncPageable GetAttachmentsByPartyIdAsync(string par /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAttachmentsByPartyId(string partyId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAttachmentsByPartyId(string partyId, IEnumerable resourceIds, IEnumerable resourceTypes, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Boundaries.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Boundaries.cs index 4584b54fe203..aaa2aae46142 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Boundaries.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Boundaries.cs @@ -67,7 +67,7 @@ internal Boundaries(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -216,7 +216,7 @@ public virtual Response CreateOrUpdate(string partyId, string boundaryId, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetBoundaryAsync(string partyId, string boundaryId, RequestContext context = null) + public virtual async Task GetBoundaryAsync(string partyId, string boundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(boundaryId, nameof(boundaryId)); @@ -253,7 +253,7 @@ public virtual async Task GetBoundaryAsync(string partyId, string boun /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetBoundary(string partyId, string boundaryId, RequestContext context = null) + public virtual Response GetBoundary(string partyId, string boundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(boundaryId, nameof(boundaryId)); @@ -366,7 +366,7 @@ public virtual Response Delete(string partyId, string boundaryId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetOverlapAsync(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, RequestContext context = null) + public virtual async Task GetOverlapAsync(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(boundaryId, nameof(boundaryId)); @@ -407,7 +407,7 @@ public virtual async Task GetOverlapAsync(string partyId, string bound /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetOverlap(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, RequestContext context = null) + public virtual Response GetOverlap(string partyId, string boundaryId, string otherPartyId, string otherBoundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(boundaryId, nameof(boundaryId)); @@ -463,7 +463,7 @@ public virtual Response GetOverlap(string partyId, string boundaryId, string oth /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetBoundariesAsync(string parentType = null, string type = null, IEnumerable parentIds = null, double? minArea = null, double? maxArea = null, IEnumerable boundaryIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetBoundariesAsync(string parentType, string type, IEnumerable parentIds, double? minArea, double? maxArea, IEnumerable boundaryIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetBoundariesRequest(parentType, type, parentIds, minArea, maxArea, boundaryIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetBoundariesNextPageRequest(nextLink, parentType, type, parentIds, minArea, maxArea, boundaryIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -505,7 +505,7 @@ public virtual AsyncPageable GetBoundariesAsync(string parentType = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetBoundaries(string parentType = null, string type = null, IEnumerable parentIds = null, double? minArea = null, double? maxArea = null, IEnumerable boundaryIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetBoundaries(string parentType, string type, IEnumerable parentIds, double? minArea, double? maxArea, IEnumerable boundaryIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetBoundariesRequest(parentType, type, parentIds, minArea, maxArea, boundaryIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetBoundariesNextPageRequest(nextLink, parentType, type, parentIds, minArea, maxArea, boundaryIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -600,7 +600,7 @@ public virtual Pageable Search(RequestContent content, RequestContex /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetBoundariesByPartyIdAsync(string partyId, string parentType = null, string type = null, IEnumerable parentIds = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetBoundariesByPartyIdAsync(string partyId, string parentType, string type, IEnumerable parentIds, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -647,7 +647,7 @@ public virtual AsyncPageable GetBoundariesByPartyIdAsync(string part /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetBoundariesByPartyId(string partyId, string parentType = null, string type = null, IEnumerable parentIds = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetBoundariesByPartyId(string partyId, string parentType, string type, IEnumerable parentIds, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -732,7 +732,7 @@ public virtual Pageable SearchByPartyId(string partyId, RequestConte /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string boundaryId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string boundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -772,7 +772,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string boundaryId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string boundaryId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropProducts.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropProducts.cs index 919bcbe874e2..9d1c9f09f75c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropProducts.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropProducts.cs @@ -67,7 +67,7 @@ internal CropProducts(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCropProductAsync(string cropProductId, RequestContext context = null) + public virtual async Task GetCropProductAsync(string cropProductId, RequestContext context) { Argument.AssertNotNullOrEmpty(cropProductId, nameof(cropProductId)); @@ -102,7 +102,7 @@ public virtual async Task GetCropProductAsync(string cropProductId, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCropProduct(string cropProductId, RequestContext context = null) + public virtual Response GetCropProduct(string cropProductId, RequestContext context) { Argument.AssertNotNullOrEmpty(cropProductId, nameof(cropProductId)); @@ -298,7 +298,7 @@ public virtual Response Delete(string cropProductId, RequestContext context = nu /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCropProductsAsync(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable traits = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetCropProductsAsync(IEnumerable cropIds, IEnumerable brands, IEnumerable products, IEnumerable traits, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCropProductsRequest(cropIds, brands, products, traits, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCropProductsNextPageRequest(nextLink, cropIds, brands, products, traits, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -339,7 +339,7 @@ public virtual AsyncPageable GetCropProductsAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCropProducts(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable traits = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetCropProducts(IEnumerable cropIds, IEnumerable brands, IEnumerable products, IEnumerable traits, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCropProductsRequest(cropIds, brands, products, traits, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCropProductsNextPageRequest(nextLink, cropIds, brands, products, traits, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Crops.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Crops.cs index bc452c55f420..8143c8ce5c91 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Crops.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Crops.cs @@ -67,7 +67,7 @@ internal Crops(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Token /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCropAsync(string cropId, RequestContext context = null) + public virtual async Task GetCropAsync(string cropId, RequestContext context) { Argument.AssertNotNullOrEmpty(cropId, nameof(cropId)); @@ -102,7 +102,7 @@ public virtual async Task GetCropAsync(string cropId, RequestContext c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCrop(string cropId, RequestContext context = null) + public virtual Response GetCrop(string cropId, RequestContext context) { Argument.AssertNotNullOrEmpty(cropId, nameof(cropId)); @@ -296,7 +296,7 @@ public virtual Response Delete(string cropId, RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCropsAsync(IEnumerable phenotypes = null, IEnumerable breedingMethods = null, IEnumerable cropIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetCropsAsync(IEnumerable phenotypes, IEnumerable breedingMethods, IEnumerable cropIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCropsRequest(phenotypes, breedingMethods, cropIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCropsNextPageRequest(nextLink, phenotypes, breedingMethods, cropIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -335,7 +335,7 @@ public virtual AsyncPageable GetCropsAsync(IEnumerable pheno /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCrops(IEnumerable phenotypes = null, IEnumerable breedingMethods = null, IEnumerable cropIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetCrops(IEnumerable phenotypes, IEnumerable breedingMethods, IEnumerable cropIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCropsRequest(phenotypes, breedingMethods, cropIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCropsNextPageRequest(nextLink, phenotypes, breedingMethods, cropIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/DeviceDataModels.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/DeviceDataModels.cs index 6094d4c0222a..61318dc58ee8 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/DeviceDataModels.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/DeviceDataModels.cs @@ -146,7 +146,7 @@ public virtual Response CreateOrUpdate(string sensorPartnerId, string deviceData /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDeviceDataModelAsync(string sensorPartnerId, string deviceDataModelId, RequestContext context = null) + public virtual async Task GetDeviceDataModelAsync(string sensorPartnerId, string deviceDataModelId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(deviceDataModelId, nameof(deviceDataModelId)); @@ -183,7 +183,7 @@ public virtual async Task GetDeviceDataModelAsync(string sensorPartner /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDeviceDataModel(string sensorPartnerId, string deviceDataModelId, RequestContext context = null) + public virtual Response GetDeviceDataModel(string sensorPartnerId, string deviceDataModelId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(deviceDataModelId, nameof(deviceDataModelId)); @@ -309,7 +309,7 @@ public virtual Response Delete(string sensorPartnerId, string deviceDataModelId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetDeviceDataModelsAsync(string sensorPartnerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetDeviceDataModelsAsync(string sensorPartnerId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); @@ -351,7 +351,7 @@ public virtual AsyncPageable GetDeviceDataModelsAsync(string sensorP /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetDeviceDataModels(string sensorPartnerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetDeviceDataModels(string sensorPartnerId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Devices.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Devices.cs index 82d79684e48e..ccf27beb6841 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Devices.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Devices.cs @@ -146,7 +146,7 @@ public virtual Response CreateOrUpdate(string sensorPartnerId, string deviceId, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDeviceAsync(string sensorPartnerId, string deviceId, RequestContext context = null) + public virtual async Task GetDeviceAsync(string sensorPartnerId, string deviceId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(deviceId, nameof(deviceId)); @@ -183,7 +183,7 @@ public virtual async Task GetDeviceAsync(string sensorPartnerId, strin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDevice(string sensorPartnerId, string deviceId, RequestContext context = null) + public virtual Response GetDevice(string sensorPartnerId, string deviceId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(deviceId, nameof(deviceId)); @@ -311,7 +311,7 @@ public virtual Response Delete(string sensorPartnerId, string deviceId, RequestC /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetDevicesAsync(string sensorPartnerId, IEnumerable parentDeviceIds = null, IEnumerable deviceDataModelIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetDevicesAsync(string sensorPartnerId, IEnumerable parentDeviceIds, IEnumerable deviceDataModelIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); @@ -355,7 +355,7 @@ public virtual AsyncPageable GetDevicesAsync(string sensorPartnerId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetDevices(string sensorPartnerId, IEnumerable parentDeviceIds = null, IEnumerable deviceDataModelIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetDevices(string sensorPartnerId, IEnumerable parentDeviceIds, IEnumerable deviceDataModelIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ApplicationData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ApplicationData.xml index 073f1abb3855..c6c98a55653f 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ApplicationData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ApplicationData.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -58,7 +58,7 @@ This sample shows how to call GetApplicationDataAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -Response response = await client.GetApplicationDataAsync("", ""); +Response response = await client.GetApplicationDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -100,7 +100,7 @@ This sample shows how to call GetApplicationData with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -Response response = client.GetApplicationData("", ""); +Response response = client.GetApplicationData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -349,23 +349,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetAllApplicationDataAsync and parse the result. +This sample shows how to call GetAllApplicationDataAsync with required parameters and parse the result. -This sample shows how to call GetAllApplicationDataAsync with all parameters, and how to parse the result. -"}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllApplicationDataAsync(3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -403,23 +392,12 @@ await foreach (var item in client.GetAllApplicationDataAsync(3.14, 3.14, 3.14, 3 -This sample shows how to call GetAllApplicationData and parse the result. - -This sample shows how to call GetAllApplicationData with all parameters, and how to parse the result. +This sample shows how to call GetAllApplicationData with required parameters and parse the result. "}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllApplicationData(3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -462,18 +440,7 @@ This sample shows how to call GetAllApplicationDataByPartyIdAsync with required var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllApplicationDataByPartyIdAsync with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -516,18 +483,7 @@ This sample shows how to call GetAllApplicationDataByPartyId with required param var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -foreach (var item in client.GetAllApplicationDataByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllApplicationDataByPartyId with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllApplicationDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -570,7 +526,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -596,7 +552,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; 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 cc5bc50d6773..c170b8619513 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 @@ -8,7 +8,7 @@ This sample shows how to call GetAttachmentAsync with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -Response response = await client.GetAttachmentAsync("", ""); +Response response = await client.GetAttachmentAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -35,7 +35,7 @@ This sample shows how to call GetAttachment with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -Response response = client.GetAttachment("", ""); +Response response = client.GetAttachment("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -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)); +Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -144,7 +144,7 @@ This sample shows how to call DownloadAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -Response response = await client.DownloadAsync("", ""); +Response response = await client.DownloadAsync("", "", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -162,7 +162,7 @@ This sample shows how to call Download with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -Response response = client.Download("", ""); +Response response = client.Download("", "", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -180,18 +180,7 @@ This sample shows how to call GetAttachmentsByPartyIdAsync with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -await foreach (var item in client.GetAttachmentsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAttachmentsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAttachmentsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -219,18 +208,7 @@ This sample shows how to call GetAttachmentsByPartyId with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); -foreach (var item in client.GetAttachmentsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAttachmentsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAttachmentsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Boundaries.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Boundaries.xml index 5ac2a1390d55..8c107b33862d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Boundaries.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Boundaries.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -256,7 +256,7 @@ This sample shows how to call GetBoundaryAsync with required parameters and pars var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = await client.GetBoundaryAsync("", ""); +Response response = await client.GetBoundaryAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("geometry").GetProperty("type").ToString()); @@ -290,7 +290,7 @@ This sample shows how to call GetBoundary with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = client.GetBoundary("", ""); +Response response = client.GetBoundary("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("geometry").GetProperty("type").ToString()); @@ -348,7 +348,7 @@ This sample shows how to call GetOverlapAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = await client.GetOverlapAsync("", "", "", ""); +Response response = await client.GetOverlapAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryArea").ToString()); @@ -364,7 +364,7 @@ This sample shows how to call GetOverlap with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -Response response = client.GetOverlap("", "", "", ""); +Response response = client.GetOverlap("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryArea").ToString()); @@ -375,23 +375,12 @@ Console.WriteLine(result.GetProperty("intersectingArea").ToString()); -This sample shows how to call GetBoundariesAsync and parse the result. +This sample shows how to call GetBoundariesAsync with required parameters and parse the result. -This sample shows how to call GetBoundariesAsync with all parameters, and how to parse the result. -", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetBoundariesAsync("", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -417,23 +406,12 @@ await foreach (var item in client.GetBoundariesAsync("", "", n -This sample shows how to call GetBoundaries and parse the result. - -This sample shows how to call GetBoundaries with all parameters, and how to parse the result. +This sample shows how to call GetBoundaries with required parameters and parse the result. ", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetBoundaries("", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -632,18 +610,7 @@ This sample shows how to call GetBoundariesByPartyIdAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -await foreach (var item in client.GetBoundariesByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetBoundariesByPartyIdAsync with all parameters, and how to parse the result. -", "", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetBoundariesByPartyIdAsync("", "", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -674,18 +641,7 @@ This sample shows how to call GetBoundariesByPartyId with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -foreach (var item in client.GetBoundariesByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetBoundariesByPartyId with all parameters, and how to parse the result. -", "", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetBoundariesByPartyId("", "", "", new String[]{""}, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -884,7 +840,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -910,7 +866,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/CropProducts.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/CropProducts.xml index b790ea55cf1b..cf1974df695a 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/CropProducts.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/CropProducts.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCropProductAsync with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); -Response response = await client.GetCropProductAsync(""); +Response response = await client.GetCropProductAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -39,7 +39,7 @@ This sample shows how to call GetCropProduct with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); -Response response = client.GetCropProduct(""); +Response response = client.GetCropProduct("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -221,23 +221,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetCropProductsAsync and parse the result. +This sample shows how to call GetCropProductsAsync with required parameters and parse the result. -This sample shows how to call GetCropProductsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetCropProductsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -264,23 +253,12 @@ await foreach (var item in client.GetCropProductsAsync(new String[]{""} -This sample shows how to call GetCropProducts and parse the result. - -This sample shows how to call GetCropProducts with all parameters, and how to parse the result. +This sample shows how to call GetCropProducts with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetCropProducts(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Crops.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Crops.xml index 6f24321435da..0647a12446d5 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Crops.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Crops.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCropAsync with required parameters and parse th var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); -Response response = await client.GetCropAsync(""); +Response response = await client.GetCropAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -36,7 +36,7 @@ This sample shows how to call GetCrop with required parameters and parse the res var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); -Response response = client.GetCrop(""); +Response response = client.GetCrop("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -199,23 +199,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetCropsAsync and parse the result. +This sample shows how to call GetCropsAsync with required parameters and parse the result. -This sample shows how to call GetCropsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetCropsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -239,23 +228,12 @@ await foreach (var item in client.GetCropsAsync(new String[]{""}, ne -This sample shows how to call GetCrops and parse the result. - -This sample shows how to call GetCrops with all parameters, and how to parse the result. +This sample shows how to call GetCrops with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetCrops(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/DeviceDataModels.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/DeviceDataModels.xml index b73042e4be99..da0067f8ae13 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/DeviceDataModels.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/DeviceDataModels.xml @@ -126,7 +126,7 @@ This sample shows how to call GetDeviceDataModelAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); -Response response = await client.GetDeviceDataModelAsync("", ""); +Response response = await client.GetDeviceDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -155,7 +155,7 @@ This sample shows how to call GetDeviceDataModel with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); -Response response = client.GetDeviceDataModel("", ""); +Response response = client.GetDeviceDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -208,18 +208,7 @@ This sample shows how to call GetDeviceDataModelsAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); -await foreach (var item in client.GetDeviceDataModelsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetDeviceDataModelsAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetDeviceDataModelsAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -249,18 +238,7 @@ This sample shows how to call GetDeviceDataModels with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); -foreach (var item in client.GetDeviceDataModels("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetDeviceDataModels with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetDeviceDataModels("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Devices.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Devices.xml index 2fd708a9f0f1..b162a5ffdb68 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Devices.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Devices.xml @@ -134,7 +134,7 @@ This sample shows how to call GetDeviceAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); -Response response = await client.GetDeviceAsync("", ""); +Response response = await client.GetDeviceAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -166,7 +166,7 @@ This sample shows how to call GetDevice with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); -Response response = client.GetDevice("", ""); +Response response = client.GetDevice("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -222,18 +222,7 @@ This sample shows how to call GetDevicesAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); -await foreach (var item in client.GetDevicesAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetDevicesAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetDevicesAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -266,18 +255,7 @@ This sample shows how to call GetDevices with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); -foreach (var item in client.GetDevices("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetDevices with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetDevices("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmOperationsDataIngestion.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmOperationsDataIngestion.xml index ae7aa121ee44..325886caddbc 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmOperationsDataIngestion.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmOperationsDataIngestion.xml @@ -8,7 +8,7 @@ This sample shows how to call GetJobDetailsAsync with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); -Response response = await client.GetJobDetailsAsync(""); +Response response = await client.GetJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -40,7 +40,7 @@ This sample shows how to call GetJobDetails with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); -Response response = client.GetJobDetails(""); +Response response = client.GetJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmerOAuthTokens.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmerOAuthTokens.xml index 4199362dd270..5843f08a8040 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmerOAuthTokens.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/FarmerOAuthTokens.xml @@ -82,7 +82,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -107,7 +107,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -127,24 +127,12 @@ Console.WriteLine(result.GetProperty("endTime").ToString()); -This sample shows how to call GetAuthenticatedFarmersDetailsAsync and parse the result. +This sample shows how to call GetAuthenticatedFarmersDetailsAsync with required parameters and parse the result. -This sample shows how to call GetAuthenticatedFarmersDetailsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync(new String[]{""}, new String[]{""}, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -159,24 +147,12 @@ await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync(new String -This sample shows how to call GetAuthenticatedFarmersDetails and parse the result. - -This sample shows how to call GetAuthenticatedFarmersDetails with all parameters, and how to parse the result. +This sample shows how to call GetAuthenticatedFarmersDetails with required parameters and parse the result. "}, new String[]{""}, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAuthenticatedFarmersDetails(new String[]{""}, new String[]{""}, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -196,7 +172,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -222,7 +198,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Farms.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Farms.xml index e5f8f5e9e3da..9f61bd5c7853 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Farms.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Farms.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -58,7 +58,7 @@ This sample shows how to call GetFarmAsync with required parameters and parse th var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -Response response = await client.GetFarmAsync("", ""); +Response response = await client.GetFarmAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -83,7 +83,7 @@ This sample shows how to call GetFarm with required parameters and parse the res var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -Response response = client.GetFarm("", ""); +Response response = client.GetFarm("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -221,23 +221,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetFarmsAsync and parse the result. +This sample shows how to call GetFarmsAsync with required parameters and parse the result. -This sample shows how to call GetFarmsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetFarmsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -258,23 +247,12 @@ await foreach (var item in client.GetFarmsAsync(new String[]{""}, new S -This sample shows how to call GetFarms and parse the result. - -This sample shows how to call GetFarms with all parameters, and how to parse the result. +This sample shows how to call GetFarms with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetFarms(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -300,18 +278,7 @@ This sample shows how to call GetFarmsByPartyIdAsync with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -await foreach (var item in client.GetFarmsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetFarmsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetFarmsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -337,18 +304,7 @@ This sample shows how to call GetFarmsByPartyId with required parameters and par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -foreach (var item in client.GetFarmsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetFarmsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetFarmsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -374,7 +330,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -400,7 +356,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Fields.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Fields.xml index 7b2cf6dd2033..88548cbba531 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Fields.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Fields.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -58,7 +58,7 @@ This sample shows how to call GetFieldAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -Response response = await client.GetFieldAsync("", ""); +Response response = await client.GetFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -84,7 +84,7 @@ This sample shows how to call GetField with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -Response response = client.GetField("", ""); +Response response = client.GetField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -227,23 +227,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetFieldsAsync and parse the result. +This sample shows how to call GetFieldsAsync with required parameters and parse the result. -This sample shows how to call GetFieldsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetFieldsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -265,23 +254,12 @@ await foreach (var item in client.GetFieldsAsync(new String[]{""}, new -This sample shows how to call GetFields and parse the result. - -This sample shows how to call GetFields with all parameters, and how to parse the result. +This sample shows how to call GetFields with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetFields(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -308,18 +286,7 @@ This sample shows how to call GetFieldsByPartyIdAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -await foreach (var item in client.GetFieldsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetFieldsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetFieldsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -346,18 +313,7 @@ This sample shows how to call GetFieldsByPartyId with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -foreach (var item in client.GetFieldsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetFieldsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetFieldsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -384,7 +340,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -410,7 +366,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml index 6de052f1f186..50e798da22ca 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -58,7 +58,7 @@ This sample shows how to call GetHarvestDataAsync with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -Response response = await client.GetHarvestDataAsync("", ""); +Response response = await client.GetHarvestDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -115,7 +115,7 @@ This sample shows how to call GetHarvestData with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -Response response = client.GetHarvestData("", ""); +Response response = client.GetHarvestData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -423,23 +423,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetAllHarvestDataAsync and parse the result. +This sample shows how to call GetAllHarvestDataAsync with required parameters and parse the result. -This sample shows how to call GetAllHarvestDataAsync with all parameters, and how to parse the result. -"}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllHarvestDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -492,23 +481,12 @@ await foreach (var item in client.GetAllHarvestDataAsync(3.14, 3.14, 3.14, 3.14, -This sample shows how to call GetAllHarvestData and parse the result. - -This sample shows how to call GetAllHarvestData with all parameters, and how to parse the result. +This sample shows how to call GetAllHarvestData with required parameters and parse the result. "}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllHarvestData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -566,18 +544,7 @@ This sample shows how to call GetAllHarvestDataByPartyIdAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllHarvestDataByPartyIdAsync with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -635,18 +602,7 @@ This sample shows how to call GetAllHarvestDataByPartyId with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -foreach (var item in client.GetAllHarvestDataByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllHarvestDataByPartyId with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllHarvestDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -704,7 +660,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -730,7 +686,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ImageProcessing.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ImageProcessing.xml index 4660c2a051c8..d0bfd8493e8c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ImageProcessing.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ImageProcessing.xml @@ -8,7 +8,7 @@ This sample shows how to call GetRasterizeJobAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); -Response response = await client.GetRasterizeJobAsync(""); +Response response = await client.GetRasterizeJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -38,7 +38,7 @@ This sample shows how to call GetRasterizeJob with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); -Response response = client.GetRasterizeJob(""); +Response response = client.GetRasterizeJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").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 249945bf5654..0a57ab75df50 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)); +Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -70,7 +70,7 @@ This sample shows how to call GetInsightAttachmentAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -Response response = await client.GetInsightAttachmentAsync("", "", "", "", ""); +Response response = await client.GetInsightAttachmentAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -99,7 +99,7 @@ This sample shows how to call GetInsightAttachment with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -Response response = client.GetInsightAttachment("", "", "", "", ""); +Response response = client.GetInsightAttachment("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -152,7 +152,7 @@ This sample shows how to call DownloadAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -Response response = await client.DownloadAsync("", "", "", "", ""); +Response response = await client.DownloadAsync("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -170,7 +170,7 @@ This sample shows how to call Download with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -Response response = client.Download("", "", "", "", ""); +Response response = client.Download("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -188,18 +188,7 @@ This sample shows how to call GetInsightAttachmentsByPartyIdModelIdAndResourceAs var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("insightId").ToString()); -} -]]> -This sample shows how to call GetInsightAttachmentsByPartyIdModelIdAndResourceAsync with all parameters, and how to parse the result. -", "", "", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -229,18 +218,7 @@ This sample shows how to call GetInsightAttachmentsByPartyIdModelIdAndResource w var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); -foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("insightId").ToString()); -} -]]> -This sample shows how to call GetInsightAttachmentsByPartyIdModelIdAndResource with all parameters, and how to parse the result. -", "", "", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Insights.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Insights.xml index 745dcec87efb..b71d2c46cc6e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Insights.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Insights.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -184,7 +184,7 @@ This sample shows how to call GetInsightAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -Response response = await client.GetInsightAsync("", "", "", "", ""); +Response response = await client.GetInsightAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -217,7 +217,7 @@ This sample shows how to call GetInsight with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -Response response = client.GetInsight("", "", "", "", ""); +Response response = client.GetInsight("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -274,18 +274,7 @@ This sample shows how to call GetInsightsByPartyIdModelIdAndResourceAsync with r var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetInsightsByPartyIdModelIdAndResourceAsync with all parameters, and how to parse the result. -", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -319,18 +308,7 @@ This sample shows how to call GetInsightsByPartyIdModelIdAndResource with requir var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetInsightsByPartyIdModelIdAndResource with all parameters, and how to parse the result. -", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -364,7 +342,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -390,7 +368,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ManagementZones.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ManagementZones.xml index da7b95ec49c9..2dda16f0612b 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ManagementZones.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ManagementZones.xml @@ -8,7 +8,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -33,7 +33,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -58,7 +58,7 @@ This sample shows how to call GetManagementZoneAsync with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -Response response = await client.GetManagementZoneAsync("", ""); +Response response = await client.GetManagementZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -87,7 +87,7 @@ This sample shows how to call GetManagementZone with required parameters and par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -Response response = client.GetManagementZone("", ""); +Response response = client.GetManagementZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -245,23 +245,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetManagementZonesAsync and parse the result. +This sample shows how to call GetManagementZonesAsync with required parameters and parse the result. -This sample shows how to call GetManagementZonesAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetManagementZonesAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -286,23 +275,12 @@ await foreach (var item in client.GetManagementZonesAsync(new String[]{"" -This sample shows how to call GetManagementZones and parse the result. - -This sample shows how to call GetManagementZones with all parameters, and how to parse the result. +This sample shows how to call GetManagementZones with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetManagementZones(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -332,18 +310,7 @@ This sample shows how to call GetManagementZonesByPartyIdAsync with required par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -await foreach (var item in client.GetManagementZonesByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetManagementZonesByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetManagementZonesByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -373,18 +340,7 @@ This sample shows how to call GetManagementZonesByPartyId with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -foreach (var item in client.GetManagementZonesByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetManagementZonesByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetManagementZonesByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -414,7 +370,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -440,7 +396,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ModelInference.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ModelInference.xml index 9e293e4930bb..d0fd140dd157 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ModelInference.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/ModelInference.xml @@ -8,7 +8,7 @@ This sample shows how to call GetBiomassModelJobAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = await client.GetBiomassModelJobAsync(""); +Response response = await client.GetBiomassModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -46,7 +46,7 @@ This sample shows how to call GetBiomassModelJob with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = client.GetBiomassModelJob(""); +Response response = client.GetBiomassModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -84,7 +84,7 @@ This sample shows how to call GetSensorPlacementModelJobAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = await client.GetSensorPlacementModelJobAsync(""); +Response response = await client.GetSensorPlacementModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -120,7 +120,7 @@ This sample shows how to call GetSensorPlacementModelJob with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = client.GetSensorPlacementModelJob(""); +Response response = client.GetSensorPlacementModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -156,7 +156,7 @@ This sample shows how to call GetSoilMoistureModelJobAsync with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = await client.GetSoilMoistureModelJobAsync(""); +Response response = await client.GetSoilMoistureModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -197,7 +197,7 @@ This sample shows how to call GetSoilMoistureModelJob with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); -Response response = client.GetSoilMoistureModelJob(""); +Response response = client.GetSoilMoistureModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/NutrientAnalyses.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/NutrientAnalyses.xml index 3271409e9f51..54886a2570e9 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/NutrientAnalyses.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/NutrientAnalyses.xml @@ -8,7 +8,7 @@ This sample shows how to call GetNutrientAnalysisAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); -Response response = await client.GetNutrientAnalysisAsync("", ""); +Response response = await client.GetNutrientAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -44,7 +44,7 @@ This sample shows how to call GetNutrientAnalysis with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); -Response response = client.GetNutrientAnalysis("", ""); +Response response = client.GetNutrientAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -245,23 +245,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetNutrientAnalysesAsync and parse the result. +This sample shows how to call GetNutrientAnalysesAsync with required parameters and parse the result. -This sample shows how to call GetNutrientAnalysesAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetNutrientAnalysesAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -293,23 +282,12 @@ await foreach (var item in client.GetNutrientAnalysesAsync("", new S -This sample shows how to call GetNutrientAnalyses and parse the result. - -This sample shows how to call GetNutrientAnalyses with all parameters, and how to parse the result. +This sample shows how to call GetNutrientAnalyses with required parameters and parse the result. ", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetNutrientAnalyses("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -346,18 +324,7 @@ This sample shows how to call GetNutrientAnalysesByPartyIdAsync with required pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); -await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetNutrientAnalysesByPartyIdAsync with all parameters, and how to parse the result. -", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -394,18 +361,7 @@ This sample shows how to call GetNutrientAnalysesByPartyId with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); -foreach (var item in client.GetNutrientAnalysesByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetNutrientAnalysesByPartyId with all parameters, and how to parse the result. -", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetNutrientAnalysesByPartyId("", "", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/OAuthProviders.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/OAuthProviders.xml index e23b06aa5c48..1d3e2259406c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/OAuthProviders.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/OAuthProviders.xml @@ -8,7 +8,7 @@ This sample shows how to call GetOAuthProviderAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -Response response = await client.GetOAuthProviderAsync(""); +Response response = await client.GetOAuthProviderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -34,7 +34,7 @@ This sample shows how to call GetOAuthProvider with required parameters and pars var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -Response response = client.GetOAuthProvider(""); +Response response = client.GetOAuthProvider("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -184,7 +184,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -212,7 +212,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -235,23 +235,12 @@ Console.WriteLine(result.GetProperty("properties").GetProperty("").ToStrin -This sample shows how to call GetOAuthProvidersAsync and parse the result. +This sample shows how to call GetOAuthProvidersAsync with required parameters and parse the result. -This sample shows how to call GetOAuthProvidersAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetOAuthProvidersAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -273,23 +262,12 @@ await foreach (var item in client.GetOAuthProvidersAsync(new String[]{" -This sample shows how to call GetOAuthProviders and parse the result. - -This sample shows how to call GetOAuthProviders with all parameters, and how to parse the result. +This sample shows how to call GetOAuthProviders with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetOAuthProviders(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -316,7 +294,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -345,7 +323,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Parties.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Parties.xml index 4dbca17e56c9..7efea3a3cf27 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Parties.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Parties.xml @@ -8,7 +8,7 @@ This sample shows how to call GetPartyAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -Response response = await client.GetPartyAsync(""); +Response response = await client.GetPartyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -32,7 +32,7 @@ This sample shows how to call GetParty with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -Response response = client.GetParty(""); +Response response = client.GetParty("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -172,7 +172,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -197,7 +197,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -217,23 +217,12 @@ Console.WriteLine(result.GetProperty("endTime").ToString()); -This sample shows how to call GetPartiesAsync and parse the result. +This sample shows how to call GetPartiesAsync with required parameters and parse the result. -This sample shows how to call GetPartiesAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPartiesAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -253,23 +242,12 @@ await foreach (var item in client.GetPartiesAsync(new String[]{""}, new Str -This sample shows how to call GetParties and parse the result. - -This sample shows how to call GetParties with all parameters, and how to parse the result. +This sample shows how to call GetParties with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetParties(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -294,7 +272,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -320,7 +298,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantTissueAnalyses.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantTissueAnalyses.xml index 8bc053a6c8a0..1cd8dbe62cd4 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantTissueAnalyses.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantTissueAnalyses.xml @@ -8,7 +8,7 @@ This sample shows how to call GetPlantTissueAnalysisAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -Response response = await client.GetPlantTissueAnalysisAsync("", ""); +Response response = await client.GetPlantTissueAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -51,7 +51,7 @@ This sample shows how to call GetPlantTissueAnalysis with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -Response response = client.GetPlantTissueAnalysis("", ""); +Response response = client.GetPlantTissueAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -286,7 +286,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -311,7 +311,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -336,18 +336,7 @@ This sample shows how to call GetPlantTissueAnalysesByPartyIdAsync with required var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPlantTissueAnalysesByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -391,18 +380,7 @@ This sample shows how to call GetPlantTissueAnalysesByPartyId with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -foreach (var item in client.GetPlantTissueAnalysesByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPlantTissueAnalysesByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPlantTissueAnalysesByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -441,23 +419,12 @@ foreach (var item in client.GetPlantTissueAnalysesByPartyId("", new Str -This sample shows how to call GetPlantTissueAnalysesAsync and parse the result. +This sample shows how to call GetPlantTissueAnalysesAsync with required parameters and parse the result. -This sample shows how to call GetPlantTissueAnalysesAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPlantTissueAnalysesAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -496,23 +463,12 @@ await foreach (var item in client.GetPlantTissueAnalysesAsync(new String[]{" -This sample shows how to call GetPlantTissueAnalyses and parse the result. - -This sample shows how to call GetPlantTissueAnalyses with all parameters, and how to parse the result. +This sample shows how to call GetPlantTissueAnalyses with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPlantTissueAnalyses(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -556,7 +512,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -582,7 +538,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml index b5b46be204ab..5a25bf217a3e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml @@ -8,7 +8,7 @@ This sample shows how to call GetPlantingDataAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -Response response = await client.GetPlantingDataAsync("", ""); +Response response = await client.GetPlantingDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -53,7 +53,7 @@ This sample shows how to call GetPlantingData with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -Response response = client.GetPlantingData("", ""); +Response response = client.GetPlantingData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -306,7 +306,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -331,7 +331,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -356,18 +356,7 @@ This sample shows how to call GetAllPlantingDataByPartyIdAsync with required par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllPlantingDataByPartyIdAsync with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -413,18 +402,7 @@ This sample shows how to call GetAllPlantingDataByPartyId with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -foreach (var item in client.GetAllPlantingDataByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllPlantingDataByPartyId with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllPlantingDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -465,23 +443,12 @@ foreach (var item in client.GetAllPlantingDataByPartyId("", 3.14, 3.14, -This sample shows how to call GetAllPlantingDataAsync and parse the result. +This sample shows how to call GetAllPlantingDataAsync with required parameters and parse the result. -This sample shows how to call GetAllPlantingDataAsync with all parameters, and how to parse the result. -"}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllPlantingDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -522,23 +489,12 @@ await foreach (var item in client.GetAllPlantingDataAsync(3.14, 3.14, 3.14, 3.14 -This sample shows how to call GetAllPlantingData and parse the result. - -This sample shows how to call GetAllPlantingData with all parameters, and how to parse the result. +This sample shows how to call GetAllPlantingData with required parameters and parse the result. "}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllPlantingData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -584,7 +540,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -610,7 +566,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PrescriptionMaps.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PrescriptionMaps.xml index 5b44c5db6b81..05e210756269 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PrescriptionMaps.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PrescriptionMaps.xml @@ -8,7 +8,7 @@ This sample shows how to call GetPrescriptionMapAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -Response response = await client.GetPrescriptionMapAsync("", ""); +Response response = await client.GetPrescriptionMapAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -37,7 +37,7 @@ This sample shows how to call GetPrescriptionMap with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -Response response = client.GetPrescriptionMap("", ""); +Response response = client.GetPrescriptionMap("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -200,7 +200,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -225,7 +225,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -250,18 +250,7 @@ This sample shows how to call GetPrescriptionMapsByPartyIdAsync with required pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPrescriptionMapsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -291,18 +280,7 @@ This sample shows how to call GetPrescriptionMapsByPartyId with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -foreach (var item in client.GetPrescriptionMapsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPrescriptionMapsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPrescriptionMapsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -327,23 +305,12 @@ foreach (var item in client.GetPrescriptionMapsByPartyId("", new String -This sample shows how to call GetPrescriptionMapsAsync and parse the result. +This sample shows how to call GetPrescriptionMapsAsync with required parameters and parse the result. -This sample shows how to call GetPrescriptionMapsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPrescriptionMapsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -368,23 +335,12 @@ await foreach (var item in client.GetPrescriptionMapsAsync(new String[]{" -This sample shows how to call GetPrescriptionMaps and parse the result. - -This sample shows how to call GetPrescriptionMaps with all parameters, and how to parse the result. +This sample shows how to call GetPrescriptionMaps with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPrescriptionMaps(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -414,7 +370,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -440,7 +396,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Prescriptions.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Prescriptions.xml index 05a98779718a..c05d9c8fe34c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Prescriptions.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Prescriptions.xml @@ -8,7 +8,7 @@ This sample shows how to call GetPrescriptionAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -Response response = await client.GetPrescriptionAsync("", ""); +Response response = await client.GetPrescriptionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -39,7 +39,7 @@ This sample shows how to call GetPrescription with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -Response response = client.GetPrescription("", ""); +Response response = client.GetPrescription("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -220,7 +220,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -245,7 +245,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -270,18 +270,7 @@ This sample shows how to call GetPrescriptionsByPartyIdAsync with required param var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -await foreach (var item in client.GetPrescriptionsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPrescriptionsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPrescriptionsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -313,18 +302,7 @@ This sample shows how to call GetPrescriptionsByPartyId with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -foreach (var item in client.GetPrescriptionsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPrescriptionsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPrescriptionsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -351,23 +329,12 @@ foreach (var item in client.GetPrescriptionsByPartyId("", new String[]{ -This sample shows how to call GetPrescriptionsAsync and parse the result. +This sample shows how to call GetPrescriptionsAsync with required parameters and parse the result. -This sample shows how to call GetPrescriptionsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetPrescriptionsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -394,23 +361,12 @@ await foreach (var item in client.GetPrescriptionsAsync(new String[]{" -This sample shows how to call GetPrescriptions and parse the result. - -This sample shows how to call GetPrescriptions with all parameters, and how to parse the result. +This sample shows how to call GetPrescriptions with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetPrescriptions(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -442,7 +398,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -468,7 +424,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Scenes.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Scenes.xml index ccbe34e8c24a..0e4a85942567 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Scenes.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Scenes.xml @@ -8,7 +8,7 @@ This sample shows how to call DownloadAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = await client.DownloadAsync(""); +Response response = await client.DownloadAsync("", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -26,7 +26,7 @@ This sample shows how to call Download with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = client.Download(""); +Response response = client.Download("", new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -44,7 +44,7 @@ This sample shows how to call GetSatelliteDataIngestionJobDetailsAsync with requ var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = await client.GetSatelliteDataIngestionJobDetailsAsync(""); +Response response = await client.GetSatelliteDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ This sample shows how to call GetSatelliteDataIngestionJobDetails with required var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = client.GetSatelliteDataIngestionJobDetails(""); +Response response = client.GetSatelliteDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -266,7 +266,7 @@ This sample shows how to call GetStacFeatureAsync with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = await client.GetStacFeatureAsync("", ""); +Response response = await client.GetStacFeatureAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -296,7 +296,7 @@ This sample shows how to call GetStacFeature with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -Response response = client.GetStacFeature("", ""); +Response response = client.GetStacFeature("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -326,18 +326,7 @@ This sample shows how to call GetScenesAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -await foreach (var item in client.GetScenesAsync("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetScenesAsync with all parameters, and how to parse the result. -", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new Double[]{3.14}, new String[]{""}, 1234, "")) +await foreach (var item in client.GetScenesAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new Double[]{3.14}, new String[]{""}, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sceneDateTime").ToString()); @@ -366,18 +355,7 @@ This sample shows how to call GetScenes with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); -foreach (var item in client.GetScenes("", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetScenes with all parameters, and how to parse the result. -", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new Double[]{3.14}, new String[]{""}, 1234, "")) +foreach (var item in client.GetScenes("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new Double[]{3.14}, new String[]{""}, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sceneDateTime").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SeasonalFields.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SeasonalFields.xml index f71e517e4cbb..728fdf0b5778 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SeasonalFields.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SeasonalFields.xml @@ -8,7 +8,7 @@ This sample shows how to call GetSeasonalFieldAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -Response response = await client.GetSeasonalFieldAsync("", ""); +Response response = await client.GetSeasonalFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -38,7 +38,7 @@ This sample shows how to call GetSeasonalField with required parameters and pars var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -Response response = client.GetSeasonalField("", ""); +Response response = client.GetSeasonalField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -210,7 +210,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -235,7 +235,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -260,18 +260,7 @@ This sample shows how to call GetSeasonalFieldsByPartyIdAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSeasonalFieldsByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -302,18 +291,7 @@ This sample shows how to call GetSeasonalFieldsByPartyId with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -foreach (var item in client.GetSeasonalFieldsByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSeasonalFieldsByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSeasonalFieldsByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -339,23 +317,12 @@ foreach (var item in client.GetSeasonalFieldsByPartyId("", new String[] -This sample shows how to call GetSeasonalFieldsAsync and parse the result. +This sample shows how to call GetSeasonalFieldsAsync with required parameters and parse the result. -This sample shows how to call GetSeasonalFieldsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSeasonalFieldsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -381,23 +348,12 @@ await foreach (var item in client.GetSeasonalFieldsAsync(new String[]{" -This sample shows how to call GetSeasonalFields and parse the result. - -This sample shows how to call GetSeasonalFields with all parameters, and how to parse the result. +This sample shows how to call GetSeasonalFields with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSeasonalFields(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -428,7 +384,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -454,7 +410,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Seasons.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Seasons.xml index e3ee4a231e56..7c8a88622cdd 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Seasons.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Seasons.xml @@ -8,7 +8,7 @@ This sample shows how to call GetSeasonAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); -Response response = await client.GetSeasonAsync(""); +Response response = await client.GetSeasonAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -36,7 +36,7 @@ This sample shows how to call GetSeason with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); -Response response = client.GetSeason(""); +Response response = client.GetSeason("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -191,23 +191,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetSeasonsAsync and parse the result. +This sample shows how to call GetSeasonsAsync with required parameters and parse the result. -This sample shows how to call GetSeasonsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSeasonsAsync(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new Int32[]{1234}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -231,23 +220,12 @@ await foreach (var item in client.GetSeasonsAsync(DateTimeOffset.UtcNow, DateTim -This sample shows how to call GetSeasons and parse the result. - -This sample shows how to call GetSeasons with all parameters, and how to parse the result. +This sample shows how to call GetSeasons with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSeasons(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new Int32[]{1234}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorDataModels.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorDataModels.xml index a146ddbf5d37..3a280a2ff409 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorDataModels.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorDataModels.xml @@ -154,7 +154,7 @@ This sample shows how to call GetSensorDataModelAsync with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); -Response response = await client.GetSensorDataModelAsync("", ""); +Response response = await client.GetSensorDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -186,7 +186,7 @@ This sample shows how to call GetSensorDataModel with required parameters and pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); -Response response = client.GetSensorDataModel("", ""); +Response response = client.GetSensorDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -242,18 +242,7 @@ This sample shows how to call GetSensorDataModelsAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); -await foreach (var item in client.GetSensorDataModelsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); -} -]]> -This sample shows how to call GetSensorDataModelsAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSensorDataModelsAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -286,18 +275,7 @@ This sample shows how to call GetSensorDataModels with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); -foreach (var item in client.GetSensorDataModels("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); -} -]]> -This sample shows how to call GetSensorDataModels with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSensorDataModels("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorEvents.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorEvents.xml index d239144931e6..cb0c84b3fef2 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorEvents.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorEvents.xml @@ -8,17 +8,7 @@ This sample shows how to call GetSensorEventsAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); -Response response = await client.GetSensorEventsAsync("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("value")[0].ToString()); -]]> -This sample shows how to call GetSensorEventsAsync with all parameters, and how to parse the result. -", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true); +Response response = await client.GetSensorEventsAsync("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("sensorId").ToString()); @@ -40,17 +30,7 @@ This sample shows how to call GetSensorEvents with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); -Response response = client.GetSensorEvents("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("value")[0].ToString()); -]]> -This sample shows how to call GetSensorEvents with all parameters, and how to parse the result. -", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true); +Response response = client.GetSensorEvents("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("sensorId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorMappings.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorMappings.xml index f7dba4202839..bbc5e42d2e77 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorMappings.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorMappings.xml @@ -112,7 +112,7 @@ This sample shows how to call GetSensorMappingAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); -Response response = await client.GetSensorMappingAsync(""); +Response response = await client.GetSensorMappingAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -139,7 +139,7 @@ This sample shows how to call GetSensorMapping with required parameters and pars var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); -Response response = client.GetSensorMapping(""); +Response response = client.GetSensorMapping("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -185,23 +185,12 @@ Console.WriteLine(response.Status); -This sample shows how to call GetSensorMappingsAsync and parse the result. +This sample shows how to call GetSensorMappingsAsync with required parameters and parse the result. -This sample shows how to call GetSensorMappingsAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSensorMappingsAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -224,23 +213,12 @@ await foreach (var item in client.GetSensorMappingsAsync(new String[]{" -This sample shows how to call GetSensorMappings and parse the result. - -This sample shows how to call GetSensorMappings with all parameters, and how to parse the result. +This sample shows how to call GetSensorMappings with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSensorMappings(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorPartnerIntegrations.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorPartnerIntegrations.xml index de5d977ee226..bf99c3eb3df4 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorPartnerIntegrations.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/SensorPartnerIntegrations.xml @@ -104,7 +104,7 @@ This sample shows how to call GetSensorPartnerIntegrationAsync with required par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = await client.GetSensorPartnerIntegrationAsync("", ""); +Response response = await client.GetSensorPartnerIntegrationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -130,7 +130,7 @@ This sample shows how to call GetSensorPartnerIntegration with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = client.GetSensorPartnerIntegration("", ""); +Response response = client.GetSensorPartnerIntegration("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -180,7 +180,7 @@ This sample shows how to call CheckConsentAsync with required parameters and par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = await client.CheckConsentAsync("", "", ""); +Response response = await client.CheckConsentAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consented").ToString()); @@ -196,7 +196,7 @@ This sample shows how to call CheckConsent with required parameters and parse th var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = client.CheckConsent("", "", ""); +Response response = client.CheckConsent("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consented").ToString()); @@ -212,7 +212,7 @@ This sample shows how to call GenerateConsentLinkAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = await client.GenerateConsentLinkAsync("", ""); +Response response = await client.GenerateConsentLinkAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consentLink").ToString()); @@ -227,7 +227,7 @@ This sample shows how to call GenerateConsentLink with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -Response response = client.GenerateConsentLink("", ""); +Response response = client.GenerateConsentLink("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consentLink").ToString()); @@ -242,18 +242,7 @@ This sample shows how to call GetSensorPartnerIntegrationsAsync with required pa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -await foreach (var item in client.GetSensorPartnerIntegrationsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSensorPartnerIntegrationsAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSensorPartnerIntegrationsAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -280,18 +269,7 @@ This sample shows how to call GetSensorPartnerIntegrations with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); -foreach (var item in client.GetSensorPartnerIntegrations("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSensorPartnerIntegrations with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSensorPartnerIntegrations("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Sensors.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Sensors.xml index ff07b6983d61..89c6bcfa03c7 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Sensors.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Sensors.xml @@ -150,7 +150,7 @@ This sample shows how to call GetSensorAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -Response response = await client.GetSensorAsync("", ""); +Response response = await client.GetSensorAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -184,7 +184,7 @@ This sample shows how to call GetSensor with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -Response response = client.GetSensor("", ""); +Response response = client.GetSensor("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -242,7 +242,7 @@ This sample shows how to call GetConnectionStringAsync with required parameters var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -Response response = await client.GetConnectionStringAsync("", ""); +Response response = await client.GetConnectionStringAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("primaryDeviceConnectionString").ToString()); @@ -257,7 +257,7 @@ This sample shows how to call GetConnectionString with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -Response response = client.GetConnectionString("", ""); +Response response = client.GetConnectionString("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("primaryDeviceConnectionString").ToString()); @@ -310,18 +310,7 @@ This sample shows how to call GetSensorsAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -await foreach (var item in client.GetSensorsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSensorsAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetSensorsAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -356,18 +345,7 @@ This sample shows how to call GetSensors with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); -foreach (var item in client.GetSensors("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSensors with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetSensors("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/TillageData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/TillageData.xml index 3dfd734c0dc9..5296ccec4612 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/TillageData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/TillageData.xml @@ -8,7 +8,7 @@ This sample shows how to call GetTillageDataAsync with required parameters and p var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -Response response = await client.GetTillageDataAsync("", ""); +Response response = await client.GetTillageDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -44,7 +44,7 @@ This sample shows how to call GetTillageData with required parameters and parse var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -Response response = client.GetTillageData("", ""); +Response response = client.GetTillageData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -252,7 +252,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -277,7 +277,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -302,18 +302,7 @@ This sample shows how to call GetAllTillageDataByPartyIdAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -await foreach (var item in client.GetAllTillageDataByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllTillageDataByPartyIdAsync with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllTillageDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -350,18 +339,7 @@ This sample shows how to call GetAllTillageDataByPartyId with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -foreach (var item in client.GetAllTillageDataByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllTillageDataByPartyId with all parameters, and how to parse the result. -", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllTillageDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -393,23 +371,12 @@ foreach (var item in client.GetAllTillageDataByPartyId("", 3.14, 3.14, -This sample shows how to call GetAllTillageDataAsync and parse the result. +This sample shows how to call GetAllTillageDataAsync with required parameters and parse the result. -This sample shows how to call GetAllTillageDataAsync with all parameters, and how to parse the result. -"}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetAllTillageDataAsync(3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -441,23 +408,12 @@ await foreach (var item in client.GetAllTillageDataAsync(3.14, 3.14, 3.14, 3.14, -This sample shows how to call GetAllTillageData and parse the result. - -This sample shows how to call GetAllTillageData with all parameters, and how to parse the result. +This sample shows how to call GetAllTillageData with required parameters and parse the result. "}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetAllTillageData(3.14, 3.14, 3.14, 3.14, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -494,7 +450,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -520,7 +476,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Weather.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Weather.xml index ba8f6e018410..b9946c383064 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Weather.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Weather.xml @@ -8,7 +8,7 @@ This sample shows how to call GetDataDeleteJobDetailsAsync with required paramet var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -Response response = await client.GetDataDeleteJobDetailsAsync(""); +Response response = await client.GetDataDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -42,7 +42,7 @@ This sample shows how to call GetDataDeleteJobDetails with required parameters a var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -Response response = client.GetDataDeleteJobDetails(""); +Response response = client.GetDataDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -76,7 +76,7 @@ This sample shows how to call GetDataIngestionJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -Response response = await client.GetDataIngestionJobDetailsAsync(""); +Response response = await client.GetDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -110,7 +110,7 @@ This sample shows how to call GetDataIngestionJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -Response response = client.GetDataIngestionJobDetails(""); +Response response = client.GetDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -144,26 +144,7 @@ This sample shows how to call GetWeathersAsync with required parameters and pars var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -await foreach (var item in client.GetWeathersAsync("", "", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("partyId").ToString()); - Console.WriteLine(result.GetProperty("boundaryId").ToString()); - Console.WriteLine(result.GetProperty("extensionId").ToString()); - Console.WriteLine(result.GetProperty("location").GetProperty("latitude").ToString()); - Console.WriteLine(result.GetProperty("location").GetProperty("longitude").ToString()); - Console.WriteLine(result.GetProperty("dateTime").ToString()); - Console.WriteLine(result.GetProperty("extensionVersion").ToString()); - Console.WriteLine(result.GetProperty("weatherDataType").ToString()); - Console.WriteLine(result.GetProperty("granularity").ToString()); -} -]]> -This sample shows how to call GetWeathersAsync with all parameters, and how to parse the result. -", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetWeathersAsync("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -222,26 +203,7 @@ This sample shows how to call GetWeathers with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); -foreach (var item in client.GetWeathers("", "", "", "", "")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("partyId").ToString()); - Console.WriteLine(result.GetProperty("boundaryId").ToString()); - Console.WriteLine(result.GetProperty("extensionId").ToString()); - Console.WriteLine(result.GetProperty("location").GetProperty("latitude").ToString()); - Console.WriteLine(result.GetProperty("location").GetProperty("longitude").ToString()); - Console.WriteLine(result.GetProperty("dateTime").ToString()); - Console.WriteLine(result.GetProperty("extensionVersion").ToString()); - Console.WriteLine(result.GetProperty("weatherDataType").ToString()); - Console.WriteLine(result.GetProperty("granularity").ToString()); -} -]]> -This sample shows how to call GetWeathers with all parameters, and how to parse the result. -", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetWeathers("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Zones.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Zones.xml index 2d7457bdaf4c..14a880b453df 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Zones.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Zones.xml @@ -8,7 +8,7 @@ This sample shows how to call GetZoneAsync with required parameters and parse th var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -Response response = await client.GetZoneAsync("", ""); +Response response = await client.GetZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -35,7 +35,7 @@ This sample shows how to call GetZone with required parameters and parse the res var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -Response response = client.GetZone("", ""); +Response response = client.GetZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -188,7 +188,7 @@ This sample shows how to call GetCascadeDeleteJobDetailsAsync with required para var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -Response response = await client.GetCascadeDeleteJobDetailsAsync(""); +Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -213,7 +213,7 @@ This sample shows how to call GetCascadeDeleteJobDetails with required parameter var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -Response response = client.GetCascadeDeleteJobDetails(""); +Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -238,18 +238,7 @@ This sample shows how to call GetZonesByPartyIdAsync with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -await foreach (var item in client.GetZonesByPartyIdAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetZonesByPartyIdAsync with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetZonesByPartyIdAsync("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -277,18 +266,7 @@ This sample shows how to call GetZonesByPartyId with required parameters and par var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -foreach (var item in client.GetZonesByPartyId("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetZonesByPartyId with all parameters, and how to parse the result. -", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetZonesByPartyId("", new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -311,23 +289,12 @@ foreach (var item in client.GetZonesByPartyId("", new String[]{" -This sample shows how to call GetZonesAsync and parse the result. +This sample shows how to call GetZonesAsync with required parameters and parse the result. -This sample shows how to call GetZonesAsync with all parameters, and how to parse the result. -"}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +await foreach (var item in client.GetZonesAsync(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -350,23 +317,12 @@ await foreach (var item in client.GetZonesAsync(new String[]{""}, new Str -This sample shows how to call GetZones and parse the result. - -This sample shows how to call GetZones with all parameters, and how to parse the result. +This sample shows how to call GetZones with required parameters and parse the result. "}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) +foreach (var item in client.GetZones(new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, new String[]{""}, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -394,7 +350,7 @@ This sample shows how to call CreateCascadeDeleteJobAsync with required paramete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -420,7 +376,7 @@ This sample shows how to call CreateCascadeDeleteJob with required parameters an var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); -var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); +var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmOperationsDataIngestion.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmOperationsDataIngestion.cs index ba8589511e89..5cb990d94d27 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmOperationsDataIngestion.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmOperationsDataIngestion.cs @@ -66,7 +66,7 @@ internal FarmOperationsDataIngestion(ClientDiagnostics clientDiagnostics, HttpPi /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -101,7 +101,7 @@ public virtual async Task GetJobDetailsAsync(string jobId, RequestCont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetJobDetails(string jobId, RequestContext context = null) + public virtual Response GetJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmerOAuthTokens.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmerOAuthTokens.cs index e499e05f4bb8..5b783fe4cf33 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmerOAuthTokens.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmerOAuthTokens.cs @@ -135,7 +135,7 @@ public virtual Response GetOAuthConnectionLink(RequestContent content, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -170,7 +170,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -214,7 +214,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAuthenticatedFarmersDetailsAsync(IEnumerable authProviderIds = null, IEnumerable partyIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAuthenticatedFarmersDetailsAsync(IEnumerable authProviderIds, IEnumerable partyIds, bool? isValid, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAuthenticatedFarmersDetailsRequest(authProviderIds, partyIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAuthenticatedFarmersDetailsNextPageRequest(nextLink, authProviderIds, partyIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -247,7 +247,7 @@ public virtual AsyncPageable GetAuthenticatedFarmersDetailsAsync(IEn /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAuthenticatedFarmersDetails(IEnumerable authProviderIds = null, IEnumerable partyIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAuthenticatedFarmersDetails(IEnumerable authProviderIds, IEnumerable partyIds, bool? isValid, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAuthenticatedFarmersDetailsRequest(authProviderIds, partyIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAuthenticatedFarmersDetailsNextPageRequest(nextLink, authProviderIds, partyIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -274,7 +274,7 @@ public virtual Pageable GetAuthenticatedFarmersDetails(IEnumerable Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -314,7 +314,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Farms.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Farms.cs index 1e9ca4651835..3377a2032de1 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Farms.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Farms.cs @@ -67,7 +67,7 @@ internal Farms(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Token /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -138,7 +138,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetFarmAsync(string partyId, string farmId, RequestContext context = null) + public virtual async Task GetFarmAsync(string partyId, string farmId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(farmId, nameof(farmId)); @@ -175,7 +175,7 @@ public virtual async Task GetFarmAsync(string partyId, string farmId, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetFarm(string partyId, string farmId, RequestContext context = null) + public virtual Response GetFarm(string partyId, string farmId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(farmId, nameof(farmId)); @@ -376,7 +376,7 @@ public virtual Response Delete(string partyId, string farmId, RequestContext con /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetFarmsAsync(IEnumerable farmIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetFarmsAsync(IEnumerable farmIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetFarmsRequest(farmIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetFarmsNextPageRequest(nextLink, farmIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -413,7 +413,7 @@ public virtual AsyncPageable GetFarmsAsync(IEnumerable farmI /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetFarms(IEnumerable farmIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetFarms(IEnumerable farmIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetFarmsRequest(farmIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetFarmsNextPageRequest(nextLink, farmIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -453,7 +453,7 @@ public virtual Pageable GetFarms(IEnumerable farmIds = null, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetFarmsByPartyIdAsync(string partyId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetFarmsByPartyIdAsync(string partyId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -495,7 +495,7 @@ public virtual AsyncPageable GetFarmsByPartyIdAsync(string partyId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetFarmsByPartyId(string partyId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetFarmsByPartyId(string partyId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -524,7 +524,7 @@ public virtual Pageable GetFarmsByPartyId(string partyId, IEnumerabl /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string farmId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string farmId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -564,7 +564,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string farmId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string farmId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Fields.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Fields.cs index f2ed29f96cc1..26b01d28f4fb 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Fields.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Fields.cs @@ -67,7 +67,7 @@ internal Fields(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Toke /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -138,7 +138,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetFieldAsync(string partyId, string fieldId, RequestContext context = null) + public virtual async Task GetFieldAsync(string partyId, string fieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(fieldId, nameof(fieldId)); @@ -175,7 +175,7 @@ public virtual async Task GetFieldAsync(string partyId, string fieldId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetField(string partyId, string fieldId, RequestContext context = null) + public virtual Response GetField(string partyId, string fieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(fieldId, nameof(fieldId)); @@ -377,7 +377,7 @@ public virtual Response Delete(string partyId, string fieldId, RequestContext co /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetFieldsAsync(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetFieldsAsync(IEnumerable farmIds, IEnumerable fieldIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetFieldsRequest(farmIds, fieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetFieldsNextPageRequest(nextLink, farmIds, fieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -415,7 +415,7 @@ public virtual AsyncPageable GetFieldsAsync(IEnumerable farm /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetFields(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetFields(IEnumerable farmIds, IEnumerable fieldIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetFieldsRequest(farmIds, fieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetFieldsNextPageRequest(nextLink, farmIds, fieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -456,7 +456,7 @@ public virtual Pageable GetFields(IEnumerable farmIds = null /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetFieldsByPartyIdAsync(string partyId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetFieldsByPartyIdAsync(string partyId, IEnumerable farmIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -499,7 +499,7 @@ public virtual AsyncPageable GetFieldsByPartyIdAsync(string partyId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetFieldsByPartyId(string partyId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetFieldsByPartyId(string partyId, IEnumerable farmIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -528,7 +528,7 @@ public virtual Pageable GetFieldsByPartyId(string partyId, IEnumerab /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string fieldId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string fieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -568,7 +568,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string fieldId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string fieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestData.cs index 2a3676cdfa94..917a591a5a9d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestData.cs @@ -67,7 +67,7 @@ internal HarvestData(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -138,7 +138,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetHarvestDataAsync(string partyId, string harvestDataId, RequestContext context = null) + public virtual async Task GetHarvestDataAsync(string partyId, string harvestDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(harvestDataId, nameof(harvestDataId)); @@ -175,7 +175,7 @@ public virtual async Task GetHarvestDataAsync(string partyId, string h /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetHarvestData(string partyId, string harvestDataId, RequestContext context = null) + public virtual Response GetHarvestData(string partyId, string harvestDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(harvestDataId, nameof(harvestDataId)); @@ -398,7 +398,7 @@ public virtual Response Delete(string partyId, string harvestDataId, RequestCont /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllHarvestDataAsync(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable harvestDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllHarvestDataAsync(double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable harvestDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllHarvestDataRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, harvestDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllHarvestDataNextPageRequest(nextLink, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, harvestDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -457,7 +457,7 @@ public virtual AsyncPageable GetAllHarvestDataAsync(double? minTotal /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllHarvestData(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable harvestDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllHarvestData(double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable harvestDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllHarvestDataRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, harvestDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllHarvestDataNextPageRequest(nextLink, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, harvestDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -519,7 +519,7 @@ public virtual Pageable GetAllHarvestData(double? minTotalYield = nu /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllHarvestDataByPartyIdAsync(string partyId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllHarvestDataByPartyIdAsync(string partyId, double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -583,7 +583,7 @@ public virtual AsyncPageable GetAllHarvestDataByPartyIdAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllHarvestDataByPartyId(string partyId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllHarvestDataByPartyId(string partyId, double? minTotalYield, double? maxTotalYield, double? minAvgYield, double? maxAvgYield, double? minTotalWetMass, double? maxTotalWetMass, double? minAvgWetMass, double? maxAvgWetMass, double? minAvgMoisture, double? maxAvgMoisture, double? minAvgSpeed, double? maxAvgSpeed, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -612,7 +612,7 @@ public virtual Pageable GetAllHarvestDataByPartyId(string partyId, d /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -652,7 +652,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string harvestDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessing.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessing.cs index 9ba9aceef1ff..cab5cbce93fa 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessing.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessing.cs @@ -66,7 +66,7 @@ internal ImageProcessing(ClientDiagnostics clientDiagnostics, HttpPipeline pipel /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRasterizeJobAsync(string jobId, RequestContext context = null) + public virtual async Task GetRasterizeJobAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -101,7 +101,7 @@ public virtual async Task GetRasterizeJobAsync(string jobId, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRasterizeJob(string jobId, RequestContext context = null) + public virtual Response GetRasterizeJob(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); 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 0688473f4351..f6f92e9d17fb 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 = null) + public virtual async Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -168,7 +168,7 @@ public virtual Response CreateOrUpdate(string partyId, string modelId, string re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetInsightAttachmentAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context = null) + public virtual async Task GetInsightAttachmentAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -214,7 +214,7 @@ public virtual async Task GetInsightAttachmentAsync(string partyId, st /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetInsightAttachment(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context = null) + public virtual Response GetInsightAttachment(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -352,7 +352,7 @@ public virtual Response Delete(string partyId, string modelId, string resourceTy /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DownloadAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context = null) + public virtual async Task DownloadAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -398,7 +398,7 @@ public virtual async Task DownloadAsync(string partyId, string modelId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Download(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context = null) + public virtual Response Download(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -457,7 +457,7 @@ public virtual Response Download(string partyId, string modelId, string resource /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetInsightAttachmentsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, IEnumerable insightIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetInsightAttachmentsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, IEnumerable insightIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -506,7 +506,7 @@ public virtual AsyncPageable GetInsightAttachmentsByPartyIdModelIdAn /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetInsightAttachmentsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, IEnumerable insightIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetInsightAttachmentsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, IEnumerable insightIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Insights.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Insights.cs index 2921553091a5..a36dafe75205 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Insights.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Insights.cs @@ -67,7 +67,7 @@ internal Insights(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, To /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -240,7 +240,7 @@ public virtual Response CreateOrUpdate(string partyId, string modelId, string re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetInsightAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context = null) + public virtual async Task GetInsightAsync(string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -286,7 +286,7 @@ public virtual async Task GetInsightAsync(string partyId, string model /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetInsight(string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context = null) + public virtual Response GetInsight(string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -445,7 +445,7 @@ public virtual Response Delete(string partyId, string modelId, string resourceTy /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetInsightsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, DateTimeOffset? minInsightStartDateTime = null, DateTimeOffset? maxInsightStartDateTime = null, DateTimeOffset? minInsightEndDateTime = null, DateTimeOffset? maxInsightEndDateTime = null, IEnumerable measurementFilters = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetInsightsByPartyIdModelIdAndResourceAsync(string partyId, string modelId, string resourceType, string resourceId, DateTimeOffset? minInsightStartDateTime, DateTimeOffset? maxInsightStartDateTime, DateTimeOffset? minInsightEndDateTime, DateTimeOffset? maxInsightEndDateTime, IEnumerable measurementFilters, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -502,7 +502,7 @@ public virtual AsyncPageable GetInsightsByPartyIdModelIdAndResourceA /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetInsightsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, DateTimeOffset? minInsightStartDateTime = null, DateTimeOffset? maxInsightStartDateTime = null, DateTimeOffset? minInsightEndDateTime = null, DateTimeOffset? maxInsightEndDateTime = null, IEnumerable measurementFilters = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetInsightsByPartyIdModelIdAndResource(string partyId, string modelId, string resourceType, string resourceId, DateTimeOffset? minInsightStartDateTime, DateTimeOffset? maxInsightStartDateTime, DateTimeOffset? minInsightEndDateTime, DateTimeOffset? maxInsightEndDateTime, IEnumerable measurementFilters, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -537,7 +537,7 @@ public virtual Pageable GetInsightsByPartyIdModelIdAndResource(strin /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -583,7 +583,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string modelId, string resourceType, string resourceId, string insightId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ManagementZones.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ManagementZones.cs index 82ffe5676500..15f4c53ada01 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ManagementZones.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ManagementZones.cs @@ -67,7 +67,7 @@ internal ManagementZones(ClientDiagnostics clientDiagnostics, HttpPipeline pipel /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -102,7 +102,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -138,7 +138,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetManagementZoneAsync(string partyId, string managementZoneId, RequestContext context = null) + public virtual async Task GetManagementZoneAsync(string partyId, string managementZoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(managementZoneId, nameof(managementZoneId)); @@ -175,7 +175,7 @@ public virtual async Task GetManagementZoneAsync(string partyId, strin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetManagementZone(string partyId, string managementZoneId, RequestContext context = null) + public virtual Response GetManagementZone(string partyId, string managementZoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(managementZoneId, nameof(managementZoneId)); @@ -381,7 +381,7 @@ public virtual Response Delete(string partyId, string managementZoneId, RequestC /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetManagementZonesAsync(IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetManagementZonesAsync(IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetManagementZonesRequest(types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetManagementZonesNextPageRequest(nextLink, types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -423,7 +423,7 @@ public virtual AsyncPageable GetManagementZonesAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetManagementZones(IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetManagementZones(IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetManagementZonesRequest(types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetManagementZonesNextPageRequest(nextLink, types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -468,7 +468,7 @@ public virtual Pageable GetManagementZones(IEnumerable types /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetManagementZonesByPartyIdAsync(string partyId, IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetManagementZonesByPartyIdAsync(string partyId, IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -515,7 +515,7 @@ public virtual AsyncPageable GetManagementZonesByPartyIdAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetManagementZonesByPartyId(string partyId, IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetManagementZonesByPartyId(string partyId, IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -544,7 +544,7 @@ public virtual Pageable GetManagementZonesByPartyId(string partyId, /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -584,7 +584,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string managementZoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ModelInference.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ModelInference.cs index b286f4cb9a5b..7bbaa74cab9d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ModelInference.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ModelInference.cs @@ -66,7 +66,7 @@ internal ModelInference(ClientDiagnostics clientDiagnostics, HttpPipeline pipeli /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetBiomassModelJobAsync(string jobId, RequestContext context = null) + public virtual async Task GetBiomassModelJobAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -101,7 +101,7 @@ public virtual async Task GetBiomassModelJobAsync(string jobId, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetBiomassModelJob(string jobId, RequestContext context = null) + public virtual Response GetBiomassModelJob(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -136,7 +136,7 @@ public virtual Response GetBiomassModelJob(string jobId, RequestContext context /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorPlacementModelJobAsync(string jobId, RequestContext context = null) + public virtual async Task GetSensorPlacementModelJobAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -171,7 +171,7 @@ public virtual async Task GetSensorPlacementModelJobAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensorPlacementModelJob(string jobId, RequestContext context = null) + public virtual Response GetSensorPlacementModelJob(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -206,7 +206,7 @@ public virtual Response GetSensorPlacementModelJob(string jobId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSoilMoistureModelJobAsync(string jobId, RequestContext context = null) + public virtual async Task GetSoilMoistureModelJobAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -241,7 +241,7 @@ public virtual async Task GetSoilMoistureModelJobAsync(string jobId, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSoilMoistureModelJob(string jobId, RequestContext context = null) + public virtual Response GetSoilMoistureModelJob(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/NutrientAnalyses.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/NutrientAnalyses.cs index 0d4a22648ab9..270892be0137 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/NutrientAnalyses.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/NutrientAnalyses.cs @@ -68,7 +68,7 @@ internal NutrientAnalyses(ClientDiagnostics clientDiagnostics, HttpPipeline pipe /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetNutrientAnalysisAsync(string partyId, string nutrientAnalysisId, RequestContext context = null) + public virtual async Task GetNutrientAnalysisAsync(string partyId, string nutrientAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(nutrientAnalysisId, nameof(nutrientAnalysisId)); @@ -105,7 +105,7 @@ public virtual async Task GetNutrientAnalysisAsync(string partyId, str /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetNutrientAnalysis(string partyId, string nutrientAnalysisId, RequestContext context = null) + public virtual Response GetNutrientAnalysis(string partyId, string nutrientAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(nutrientAnalysisId, nameof(nutrientAnalysisId)); @@ -312,7 +312,7 @@ public virtual Response Delete(string partyId, string nutrientAnalysisId, Reques /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetNutrientAnalysesAsync(string parentType = null, IEnumerable parentIds = null, IEnumerable classifications = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetNutrientAnalysesAsync(string parentType, IEnumerable parentIds, IEnumerable classifications, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetNutrientAnalysesRequest(parentType, parentIds, classifications, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetNutrientAnalysesNextPageRequest(nextLink, parentType, parentIds, classifications, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -355,7 +355,7 @@ public virtual AsyncPageable GetNutrientAnalysesAsync(string parentT /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetNutrientAnalyses(string parentType = null, IEnumerable parentIds = null, IEnumerable classifications = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetNutrientAnalyses(string parentType, IEnumerable parentIds, IEnumerable classifications, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetNutrientAnalysesRequest(parentType, parentIds, classifications, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetNutrientAnalysesNextPageRequest(nextLink, parentType, parentIds, classifications, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -401,7 +401,7 @@ public virtual Pageable GetNutrientAnalyses(string parentType = null /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetNutrientAnalysesByPartyIdAsync(string partyId, string parentType = null, IEnumerable parentIds = null, IEnumerable classifications = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetNutrientAnalysesByPartyIdAsync(string partyId, string parentType, IEnumerable parentIds, IEnumerable classifications, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -449,7 +449,7 @@ public virtual AsyncPageable GetNutrientAnalysesByPartyIdAsync(strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetNutrientAnalysesByPartyId(string partyId, string parentType = null, IEnumerable parentIds = null, IEnumerable classifications = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetNutrientAnalysesByPartyId(string partyId, string parentType, IEnumerable parentIds, IEnumerable classifications, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProviders.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProviders.cs index 8e6037f08790..90dadd88ab60 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProviders.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProviders.cs @@ -67,7 +67,7 @@ internal OAuthProviders(ClientDiagnostics clientDiagnostics, HttpPipeline pipeli /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetOAuthProviderAsync(string oauthProviderId, RequestContext context = null) + public virtual async Task GetOAuthProviderAsync(string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(oauthProviderId, nameof(oauthProviderId)); @@ -102,7 +102,7 @@ public virtual async Task GetOAuthProviderAsync(string oauthProviderId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetOAuthProvider(string oauthProviderId, RequestContext context = null) + public virtual Response GetOAuthProvider(string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(oauthProviderId, nameof(oauthProviderId)); @@ -281,7 +281,7 @@ public virtual Response Delete(string oauthProviderId, RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -316,7 +316,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -364,7 +364,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetOAuthProvidersAsync(IEnumerable providerIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetOAuthProvidersAsync(IEnumerable providerIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetOAuthProvidersRequest(providerIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetOAuthProvidersNextPageRequest(nextLink, providerIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -401,7 +401,7 @@ public virtual AsyncPageable GetOAuthProvidersAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetOAuthProviders(IEnumerable providerIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetOAuthProviders(IEnumerable providerIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetOAuthProvidersRequest(providerIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetOAuthProvidersNextPageRequest(nextLink, providerIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -427,7 +427,7 @@ public virtual Pageable GetOAuthProviders(IEnumerable provid /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string oauthProviderId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(oauthProviderId, nameof(oauthProviderId)); @@ -465,7 +465,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string oauthProviderId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string oauthProviderId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(oauthProviderId, nameof(oauthProviderId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Parties.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Parties.cs index 3d3f40ab43f5..5e08f6ccde7f 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Parties.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Parties.cs @@ -67,7 +67,7 @@ internal Parties(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Tok /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPartyAsync(string partyId, RequestContext context = null) + public virtual async Task GetPartyAsync(string partyId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -102,7 +102,7 @@ public virtual async Task GetPartyAsync(string partyId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetParty(string partyId, RequestContext context = null) + public virtual Response GetParty(string partyId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -281,7 +281,7 @@ public virtual Response Delete(string partyId, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -316,7 +316,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -364,7 +364,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPartiesAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPartiesAsync(IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPartiesRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPartiesNextPageRequest(nextLink, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -401,7 +401,7 @@ public virtual AsyncPageable GetPartiesAsync(IEnumerable ids /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetParties(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetParties(IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPartiesRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPartiesNextPageRequest(nextLink, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -427,7 +427,7 @@ public virtual Pageable GetParties(IEnumerable ids = null, I /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -465,7 +465,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantTissueAnalyses.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantTissueAnalyses.cs index 06c3e8c033da..751b99f96304 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantTissueAnalyses.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantTissueAnalyses.cs @@ -68,7 +68,7 @@ internal PlantTissueAnalyses(ClientDiagnostics clientDiagnostics, HttpPipeline p /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPlantTissueAnalysisAsync(string partyId, string plantTissueAnalysisId, RequestContext context = null) + public virtual async Task GetPlantTissueAnalysisAsync(string partyId, string plantTissueAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(plantTissueAnalysisId, nameof(plantTissueAnalysisId)); @@ -105,7 +105,7 @@ public virtual async Task GetPlantTissueAnalysisAsync(string partyId, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPlantTissueAnalysis(string partyId, string plantTissueAnalysisId, RequestContext context = null) + public virtual Response GetPlantTissueAnalysis(string partyId, string plantTissueAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(plantTissueAnalysisId, nameof(plantTissueAnalysisId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string plantTissueAnalysisId, Req /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -383,7 +383,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPlantTissueAnalysesByPartyIdAsync(string partyId, IEnumerable seasonIds = null, IEnumerable cropIds = null, IEnumerable cropProductsIds = null, IEnumerable fieldIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPlantTissueAnalysesByPartyIdAsync(string partyId, IEnumerable seasonIds, IEnumerable cropIds, IEnumerable cropProductsIds, IEnumerable fieldIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -429,7 +429,7 @@ public virtual AsyncPageable GetPlantTissueAnalysesByPartyIdAsync(st /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPlantTissueAnalysesByPartyId(string partyId, IEnumerable seasonIds = null, IEnumerable cropIds = null, IEnumerable cropProductsIds = null, IEnumerable fieldIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPlantTissueAnalysesByPartyId(string partyId, IEnumerable seasonIds, IEnumerable cropIds, IEnumerable cropProductsIds, IEnumerable fieldIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -472,7 +472,7 @@ public virtual Pageable GetPlantTissueAnalysesByPartyId(string party /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPlantTissueAnalysesAsync(IEnumerable seasonIds = null, IEnumerable cropIds = null, IEnumerable cropProductsIds = null, IEnumerable fieldIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPlantTissueAnalysesAsync(IEnumerable seasonIds, IEnumerable cropIds, IEnumerable cropProductsIds, IEnumerable fieldIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPlantTissueAnalysesRequest(seasonIds, cropIds, cropProductsIds, fieldIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPlantTissueAnalysesNextPageRequest(nextLink, seasonIds, cropIds, cropProductsIds, fieldIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -513,7 +513,7 @@ public virtual AsyncPageable GetPlantTissueAnalysesAsync(IEnumerable /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPlantTissueAnalyses(IEnumerable seasonIds = null, IEnumerable cropIds = null, IEnumerable cropProductsIds = null, IEnumerable fieldIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPlantTissueAnalyses(IEnumerable seasonIds, IEnumerable cropIds, IEnumerable cropProductsIds, IEnumerable fieldIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPlantTissueAnalysesRequest(seasonIds, cropIds, cropProductsIds, fieldIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPlantTissueAnalysesNextPageRequest(nextLink, seasonIds, cropIds, cropProductsIds, fieldIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -540,7 +540,7 @@ public virtual Pageable GetPlantTissueAnalyses(IEnumerable s /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -580,7 +580,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string plantTissueAnalysisId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingData.cs index b5b5e648b47a..105bebcee63c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingData.cs @@ -68,7 +68,7 @@ internal PlantingData(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPlantingDataAsync(string partyId, string plantingDataId, RequestContext context = null) + public virtual async Task GetPlantingDataAsync(string partyId, string plantingDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(plantingDataId, nameof(plantingDataId)); @@ -105,7 +105,7 @@ public virtual async Task GetPlantingDataAsync(string partyId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPlantingData(string partyId, string plantingDataId, RequestContext context = null) + public virtual Response GetPlantingData(string partyId, string plantingDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(plantingDataId, nameof(plantingDataId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string plantingDataId, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -395,7 +395,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllPlantingDataByPartyIdAsync(string partyId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllPlantingDataByPartyIdAsync(string partyId, double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -453,7 +453,7 @@ public virtual AsyncPageable GetAllPlantingDataByPartyIdAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllPlantingDataByPartyId(string partyId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllPlantingDataByPartyId(string partyId, double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -508,7 +508,7 @@ public virtual Pageable GetAllPlantingDataByPartyId(string partyId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllPlantingDataAsync(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable plantingDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllPlantingDataAsync(double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable plantingDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllPlantingDataRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, plantingDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllPlantingDataNextPageRequest(nextLink, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, plantingDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -561,7 +561,7 @@ public virtual AsyncPageable GetAllPlantingDataAsync(double? minAvgP /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllPlantingData(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable plantingDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllPlantingData(double? minAvgPlantingRate, double? maxAvgPlantingRate, double? minTotalMaterial, double? maxTotalMaterial, double? minAvgMaterial, double? maxAvgMaterial, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable plantingDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllPlantingDataRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, plantingDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllPlantingDataNextPageRequest(nextLink, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, plantingDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -588,7 +588,7 @@ public virtual Pageable GetAllPlantingData(double? minAvgPlantingRat /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -628,7 +628,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string plantingDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PrescriptionMaps.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PrescriptionMaps.cs index b82f462089fe..d408b08fe7e2 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PrescriptionMaps.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PrescriptionMaps.cs @@ -68,7 +68,7 @@ internal PrescriptionMaps(ClientDiagnostics clientDiagnostics, HttpPipeline pipe /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPrescriptionMapAsync(string partyId, string prescriptionMapId, RequestContext context = null) + public virtual async Task GetPrescriptionMapAsync(string partyId, string prescriptionMapId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(prescriptionMapId, nameof(prescriptionMapId)); @@ -105,7 +105,7 @@ public virtual async Task GetPrescriptionMapAsync(string partyId, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPrescriptionMap(string partyId, string prescriptionMapId, RequestContext context = null) + public virtual Response GetPrescriptionMap(string partyId, string prescriptionMapId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(prescriptionMapId, nameof(prescriptionMapId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string prescriptionMapId, Request /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -384,7 +384,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPrescriptionMapsByPartyIdAsync(string partyId, IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPrescriptionMapsByPartyIdAsync(string partyId, IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -431,7 +431,7 @@ public virtual AsyncPageable GetPrescriptionMapsByPartyIdAsync(strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPrescriptionMapsByPartyId(string partyId, IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPrescriptionMapsByPartyId(string partyId, IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -475,7 +475,7 @@ public virtual Pageable GetPrescriptionMapsByPartyId(string partyId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPrescriptionMapsAsync(IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPrescriptionMapsAsync(IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPrescriptionMapsRequest(types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPrescriptionMapsNextPageRequest(nextLink, types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -517,7 +517,7 @@ public virtual AsyncPageable GetPrescriptionMapsAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPrescriptionMaps(IEnumerable types = null, IEnumerable cropIds = null, IEnumerable seasonIds = null, IEnumerable fieldIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPrescriptionMaps(IEnumerable types, IEnumerable cropIds, IEnumerable seasonIds, IEnumerable fieldIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPrescriptionMapsRequest(types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPrescriptionMapsNextPageRequest(nextLink, types, cropIds, seasonIds, fieldIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -544,7 +544,7 @@ public virtual Pageable GetPrescriptionMaps(IEnumerable type /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -584,7 +584,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string prescriptionMapId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Prescriptions.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Prescriptions.cs index 80f29b620e47..95519c83ddab 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Prescriptions.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Prescriptions.cs @@ -68,7 +68,7 @@ internal Prescriptions(ClientDiagnostics clientDiagnostics, HttpPipeline pipelin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPrescriptionAsync(string partyId, string prescriptionId, RequestContext context = null) + public virtual async Task GetPrescriptionAsync(string partyId, string prescriptionId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(prescriptionId, nameof(prescriptionId)); @@ -105,7 +105,7 @@ public virtual async Task GetPrescriptionAsync(string partyId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPrescription(string partyId, string prescriptionId, RequestContext context = null) + public virtual Response GetPrescription(string partyId, string prescriptionId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(prescriptionId, nameof(prescriptionId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string prescriptionId, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -384,7 +384,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPrescriptionsByPartyIdAsync(string partyId, IEnumerable prescriptionMapIds = null, IEnumerable types = null, IEnumerable productCodes = null, IEnumerable productNames = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPrescriptionsByPartyIdAsync(string partyId, IEnumerable prescriptionMapIds, IEnumerable types, IEnumerable productCodes, IEnumerable productNames, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -431,7 +431,7 @@ public virtual AsyncPageable GetPrescriptionsByPartyIdAsync(string p /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPrescriptionsByPartyId(string partyId, IEnumerable prescriptionMapIds = null, IEnumerable types = null, IEnumerable productCodes = null, IEnumerable productNames = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPrescriptionsByPartyId(string partyId, IEnumerable prescriptionMapIds, IEnumerable types, IEnumerable productCodes, IEnumerable productNames, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -475,7 +475,7 @@ public virtual Pageable GetPrescriptionsByPartyId(string partyId, IE /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPrescriptionsAsync(IEnumerable prescriptionMapIds = null, IEnumerable types = null, IEnumerable productCodes = null, IEnumerable productNames = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetPrescriptionsAsync(IEnumerable prescriptionMapIds, IEnumerable types, IEnumerable productCodes, IEnumerable productNames, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPrescriptionsRequest(prescriptionMapIds, types, productCodes, productNames, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPrescriptionsNextPageRequest(nextLink, prescriptionMapIds, types, productCodes, productNames, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -517,7 +517,7 @@ public virtual AsyncPageable GetPrescriptionsAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPrescriptions(IEnumerable prescriptionMapIds = null, IEnumerable types = null, IEnumerable productCodes = null, IEnumerable productNames = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetPrescriptions(IEnumerable prescriptionMapIds, IEnumerable types, IEnumerable productCodes, IEnumerable productNames, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPrescriptionsRequest(prescriptionMapIds, types, productCodes, productNames, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPrescriptionsNextPageRequest(nextLink, prescriptionMapIds, types, productCodes, productNames, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -544,7 +544,7 @@ public virtual Pageable GetPrescriptions(IEnumerable prescri /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -584,7 +584,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string prescriptionId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Scenes.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Scenes.cs index 78725320759a..a8c974259bc9 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Scenes.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Scenes.cs @@ -66,7 +66,7 @@ internal Scenes(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Toke /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DownloadAsync(string filePath, RequestContext context = null) + public virtual async Task DownloadAsync(string filePath, RequestContext context) { Argument.AssertNotNull(filePath, nameof(filePath)); @@ -100,7 +100,7 @@ public virtual async Task DownloadAsync(string filePath, RequestContex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Download(string filePath, RequestContext context = null) + public virtual Response Download(string filePath, RequestContext context) { Argument.AssertNotNull(filePath, nameof(filePath)); @@ -135,7 +135,7 @@ public virtual Response Download(string filePath, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -170,7 +170,7 @@ public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(str /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSatelliteDataIngestionJobDetails(string jobId, RequestContext context = null) + public virtual Response GetSatelliteDataIngestionJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -284,7 +284,7 @@ public virtual Response SearchFeatures(string collectionId, RequestContent conte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetStacFeatureAsync(string collectionId, string featureId, RequestContext context = null) + public virtual async Task GetStacFeatureAsync(string collectionId, string featureId, RequestContext context) { Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); Argument.AssertNotNullOrEmpty(featureId, nameof(featureId)); @@ -321,7 +321,7 @@ public virtual async Task GetStacFeatureAsync(string collectionId, str /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetStacFeature(string collectionId, string featureId, RequestContext context = null) + public virtual Response GetStacFeature(string collectionId, string featureId, RequestContext context) { Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); Argument.AssertNotNullOrEmpty(featureId, nameof(featureId)); @@ -371,7 +371,7 @@ public virtual Response GetStacFeature(string collectionId, string featureId, Re /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetScenesAsync(string provider, string partyId, string boundaryId, string source, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetScenesAsync(string provider, string partyId, string boundaryId, string source, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, double? maxCloudCoveragePercentage, double? maxDarkPixelCoveragePercentage, IEnumerable imageNames, IEnumerable imageResolutions, IEnumerable imageFormats, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNull(provider, nameof(provider)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -414,7 +414,7 @@ public virtual AsyncPageable GetScenesAsync(string provider, string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetScenes(string provider, string partyId, string boundaryId, string source, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetScenes(string provider, string partyId, string boundaryId, string source, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, double? maxCloudCoveragePercentage, double? maxDarkPixelCoveragePercentage, IEnumerable imageNames, IEnumerable imageResolutions, IEnumerable imageFormats, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNull(provider, nameof(provider)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFields.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFields.cs index 1f65e379724f..fa52ae6cbb9d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFields.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFields.cs @@ -68,7 +68,7 @@ internal SeasonalFields(ClientDiagnostics clientDiagnostics, HttpPipeline pipeli /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSeasonalFieldAsync(string partyId, string seasonalFieldId, RequestContext context = null) + public virtual async Task GetSeasonalFieldAsync(string partyId, string seasonalFieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(seasonalFieldId, nameof(seasonalFieldId)); @@ -105,7 +105,7 @@ public virtual async Task GetSeasonalFieldAsync(string partyId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSeasonalField(string partyId, string seasonalFieldId, RequestContext context = null) + public virtual Response GetSeasonalField(string partyId, string seasonalFieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(seasonalFieldId, nameof(seasonalFieldId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string seasonalFieldId, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -384,7 +384,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSeasonalFieldsByPartyIdAsync(string partyId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropProductIds = null, IEnumerable cropIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSeasonalFieldsByPartyIdAsync(string partyId, IEnumerable farmIds, IEnumerable fieldIds, IEnumerable seasonIds, IEnumerable cropProductIds, IEnumerable cropIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -431,7 +431,7 @@ public virtual AsyncPageable GetSeasonalFieldsByPartyIdAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSeasonalFieldsByPartyId(string partyId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropProductIds = null, IEnumerable cropIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSeasonalFieldsByPartyId(string partyId, IEnumerable farmIds, IEnumerable fieldIds, IEnumerable seasonIds, IEnumerable cropProductIds, IEnumerable cropIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -475,7 +475,7 @@ public virtual Pageable GetSeasonalFieldsByPartyId(string partyId, I /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSeasonalFieldsAsync(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropProductIds = null, IEnumerable cropIds = null, IEnumerable seasonalFieldIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSeasonalFieldsAsync(IEnumerable farmIds, IEnumerable fieldIds, IEnumerable seasonIds, IEnumerable cropProductIds, IEnumerable cropIds, IEnumerable seasonalFieldIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSeasonalFieldsRequest(farmIds, fieldIds, seasonIds, cropProductIds, cropIds, seasonalFieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSeasonalFieldsNextPageRequest(nextLink, farmIds, fieldIds, seasonIds, cropProductIds, cropIds, seasonalFieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -517,7 +517,7 @@ public virtual AsyncPageable GetSeasonalFieldsAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSeasonalFields(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropProductIds = null, IEnumerable cropIds = null, IEnumerable seasonalFieldIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSeasonalFields(IEnumerable farmIds, IEnumerable fieldIds, IEnumerable seasonIds, IEnumerable cropProductIds, IEnumerable cropIds, IEnumerable seasonalFieldIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSeasonalFieldsRequest(farmIds, fieldIds, seasonIds, cropProductIds, cropIds, seasonalFieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSeasonalFieldsNextPageRequest(nextLink, farmIds, fieldIds, seasonIds, cropProductIds, cropIds, seasonalFieldIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -544,7 +544,7 @@ public virtual Pageable GetSeasonalFields(IEnumerable farmId /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -584,7 +584,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string seasonalFieldId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Seasons.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Seasons.cs index c6e3b9475093..325e4613ab06 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Seasons.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Seasons.cs @@ -67,7 +67,7 @@ internal Seasons(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Tok /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSeasonAsync(string seasonId, RequestContext context = null) + public virtual async Task GetSeasonAsync(string seasonId, RequestContext context) { Argument.AssertNotNullOrEmpty(seasonId, nameof(seasonId)); @@ -102,7 +102,7 @@ public virtual async Task GetSeasonAsync(string seasonId, RequestConte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSeason(string seasonId, RequestContext context = null) + public virtual Response GetSeason(string seasonId, RequestContext context) { Argument.AssertNotNullOrEmpty(seasonId, nameof(seasonId)); @@ -299,7 +299,7 @@ public virtual Response Delete(string seasonId, RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSeasonsAsync(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable seasonIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSeasonsAsync(DateTimeOffset? minStartDateTime, DateTimeOffset? maxStartDateTime, DateTimeOffset? minEndDateTime, DateTimeOffset? maxEndDateTime, IEnumerable years, IEnumerable seasonIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSeasonsRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, seasonIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSeasonsNextPageRequest(nextLink, minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, seasonIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -341,7 +341,7 @@ public virtual AsyncPageable GetSeasonsAsync(DateTimeOffset? minStar /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSeasons(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable seasonIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSeasons(DateTimeOffset? minStartDateTime, DateTimeOffset? maxStartDateTime, DateTimeOffset? minEndDateTime, DateTimeOffset? maxEndDateTime, IEnumerable years, IEnumerable seasonIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSeasonsRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, seasonIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSeasonsNextPageRequest(nextLink, minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, seasonIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorDataModels.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorDataModels.cs index de7912e2d8f8..9b7d48f73a04 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorDataModels.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorDataModels.cs @@ -146,7 +146,7 @@ public virtual Response CreateOrUpdate(string sensorPartnerId, string sensorData /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorDataModelAsync(string sensorPartnerId, string sensorDataModelId, RequestContext context = null) + public virtual async Task GetSensorDataModelAsync(string sensorPartnerId, string sensorDataModelId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorDataModelId, nameof(sensorDataModelId)); @@ -183,7 +183,7 @@ public virtual async Task GetSensorDataModelAsync(string sensorPartner /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensorDataModel(string sensorPartnerId, string sensorDataModelId, RequestContext context = null) + public virtual Response GetSensorDataModel(string sensorPartnerId, string sensorDataModelId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorDataModelId, nameof(sensorDataModelId)); @@ -309,7 +309,7 @@ public virtual Response Delete(string sensorPartnerId, string sensorDataModelId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSensorDataModelsAsync(string sensorPartnerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSensorDataModelsAsync(string sensorPartnerId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); @@ -351,7 +351,7 @@ public virtual AsyncPageable GetSensorDataModelsAsync(string sensorP /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSensorDataModels(string sensorPartnerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSensorDataModels(string sensorPartnerId, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorEvents.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorEvents.cs index 0350e256dea3..83fa84467f39 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorEvents.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorEvents.cs @@ -76,7 +76,7 @@ internal SensorEvents(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorEventsAsync(string sensorId, string sensorPartnerId, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, bool? excludeDuplicateEvents = null, RequestContext context = null) + public virtual async Task GetSensorEventsAsync(string sensorId, string sensorPartnerId, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, bool? excludeDuplicateEvents, RequestContext context) { Argument.AssertNotNull(sensorId, nameof(sensorId)); Argument.AssertNotNull(sensorPartnerId, nameof(sensorPartnerId)); @@ -122,7 +122,7 @@ public virtual async Task GetSensorEventsAsync(string sensorId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensorEvents(string sensorId, string sensorPartnerId, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, bool? excludeDuplicateEvents = null, RequestContext context = null) + public virtual Response GetSensorEvents(string sensorId, string sensorPartnerId, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, bool? excludeDuplicateEvents, RequestContext context) { Argument.AssertNotNull(sensorId, nameof(sensorId)); Argument.AssertNotNull(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorMappings.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorMappings.cs index e8e935f1986b..e961c33812d9 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorMappings.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorMappings.cs @@ -141,7 +141,7 @@ public virtual Response CreateOrUpdate(string sensorMappingId, RequestContent co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorMappingAsync(string sensorMappingId, RequestContext context = null) + public virtual async Task GetSensorMappingAsync(string sensorMappingId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorMappingId, nameof(sensorMappingId)); @@ -176,7 +176,7 @@ public virtual async Task GetSensorMappingAsync(string sensorMappingId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensorMapping(string sensorMappingId, RequestContext context = null) + public virtual Response GetSensorMapping(string sensorMappingId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorMappingId, nameof(sensorMappingId)); @@ -298,7 +298,7 @@ public virtual Response Delete(string sensorMappingId, RequestContext context = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSensorMappingsAsync(IEnumerable sensorIds = null, IEnumerable sensorPartnerIds = null, IEnumerable partyIds = null, IEnumerable boundaryIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSensorMappingsAsync(IEnumerable sensorIds, IEnumerable sensorPartnerIds, IEnumerable partyIds, IEnumerable boundaryIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSensorMappingsRequest(sensorIds, sensorPartnerIds, partyIds, boundaryIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSensorMappingsNextPageRequest(nextLink, sensorIds, sensorPartnerIds, partyIds, boundaryIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -339,7 +339,7 @@ public virtual AsyncPageable GetSensorMappingsAsync(IEnumerable Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSensorMappings(IEnumerable sensorIds = null, IEnumerable sensorPartnerIds = null, IEnumerable partyIds = null, IEnumerable boundaryIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSensorMappings(IEnumerable sensorIds, IEnumerable sensorPartnerIds, IEnumerable partyIds, IEnumerable boundaryIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSensorMappingsRequest(sensorIds, sensorPartnerIds, partyIds, boundaryIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSensorMappingsNextPageRequest(nextLink, sensorIds, sensorPartnerIds, partyIds, boundaryIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorPartnerIntegrations.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorPartnerIntegrations.cs index 5a5dd51ac2be..cd1b5c59b195 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorPartnerIntegrations.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SensorPartnerIntegrations.cs @@ -146,7 +146,7 @@ public virtual Response CreateOrUpdate(string sensorPartnerId, string integratio /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorPartnerIntegrationAsync(string sensorPartnerId, string integrationId, RequestContext context = null) + public virtual async Task GetSensorPartnerIntegrationAsync(string sensorPartnerId, string integrationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -183,7 +183,7 @@ public virtual async Task GetSensorPartnerIntegrationAsync(string sens /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensorPartnerIntegration(string sensorPartnerId, string integrationId, RequestContext context = null) + public virtual Response GetSensorPartnerIntegration(string sensorPartnerId, string integrationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -295,7 +295,7 @@ public virtual Response Delete(string sensorPartnerId, string integrationId, Req /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CheckConsentAsync(string sensorPartnerId, string integrationId, string key, RequestContext context = null) + public virtual async Task CheckConsentAsync(string sensorPartnerId, string integrationId, string key, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -334,7 +334,7 @@ public virtual async Task CheckConsentAsync(string sensorPartnerId, st /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CheckConsent(string sensorPartnerId, string integrationId, string key, RequestContext context = null) + public virtual Response CheckConsent(string sensorPartnerId, string integrationId, string key, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -372,7 +372,7 @@ public virtual Response CheckConsent(string sensorPartnerId, string integrationI /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GenerateConsentLinkAsync(string sensorPartnerId, string integrationId, RequestContext context = null) + public virtual async Task GenerateConsentLinkAsync(string sensorPartnerId, string integrationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -409,7 +409,7 @@ public virtual async Task GenerateConsentLinkAsync(string sensorPartne /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GenerateConsentLink(string sensorPartnerId, string integrationId, RequestContext context = null) + public virtual Response GenerateConsentLink(string sensorPartnerId, string integrationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(integrationId, nameof(integrationId)); @@ -463,7 +463,7 @@ public virtual Response GenerateConsentLink(string sensorPartnerId, string integ /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSensorPartnerIntegrationsAsync(string sensorPartnerId, IEnumerable integrationIds = null, IEnumerable partyIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSensorPartnerIntegrationsAsync(string sensorPartnerId, IEnumerable integrationIds, IEnumerable partyIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); @@ -507,7 +507,7 @@ public virtual AsyncPageable GetSensorPartnerIntegrationsAsync(strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSensorPartnerIntegrations(string sensorPartnerId, IEnumerable integrationIds = null, IEnumerable partyIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSensorPartnerIntegrations(string sensorPartnerId, IEnumerable integrationIds, IEnumerable partyIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Sensors.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Sensors.cs index 1c4386213bac..b39f8d8ae88c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Sensors.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Sensors.cs @@ -146,7 +146,7 @@ public virtual Response CreateOrUpdate(string sensorPartnerId, string sensorId, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSensorAsync(string sensorPartnerId, string sensorId, RequestContext context = null) + public virtual async Task GetSensorAsync(string sensorPartnerId, string sensorId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorId, nameof(sensorId)); @@ -183,7 +183,7 @@ public virtual async Task GetSensorAsync(string sensorPartnerId, strin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSensor(string sensorPartnerId, string sensorId, RequestContext context = null) + public virtual Response GetSensor(string sensorPartnerId, string sensorId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorId, nameof(sensorId)); @@ -294,7 +294,7 @@ public virtual Response Delete(string sensorPartnerId, string sensorId, RequestC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetConnectionStringAsync(string sensorPartnerId, string sensorId, RequestContext context = null) + public virtual async Task GetConnectionStringAsync(string sensorPartnerId, string sensorId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorId, nameof(sensorId)); @@ -331,7 +331,7 @@ public virtual async Task GetConnectionStringAsync(string sensorPartne /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetConnectionString(string sensorPartnerId, string sensorId, RequestContext context = null) + public virtual Response GetConnectionString(string sensorPartnerId, string sensorId, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); Argument.AssertNotNullOrEmpty(sensorId, nameof(sensorId)); @@ -464,7 +464,7 @@ public virtual Response RenewConnectionString(string sensorPartnerId, string sen /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSensorsAsync(string sensorPartnerId, IEnumerable sensorDataModelIds = null, IEnumerable sensorMappingIds = null, IEnumerable deviceIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetSensorsAsync(string sensorPartnerId, IEnumerable sensorDataModelIds, IEnumerable sensorMappingIds, IEnumerable deviceIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); @@ -509,7 +509,7 @@ public virtual AsyncPageable GetSensorsAsync(string sensorPartnerId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSensors(string sensorPartnerId, IEnumerable sensorDataModelIds = null, IEnumerable sensorMappingIds = null, IEnumerable deviceIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetSensors(string sensorPartnerId, IEnumerable sensorDataModelIds, IEnumerable sensorMappingIds, IEnumerable deviceIds, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sensorPartnerId, nameof(sensorPartnerId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageData.cs index 23447603682e..4f6ee313348e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageData.cs @@ -68,7 +68,7 @@ internal TillageData(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTillageDataAsync(string partyId, string tillageDataId, RequestContext context = null) + public virtual async Task GetTillageDataAsync(string partyId, string tillageDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(tillageDataId, nameof(tillageDataId)); @@ -105,7 +105,7 @@ public virtual async Task GetTillageDataAsync(string partyId, string t /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTillageData(string partyId, string tillageDataId, RequestContext context = null) + public virtual Response GetTillageData(string partyId, string tillageDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(tillageDataId, nameof(tillageDataId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string tillageDataId, RequestCont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -393,7 +393,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllTillageDataByPartyIdAsync(string partyId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllTillageDataByPartyIdAsync(string partyId, double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -449,7 +449,7 @@ public virtual AsyncPageable GetAllTillageDataByPartyIdAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllTillageDataByPartyId(string partyId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllTillageDataByPartyId(string partyId, double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -502,7 +502,7 @@ public virtual Pageable GetAllTillageDataByPartyId(string partyId, d /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllTillageDataAsync(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable tillageDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAllTillageDataAsync(double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable tillageDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllTillageDataRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, tillageDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllTillageDataNextPageRequest(nextLink, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, tillageDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -553,7 +553,7 @@ public virtual AsyncPageable GetAllTillageDataAsync(double? minTilla /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllTillageData(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable tillageDataIds = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAllTillageData(double? minTillageDepth, double? maxTillageDepth, double? minTillagePressure, double? maxTillagePressure, IEnumerable sources, IEnumerable associatedBoundaryIds, DateTimeOffset? minOperationStartDateTime, DateTimeOffset? maxOperationStartDateTime, DateTimeOffset? minOperationEndDateTime, DateTimeOffset? maxOperationEndDateTime, DateTimeOffset? minOperationModifiedDateTime, DateTimeOffset? maxOperationModifiedDateTime, double? minArea, double? maxArea, IEnumerable tillageDataIds, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllTillageDataRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, tillageDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllTillageDataNextPageRequest(nextLink, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, tillageDataIds, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -580,7 +580,7 @@ public virtual Pageable GetAllTillageData(double? minTillageDepth = /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -620,7 +620,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string tillageDataId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Weather.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Weather.cs index 7bf32fc7004c..216c9b719e60 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Weather.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Weather.cs @@ -66,7 +66,7 @@ internal Weather(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Tok /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -101,7 +101,7 @@ public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDataDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetDataDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -136,7 +136,7 @@ public virtual Response GetDataDeleteJobDetails(string jobId, RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -171,7 +171,7 @@ public virtual async Task GetDataIngestionJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDataIngestionJobDetails(string jobId, RequestContext context = null) + public virtual Response GetDataIngestionJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -216,7 +216,7 @@ public virtual Response GetDataIngestionJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetWeathersAsync(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetWeathersAsync(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNull(partyId, nameof(partyId)); Argument.AssertNotNull(boundaryId, nameof(boundaryId)); @@ -256,7 +256,7 @@ public virtual AsyncPageable GetWeathersAsync(string partyId, string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetWeathers(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetWeathers(string partyId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNull(partyId, nameof(partyId)); Argument.AssertNotNull(boundaryId, nameof(boundaryId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Zones.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Zones.cs index b5bd53295230..71dd57693da4 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Zones.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Zones.cs @@ -68,7 +68,7 @@ internal Zones(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Token /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetZoneAsync(string partyId, string zoneId, RequestContext context = null) + public virtual async Task GetZoneAsync(string partyId, string zoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(zoneId, nameof(zoneId)); @@ -105,7 +105,7 @@ public virtual async Task GetZoneAsync(string partyId, string zoneId, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetZone(string partyId, string zoneId, RequestContext context = null) + public virtual Response GetZone(string partyId, string zoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(zoneId, nameof(zoneId)); @@ -293,7 +293,7 @@ public virtual Response Delete(string partyId, string zoneId, RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -328,7 +328,7 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); @@ -382,7 +382,7 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetZonesByPartyIdAsync(string partyId, IEnumerable types = null, IEnumerable managementZoneIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetZonesByPartyIdAsync(string partyId, IEnumerable types, IEnumerable managementZoneIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -427,7 +427,7 @@ public virtual AsyncPageable GetZonesByPartyIdAsync(string partyId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetZonesByPartyId(string partyId, IEnumerable types = null, IEnumerable managementZoneIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetZonesByPartyId(string partyId, IEnumerable types, IEnumerable managementZoneIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); @@ -469,7 +469,7 @@ public virtual Pageable GetZonesByPartyId(string partyId, IEnumerabl /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetZonesAsync(IEnumerable types = null, IEnumerable managementZoneIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetZonesAsync(IEnumerable types, IEnumerable managementZoneIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetZonesRequest(types, managementZoneIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetZonesNextPageRequest(nextLink, types, managementZoneIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -509,7 +509,7 @@ public virtual AsyncPageable GetZonesAsync(IEnumerable types /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetZones(IEnumerable types = null, IEnumerable managementZoneIds = null, IEnumerable sources = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestContext context = null) + public virtual Pageable GetZones(IEnumerable types, IEnumerable managementZoneIds, IEnumerable sources, IEnumerable ids, IEnumerable names, IEnumerable propertyFilters, IEnumerable statuses, DateTimeOffset? minCreatedDateTime, DateTimeOffset? maxCreatedDateTime, DateTimeOffset? minLastModifiedDateTime, DateTimeOffset? maxLastModifiedDateTime, int? maxPageSize, string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetZonesRequest(types, managementZoneIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetZonesNextPageRequest(nextLink, types, managementZoneIds, sources, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, context); @@ -536,7 +536,7 @@ public virtual Pageable GetZones(IEnumerable types = null, I /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string zoneId, RequestContext context = null) + public virtual async Task> CreateCascadeDeleteJobAsync(WaitUntil waitUntil, string jobId, string partyId, string zoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); @@ -576,7 +576,7 @@ public virtual async Task> CreateCascadeDeleteJobAsync(Wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string zoneId, RequestContext context = null) + public virtual Operation CreateCascadeDeleteJob(WaitUntil waitUntil, string jobId, string partyId, string zoneId, RequestContext context) { Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); Argument.AssertNotNull(partyId, nameof(partyId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/FarmBeatsClientLiveTests.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/FarmBeatsClientLiveTests.cs index 3e99af22114c..384e7e2a6cbc 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/FarmBeatsClientLiveTests.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/FarmBeatsClientLiveTests.cs @@ -29,7 +29,7 @@ public async Task PartiesSmokeTest() Assert.IsTrue(HasProperty(createdBodyJson, "createdDateTime")); Assert.IsTrue(HasProperty(createdBodyJson, "modifiedDateTime")); - Response fetchResponse = await partiesClient.GetPartyAsync(partyId); + Response fetchResponse = await partiesClient.GetPartyAsync(partyId, new()); JsonElement fetchBodyJson = JsonDocument.Parse(GetContentFromResponse(fetchResponse)).RootElement; Assert.AreEqual(createdBodyJson.GetProperty("id").GetString(), fetchBodyJson.GetProperty("id").GetString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ApplicationData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ApplicationData.cs index a512bafa873e..afcf5684342c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ApplicationData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ApplicationData.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -104,7 +104,7 @@ public void Example_GetApplicationData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = client.GetApplicationData("", ""); + Response response = client.GetApplicationData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -117,7 +117,7 @@ public void Example_GetApplicationData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = client.GetApplicationData("", ""); + Response response = client.GetApplicationData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -158,7 +158,7 @@ public async Task Example_GetApplicationData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = await client.GetApplicationDataAsync("", ""); + Response response = await client.GetApplicationDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -171,7 +171,7 @@ public async Task Example_GetApplicationData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - Response response = await client.GetApplicationDataAsync("", ""); + Response response = await client.GetApplicationDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -458,7 +458,7 @@ public void Example_GetAllApplicationData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllApplicationData()) + foreach (var item in client.GetAllApplicationData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -472,7 +472,7 @@ public void Example_GetAllApplicationData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllApplicationData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllApplicationData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -514,7 +514,7 @@ public async Task Example_GetAllApplicationData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllApplicationDataAsync()) + await foreach (var item in client.GetAllApplicationDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -528,7 +528,7 @@ public async Task Example_GetAllApplicationData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllApplicationDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllApplicationDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -570,7 +570,7 @@ public void Example_GetAllApplicationDataByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllApplicationDataByPartyId("")) + foreach (var item in client.GetAllApplicationDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -584,7 +584,7 @@ public void Example_GetAllApplicationDataByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllApplicationDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllApplicationDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -626,7 +626,7 @@ public async Task Example_GetAllApplicationDataByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("")) + await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -640,7 +640,7 @@ public async Task Example_GetAllApplicationDataByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllApplicationDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("applicationProductDetails")[0].GetProperty("productName").ToString()); @@ -682,7 +682,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -698,7 +698,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -723,7 +723,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -739,7 +739,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetApplicationDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; 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 1b0367dcd9a2..0051ec005d3f 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 @@ -26,7 +26,7 @@ public void Example_GetAttachment() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = client.GetAttachment("", ""); + Response response = client.GetAttachment("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetAttachment_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = client.GetAttachment("", ""); + Response response = client.GetAttachment("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetAttachment_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = await client.GetAttachmentAsync("", ""); + Response response = await client.GetAttachmentAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -78,7 +78,7 @@ public async Task Example_GetAttachment_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = await client.GetAttachmentAsync("", ""); + Response response = await client.GetAttachmentAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -106,7 +106,7 @@ public void Example_CreateOrUpdate() var data = File.OpenRead(""); - Response response = client.CreateOrUpdate("", "", RequestContent.Create(data)); + Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -234,7 +234,7 @@ public void Example_Download() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = client.Download("", ""); + Response response = client.Download("", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -251,7 +251,7 @@ public void Example_Download_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = client.Download("", ""); + Response response = client.Download("", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -268,7 +268,7 @@ public async Task Example_Download_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = await client.DownloadAsync("", ""); + Response response = await client.DownloadAsync("", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -285,7 +285,7 @@ public async Task Example_Download_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - Response response = await client.DownloadAsync("", ""); + Response response = await client.DownloadAsync("", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -302,7 +302,7 @@ public void Example_GetAttachmentsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - foreach (var item in client.GetAttachmentsByPartyId("")) + foreach (var item in client.GetAttachmentsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -316,7 +316,7 @@ public void Example_GetAttachmentsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - foreach (var item in client.GetAttachmentsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAttachmentsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -343,7 +343,7 @@ public async Task Example_GetAttachmentsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - await foreach (var item in client.GetAttachmentsByPartyIdAsync("")) + await foreach (var item in client.GetAttachmentsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -357,7 +357,7 @@ public async Task Example_GetAttachmentsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-preview"); - await foreach (var item in client.GetAttachmentsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAttachmentsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Boundaries.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Boundaries.cs index f164ff8fd3b7..5f5e80e90866 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Boundaries.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Boundaries.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -318,7 +318,7 @@ public void Example_GetBoundary() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetBoundary("", ""); + Response response = client.GetBoundary("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -331,7 +331,7 @@ public void Example_GetBoundary_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetBoundary("", ""); + Response response = client.GetBoundary("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("geometry").GetProperty("type").ToString()); @@ -364,7 +364,7 @@ public async Task Example_GetBoundary_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetBoundaryAsync("", ""); + Response response = await client.GetBoundaryAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -377,7 +377,7 @@ public async Task Example_GetBoundary_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetBoundaryAsync("", ""); + Response response = await client.GetBoundaryAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("geometry").GetProperty("type").ToString()); @@ -454,7 +454,7 @@ public void Example_GetOverlap() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetOverlap("", "", "", ""); + Response response = client.GetOverlap("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -467,7 +467,7 @@ public void Example_GetOverlap_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = client.GetOverlap("", "", "", ""); + Response response = client.GetOverlap("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryArea").ToString()); @@ -482,7 +482,7 @@ public async Task Example_GetOverlap_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetOverlapAsync("", "", "", ""); + Response response = await client.GetOverlapAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -495,7 +495,7 @@ public async Task Example_GetOverlap_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - Response response = await client.GetOverlapAsync("", "", "", ""); + Response response = await client.GetOverlapAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryArea").ToString()); @@ -510,7 +510,7 @@ public void Example_GetBoundaries() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - foreach (var item in client.GetBoundaries()) + foreach (var item in client.GetBoundaries("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -524,7 +524,7 @@ public void Example_GetBoundaries_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - foreach (var item in client.GetBoundaries("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetBoundaries("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -554,7 +554,7 @@ public async Task Example_GetBoundaries_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - await foreach (var item in client.GetBoundariesAsync()) + await foreach (var item in client.GetBoundariesAsync("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -568,7 +568,7 @@ public async Task Example_GetBoundaries_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - await foreach (var item in client.GetBoundariesAsync("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetBoundariesAsync("", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -774,7 +774,7 @@ public void Example_GetBoundariesByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - foreach (var item in client.GetBoundariesByPartyId("")) + foreach (var item in client.GetBoundariesByPartyId("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -788,7 +788,7 @@ public void Example_GetBoundariesByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - foreach (var item in client.GetBoundariesByPartyId("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetBoundariesByPartyId("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -818,7 +818,7 @@ public async Task Example_GetBoundariesByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - await foreach (var item in client.GetBoundariesByPartyIdAsync("")) + await foreach (var item in client.GetBoundariesByPartyIdAsync("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -832,7 +832,7 @@ public async Task Example_GetBoundariesByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - await foreach (var item in client.GetBoundariesByPartyIdAsync("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetBoundariesByPartyIdAsync("", "", "", new string[] { "" }, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -1038,7 +1038,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1054,7 +1054,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1079,7 +1079,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1095,7 +1095,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetBoundariesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_CropProducts.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_CropProducts.cs index dc17f6fe9d39..acef7352a520 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_CropProducts.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_CropProducts.cs @@ -26,7 +26,7 @@ public void Example_GetCropProduct() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - Response response = client.GetCropProduct(""); + Response response = client.GetCropProduct("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetCropProduct_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - Response response = client.GetCropProduct(""); + Response response = client.GetCropProduct("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -69,7 +69,7 @@ public async Task Example_GetCropProduct_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - Response response = await client.GetCropProductAsync(""); + Response response = await client.GetCropProductAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -82,7 +82,7 @@ public async Task Example_GetCropProduct_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - Response response = await client.GetCropProductAsync(""); + Response response = await client.GetCropProductAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -298,7 +298,7 @@ public void Example_GetCropProducts() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - foreach (var item in client.GetCropProducts()) + foreach (var item in client.GetCropProducts(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -312,7 +312,7 @@ public void Example_GetCropProducts_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - foreach (var item in client.GetCropProducts(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetCropProducts(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); @@ -343,7 +343,7 @@ public async Task Example_GetCropProducts_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - await foreach (var item in client.GetCropProductsAsync()) + await foreach (var item in client.GetCropProductsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -357,7 +357,7 @@ public async Task Example_GetCropProducts_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropProductsClient("2022-11-01-preview"); - await foreach (var item in client.GetCropProductsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetCropProductsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("cropIds")[0].ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Crops.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Crops.cs index 7e8b1569fd91..bb3ecd379b4c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Crops.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Crops.cs @@ -26,7 +26,7 @@ public void Example_GetCrop() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - Response response = client.GetCrop(""); + Response response = client.GetCrop("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetCrop_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - Response response = client.GetCrop(""); + Response response = client.GetCrop("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -66,7 +66,7 @@ public async Task Example_GetCrop_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - Response response = await client.GetCropAsync(""); + Response response = await client.GetCropAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -79,7 +79,7 @@ public async Task Example_GetCrop_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - Response response = await client.GetCropAsync(""); + Response response = await client.GetCropAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -278,7 +278,7 @@ public void Example_GetCrops() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - foreach (var item in client.GetCrops()) + foreach (var item in client.GetCrops(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -292,7 +292,7 @@ public void Example_GetCrops_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - foreach (var item in client.GetCrops(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetCrops(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); @@ -320,7 +320,7 @@ public async Task Example_GetCrops_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - await foreach (var item in client.GetCropsAsync()) + await foreach (var item in client.GetCropsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -334,7 +334,7 @@ public async Task Example_GetCrops_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetCropsClient("2022-11-01-preview"); - await foreach (var item in client.GetCropsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetCropsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("phenotype").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_DeviceDataModels.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_DeviceDataModels.cs index c375209d2418..8722cbf412fc 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_DeviceDataModels.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_DeviceDataModels.cs @@ -152,7 +152,7 @@ public void Example_GetDeviceDataModel() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - Response response = client.GetDeviceDataModel("", ""); + Response response = client.GetDeviceDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -165,7 +165,7 @@ public void Example_GetDeviceDataModel_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - Response response = client.GetDeviceDataModel("", ""); + Response response = client.GetDeviceDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -193,7 +193,7 @@ public async Task Example_GetDeviceDataModel_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - Response response = await client.GetDeviceDataModelAsync("", ""); + Response response = await client.GetDeviceDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -206,7 +206,7 @@ public async Task Example_GetDeviceDataModel_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - Response response = await client.GetDeviceDataModelAsync("", ""); + Response response = await client.GetDeviceDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -278,7 +278,7 @@ public void Example_GetDeviceDataModels() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - foreach (var item in client.GetDeviceDataModels("")) + foreach (var item in client.GetDeviceDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -292,7 +292,7 @@ public void Example_GetDeviceDataModels_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - foreach (var item in client.GetDeviceDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetDeviceDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -321,7 +321,7 @@ public async Task Example_GetDeviceDataModels_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - await foreach (var item in client.GetDeviceDataModelsAsync("")) + await foreach (var item in client.GetDeviceDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -335,7 +335,7 @@ public async Task Example_GetDeviceDataModels_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDeviceDataModelsClient("2022-11-01-preview"); - await foreach (var item in client.GetDeviceDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetDeviceDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Devices.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Devices.cs index c88f487f65d0..c9724b983aeb 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Devices.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Devices.cs @@ -162,7 +162,7 @@ public void Example_GetDevice() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - Response response = client.GetDevice("", ""); + Response response = client.GetDevice("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -175,7 +175,7 @@ public void Example_GetDevice_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - Response response = client.GetDevice("", ""); + Response response = client.GetDevice("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -206,7 +206,7 @@ public async Task Example_GetDevice_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - Response response = await client.GetDeviceAsync("", ""); + Response response = await client.GetDeviceAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -219,7 +219,7 @@ public async Task Example_GetDevice_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - Response response = await client.GetDeviceAsync("", ""); + Response response = await client.GetDeviceAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -294,7 +294,7 @@ public void Example_GetDevices() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - foreach (var item in client.GetDevices("")) + foreach (var item in client.GetDevices("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -308,7 +308,7 @@ public void Example_GetDevices_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - foreach (var item in client.GetDevices("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetDevices("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); @@ -340,7 +340,7 @@ public async Task Example_GetDevices_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - await foreach (var item in client.GetDevicesAsync("")) + await foreach (var item in client.GetDevicesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -354,7 +354,7 @@ public async Task Example_GetDevices_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetDevicesClient("2022-11-01-preview"); - await foreach (var item in client.GetDevicesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetDevicesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deviceDataModelId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmOperationsDataIngestion.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmOperationsDataIngestion.cs index ed64efdeb8d4..aaee80cf8bc2 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmOperationsDataIngestion.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmOperationsDataIngestion.cs @@ -26,7 +26,7 @@ public void Example_GetJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); - Response response = client.GetJobDetails(""); + Response response = client.GetJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); - Response response = client.GetJobDetails(""); + Response response = client.GetJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -72,7 +72,7 @@ public async Task Example_GetJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); - Response response = await client.GetJobDetailsAsync(""); + Response response = await client.GetJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -87,7 +87,7 @@ public async Task Example_GetJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmOperationsDataIngestionClient("2022-11-01-preview"); - Response response = await client.GetJobDetailsAsync(""); + Response response = await client.GetJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmerOAuthTokens.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmerOAuthTokens.cs index 23f1722e53e7..72169e7aed75 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmerOAuthTokens.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_FarmerOAuthTokens.cs @@ -108,7 +108,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -123,7 +123,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -147,7 +147,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -162,7 +162,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -186,7 +186,7 @@ public void Example_GetAuthenticatedFarmersDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - foreach (var item in client.GetAuthenticatedFarmersDetails()) + foreach (var item in client.GetAuthenticatedFarmersDetails(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -201,7 +201,7 @@ public void Example_GetAuthenticatedFarmersDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - foreach (var item in client.GetAuthenticatedFarmersDetails(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAuthenticatedFarmersDetails(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -220,7 +220,7 @@ public async Task Example_GetAuthenticatedFarmersDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync()) + await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -235,7 +235,7 @@ public async Task Example_GetAuthenticatedFarmersDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAuthenticatedFarmersDetailsAsync(new string[] { "" }, new string[] { "" }, true, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -254,7 +254,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -270,7 +270,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -295,7 +295,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -311,7 +311,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmerOAuthTokensClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Farms.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Farms.cs index e4c6974015fe..8635de79fda2 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Farms.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Farms.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -104,7 +104,7 @@ public void Example_GetFarm() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = client.GetFarm("", ""); + Response response = client.GetFarm("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -117,7 +117,7 @@ public void Example_GetFarm_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = client.GetFarm("", ""); + Response response = client.GetFarm("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -141,7 +141,7 @@ public async Task Example_GetFarm_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = await client.GetFarmAsync("", ""); + Response response = await client.GetFarmAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -154,7 +154,7 @@ public async Task Example_GetFarm_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - Response response = await client.GetFarmAsync("", ""); + Response response = await client.GetFarmAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -324,7 +324,7 @@ public void Example_GetFarms() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - foreach (var item in client.GetFarms()) + foreach (var item in client.GetFarms(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -338,7 +338,7 @@ public void Example_GetFarms_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - foreach (var item in client.GetFarms(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetFarms(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -363,7 +363,7 @@ public async Task Example_GetFarms_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - await foreach (var item in client.GetFarmsAsync()) + await foreach (var item in client.GetFarmsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -377,7 +377,7 @@ public async Task Example_GetFarms_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - await foreach (var item in client.GetFarmsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetFarmsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -402,7 +402,7 @@ public void Example_GetFarmsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - foreach (var item in client.GetFarmsByPartyId("")) + foreach (var item in client.GetFarmsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -416,7 +416,7 @@ public void Example_GetFarmsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - foreach (var item in client.GetFarmsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetFarmsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -441,7 +441,7 @@ public async Task Example_GetFarmsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - await foreach (var item in client.GetFarmsByPartyIdAsync("")) + await foreach (var item in client.GetFarmsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -455,7 +455,7 @@ public async Task Example_GetFarmsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - await foreach (var item in client.GetFarmsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetFarmsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -480,7 +480,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -496,7 +496,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -521,7 +521,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -537,7 +537,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFarmsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Fields.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Fields.cs index 29013c47aff1..6e22fc44f38b 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Fields.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Fields.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -104,7 +104,7 @@ public void Example_GetField() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = client.GetField("", ""); + Response response = client.GetField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -117,7 +117,7 @@ public void Example_GetField_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = client.GetField("", ""); + Response response = client.GetField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -142,7 +142,7 @@ public async Task Example_GetField_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = await client.GetFieldAsync("", ""); + Response response = await client.GetFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -155,7 +155,7 @@ public async Task Example_GetField_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - Response response = await client.GetFieldAsync("", ""); + Response response = await client.GetFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -330,7 +330,7 @@ public void Example_GetFields() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetFields()) + foreach (var item in client.GetFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -344,7 +344,7 @@ public void Example_GetFields_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -370,7 +370,7 @@ public async Task Example_GetFields_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetFieldsAsync()) + await foreach (var item in client.GetFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -384,7 +384,7 @@ public async Task Example_GetFields_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -410,7 +410,7 @@ public void Example_GetFieldsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetFieldsByPartyId("")) + foreach (var item in client.GetFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -424,7 +424,7 @@ public void Example_GetFieldsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -450,7 +450,7 @@ public async Task Example_GetFieldsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetFieldsByPartyIdAsync("")) + await foreach (var item in client.GetFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -464,7 +464,7 @@ public async Task Example_GetFieldsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("farmId").ToString()); @@ -490,7 +490,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -506,7 +506,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -531,7 +531,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -547,7 +547,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetFieldsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs index dc57c952a926..49e0a48d7136 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -104,7 +104,7 @@ public void Example_GetHarvestData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = client.GetHarvestData("", ""); + Response response = client.GetHarvestData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -117,7 +117,7 @@ public void Example_GetHarvestData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = client.GetHarvestData("", ""); + Response response = client.GetHarvestData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -173,7 +173,7 @@ public async Task Example_GetHarvestData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = await client.GetHarvestDataAsync("", ""); + Response response = await client.GetHarvestDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -186,7 +186,7 @@ public async Task Example_GetHarvestData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - Response response = await client.GetHarvestDataAsync("", ""); + Response response = await client.GetHarvestDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -540,7 +540,7 @@ public void Example_GetAllHarvestData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllHarvestData()) + foreach (var item in client.GetAllHarvestData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -554,7 +554,7 @@ public void Example_GetAllHarvestData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllHarvestData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllHarvestData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -611,7 +611,7 @@ public async Task Example_GetAllHarvestData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllHarvestDataAsync()) + await foreach (var item in client.GetAllHarvestDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -625,7 +625,7 @@ public async Task Example_GetAllHarvestData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllHarvestDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllHarvestDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -682,7 +682,7 @@ public void Example_GetAllHarvestDataByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllHarvestDataByPartyId("")) + foreach (var item in client.GetAllHarvestDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -696,7 +696,7 @@ public void Example_GetAllHarvestDataByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllHarvestDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllHarvestDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -753,7 +753,7 @@ public async Task Example_GetAllHarvestDataByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("")) + await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -767,7 +767,7 @@ public async Task Example_GetAllHarvestDataByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllHarvestDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("totalYield").GetProperty("unit").ToString()); @@ -824,7 +824,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -840,7 +840,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -865,7 +865,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -881,7 +881,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetHarvestDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ImageProcessing.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ImageProcessing.cs index 2195b5d305e1..55e37da6d64e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ImageProcessing.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ImageProcessing.cs @@ -26,7 +26,7 @@ public void Example_GetRasterizeJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); - Response response = client.GetRasterizeJob(""); + Response response = client.GetRasterizeJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetRasterizeJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); - Response response = client.GetRasterizeJob(""); + Response response = client.GetRasterizeJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetRasterizeJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); - Response response = await client.GetRasterizeJobAsync(""); + Response response = await client.GetRasterizeJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -85,7 +85,7 @@ public async Task Example_GetRasterizeJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetImageProcessingClient("2022-11-01-preview"); - Response response = await client.GetRasterizeJobAsync(""); + Response response = await client.GetRasterizeJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").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 056f334f7b42..90170112e9de 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)); + Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -116,7 +116,7 @@ public void Example_GetInsightAttachment() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = client.GetInsightAttachment("", "", "", "", ""); + Response response = client.GetInsightAttachment("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -129,7 +129,7 @@ public void Example_GetInsightAttachment_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = client.GetInsightAttachment("", "", "", "", ""); + Response response = client.GetInsightAttachment("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -157,7 +157,7 @@ public async Task Example_GetInsightAttachment_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = await client.GetInsightAttachmentAsync("", "", "", "", ""); + Response response = await client.GetInsightAttachmentAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -170,7 +170,7 @@ public async Task Example_GetInsightAttachment_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = await client.GetInsightAttachmentAsync("", "", "", "", ""); + Response response = await client.GetInsightAttachmentAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -242,7 +242,7 @@ public void Example_Download() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = client.Download("", "", "", "", ""); + Response response = client.Download("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -259,7 +259,7 @@ public void Example_Download_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = client.Download("", "", "", "", ""); + Response response = client.Download("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -276,7 +276,7 @@ public async Task Example_Download_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = await client.DownloadAsync("", "", "", "", ""); + Response response = await client.DownloadAsync("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -293,7 +293,7 @@ public async Task Example_Download_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - Response response = await client.DownloadAsync("", "", "", "", ""); + Response response = await client.DownloadAsync("", "", "", "", "", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -310,7 +310,7 @@ public void Example_GetInsightAttachmentsByPartyIdModelIdAndResource() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "")) + foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -324,7 +324,7 @@ public void Example_GetInsightAttachmentsByPartyIdModelIdAndResource_AllParamete var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResource("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -353,7 +353,7 @@ public async Task Example_GetInsightAttachmentsByPartyIdModelIdAndResource_Async var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "")) + await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -367,7 +367,7 @@ public async Task Example_GetInsightAttachmentsByPartyIdModelIdAndResource_AllPa var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-11-01-preview"); - await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetInsightAttachmentsByPartyIdModelIdAndResourceAsync("", "", "", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Insights.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Insights.cs index 148cdc83cbcc..e570e60be2b1 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Insights.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Insights.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -242,7 +242,7 @@ public void Example_GetInsight() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = client.GetInsight("", "", "", "", ""); + Response response = client.GetInsight("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -255,7 +255,7 @@ public void Example_GetInsight_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = client.GetInsight("", "", "", "", ""); + Response response = client.GetInsight("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -287,7 +287,7 @@ public async Task Example_GetInsight_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = await client.GetInsightAsync("", "", "", "", ""); + Response response = await client.GetInsightAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -300,7 +300,7 @@ public async Task Example_GetInsight_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - Response response = await client.GetInsightAsync("", "", "", "", ""); + Response response = await client.GetInsightAsync("", "", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -376,7 +376,7 @@ public void Example_GetInsightsByPartyIdModelIdAndResource() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "")) + foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -390,7 +390,7 @@ public void Example_GetInsightsByPartyIdModelIdAndResource_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetInsightsByPartyIdModelIdAndResource("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -423,7 +423,7 @@ public async Task Example_GetInsightsByPartyIdModelIdAndResource_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "")) + await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -437,7 +437,7 @@ public async Task Example_GetInsightsByPartyIdModelIdAndResource_AllParameters_A var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetInsightsByPartyIdModelIdAndResourceAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -470,7 +470,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -486,7 +486,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -511,7 +511,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -527,7 +527,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetInsightsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ManagementZones.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ManagementZones.cs index e80f9cf9ebb8..c4905b788298 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ManagementZones.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ManagementZones.cs @@ -26,7 +26,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -104,7 +104,7 @@ public void Example_GetManagementZone() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = client.GetManagementZone("", ""); + Response response = client.GetManagementZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -117,7 +117,7 @@ public void Example_GetManagementZone_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = client.GetManagementZone("", ""); + Response response = client.GetManagementZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -145,7 +145,7 @@ public async Task Example_GetManagementZone_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = await client.GetManagementZoneAsync("", ""); + Response response = await client.GetManagementZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -158,7 +158,7 @@ public async Task Example_GetManagementZone_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - Response response = await client.GetManagementZoneAsync("", ""); + Response response = await client.GetManagementZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -348,7 +348,7 @@ public void Example_GetManagementZones() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - foreach (var item in client.GetManagementZones()) + foreach (var item in client.GetManagementZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -362,7 +362,7 @@ public void Example_GetManagementZones_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - foreach (var item in client.GetManagementZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetManagementZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -391,7 +391,7 @@ public async Task Example_GetManagementZones_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetManagementZonesAsync()) + await foreach (var item in client.GetManagementZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -405,7 +405,7 @@ public async Task Example_GetManagementZones_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetManagementZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetManagementZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -434,7 +434,7 @@ public void Example_GetManagementZonesByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - foreach (var item in client.GetManagementZonesByPartyId("")) + foreach (var item in client.GetManagementZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -448,7 +448,7 @@ public void Example_GetManagementZonesByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - foreach (var item in client.GetManagementZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetManagementZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -477,7 +477,7 @@ public async Task Example_GetManagementZonesByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetManagementZonesByPartyIdAsync("")) + await foreach (var item in client.GetManagementZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -491,7 +491,7 @@ public async Task Example_GetManagementZonesByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetManagementZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetManagementZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -520,7 +520,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -536,7 +536,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -561,7 +561,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -577,7 +577,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetManagementZonesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ModelInference.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ModelInference.cs index 7b30ccc06fdd..4500a4edb2b3 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ModelInference.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ModelInference.cs @@ -26,7 +26,7 @@ public void Example_GetBiomassModelJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetBiomassModelJob(""); + Response response = client.GetBiomassModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -49,7 +49,7 @@ public void Example_GetBiomassModelJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetBiomassModelJob(""); + Response response = client.GetBiomassModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -86,7 +86,7 @@ public async Task Example_GetBiomassModelJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetBiomassModelJobAsync(""); + Response response = await client.GetBiomassModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -109,7 +109,7 @@ public async Task Example_GetBiomassModelJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetBiomassModelJobAsync(""); + Response response = await client.GetBiomassModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -146,7 +146,7 @@ public void Example_GetSensorPlacementModelJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetSensorPlacementModelJob(""); + Response response = client.GetSensorPlacementModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -167,7 +167,7 @@ public void Example_GetSensorPlacementModelJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetSensorPlacementModelJob(""); + Response response = client.GetSensorPlacementModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -202,7 +202,7 @@ public async Task Example_GetSensorPlacementModelJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetSensorPlacementModelJobAsync(""); + Response response = await client.GetSensorPlacementModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -223,7 +223,7 @@ public async Task Example_GetSensorPlacementModelJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetSensorPlacementModelJobAsync(""); + Response response = await client.GetSensorPlacementModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -258,7 +258,7 @@ public void Example_GetSoilMoistureModelJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetSoilMoistureModelJob(""); + Response response = client.GetSoilMoistureModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -284,7 +284,7 @@ public void Example_GetSoilMoistureModelJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = client.GetSoilMoistureModelJob(""); + Response response = client.GetSoilMoistureModelJob("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -324,7 +324,7 @@ public async Task Example_GetSoilMoistureModelJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetSoilMoistureModelJobAsync(""); + Response response = await client.GetSoilMoistureModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -350,7 +350,7 @@ public async Task Example_GetSoilMoistureModelJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetModelInferenceClient("2022-11-01-preview"); - Response response = await client.GetSoilMoistureModelJobAsync(""); + Response response = await client.GetSoilMoistureModelJobAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_NutrientAnalyses.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_NutrientAnalyses.cs index 1804600be7a6..91c0a242ea5c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_NutrientAnalyses.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_NutrientAnalyses.cs @@ -26,7 +26,7 @@ public void Example_GetNutrientAnalysis() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - Response response = client.GetNutrientAnalysis("", ""); + Response response = client.GetNutrientAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetNutrientAnalysis_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - Response response = client.GetNutrientAnalysis("", ""); + Response response = client.GetNutrientAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -74,7 +74,7 @@ public async Task Example_GetNutrientAnalysis_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - Response response = await client.GetNutrientAnalysisAsync("", ""); + Response response = await client.GetNutrientAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -87,7 +87,7 @@ public async Task Example_GetNutrientAnalysis_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - Response response = await client.GetNutrientAnalysisAsync("", ""); + Response response = await client.GetNutrientAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -320,7 +320,7 @@ public void Example_GetNutrientAnalyses() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetNutrientAnalyses()) + foreach (var item in client.GetNutrientAnalyses("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -334,7 +334,7 @@ public void Example_GetNutrientAnalyses_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetNutrientAnalyses("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetNutrientAnalyses("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -370,7 +370,7 @@ public async Task Example_GetNutrientAnalyses_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetNutrientAnalysesAsync()) + await foreach (var item in client.GetNutrientAnalysesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -384,7 +384,7 @@ public async Task Example_GetNutrientAnalyses_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetNutrientAnalysesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetNutrientAnalysesAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -420,7 +420,7 @@ public void Example_GetNutrientAnalysesByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetNutrientAnalysesByPartyId("")) + foreach (var item in client.GetNutrientAnalysesByPartyId("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -434,7 +434,7 @@ public void Example_GetNutrientAnalysesByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetNutrientAnalysesByPartyId("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetNutrientAnalysesByPartyId("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -470,7 +470,7 @@ public async Task Example_GetNutrientAnalysesByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("")) + await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -484,7 +484,7 @@ public async Task Example_GetNutrientAnalysesByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetNutrientAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetNutrientAnalysesByPartyIdAsync("", "", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_OAuthProviders.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_OAuthProviders.cs index 2fc00c108fc2..b32e17b2ea43 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_OAuthProviders.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_OAuthProviders.cs @@ -26,7 +26,7 @@ public void Example_GetOAuthProvider() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = client.GetOAuthProvider(""); + Response response = client.GetOAuthProvider("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetOAuthProvider_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = client.GetOAuthProvider(""); + Response response = client.GetOAuthProvider("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -64,7 +64,7 @@ public async Task Example_GetOAuthProvider_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = await client.GetOAuthProviderAsync(""); + Response response = await client.GetOAuthProviderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -77,7 +77,7 @@ public async Task Example_GetOAuthProvider_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = await client.GetOAuthProviderAsync(""); + Response response = await client.GetOAuthProviderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -254,7 +254,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -267,7 +267,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -294,7 +294,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -307,7 +307,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("oauthProviderId").ToString()); @@ -334,7 +334,7 @@ public void Example_GetOAuthProviders() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - foreach (var item in client.GetOAuthProviders()) + foreach (var item in client.GetOAuthProviders(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -348,7 +348,7 @@ public void Example_GetOAuthProviders_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - foreach (var item in client.GetOAuthProviders(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetOAuthProviders(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -374,7 +374,7 @@ public async Task Example_GetOAuthProviders_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - await foreach (var item in client.GetOAuthProvidersAsync()) + await foreach (var item in client.GetOAuthProvidersAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -388,7 +388,7 @@ public async Task Example_GetOAuthProviders_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - await foreach (var item in client.GetOAuthProvidersAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetOAuthProvidersAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("appId").ToString()); @@ -414,7 +414,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -428,7 +428,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -456,7 +456,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -470,7 +470,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetOAuthProvidersClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Parties.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Parties.cs index 7d0470146d02..b06e35f2e3ca 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Parties.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Parties.cs @@ -26,7 +26,7 @@ public void Example_GetParty() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = client.GetParty(""); + Response response = client.GetParty("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetParty_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = client.GetParty(""); + Response response = client.GetParty("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -62,7 +62,7 @@ public async Task Example_GetParty_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = await client.GetPartyAsync(""); + Response response = await client.GetPartyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -75,7 +75,7 @@ public async Task Example_GetParty_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = await client.GetPartyAsync(""); + Response response = await client.GetPartyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -242,7 +242,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -257,7 +257,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -281,7 +281,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -296,7 +296,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -320,7 +320,7 @@ public void Example_GetParties() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - foreach (var item in client.GetParties()) + foreach (var item in client.GetParties(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -334,7 +334,7 @@ public void Example_GetParties_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - foreach (var item in client.GetParties(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetParties(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -358,7 +358,7 @@ public async Task Example_GetParties_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - await foreach (var item in client.GetPartiesAsync()) + await foreach (var item in client.GetPartiesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -372,7 +372,7 @@ public async Task Example_GetParties_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - await foreach (var item in client.GetPartiesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPartiesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -396,7 +396,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -412,7 +412,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -437,7 +437,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -453,7 +453,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPartiesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantTissueAnalyses.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantTissueAnalyses.cs index deb72ae1ef74..6396d6d6b537 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantTissueAnalyses.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantTissueAnalyses.cs @@ -26,7 +26,7 @@ public void Example_GetPlantTissueAnalysis() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = client.GetPlantTissueAnalysis("", ""); + Response response = client.GetPlantTissueAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetPlantTissueAnalysis_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = client.GetPlantTissueAnalysis("", ""); + Response response = client.GetPlantTissueAnalysis("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -81,7 +81,7 @@ public async Task Example_GetPlantTissueAnalysis_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = await client.GetPlantTissueAnalysisAsync("", ""); + Response response = await client.GetPlantTissueAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -94,7 +94,7 @@ public async Task Example_GetPlantTissueAnalysis_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = await client.GetPlantTissueAnalysisAsync("", ""); + Response response = await client.GetPlantTissueAnalysisAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -358,7 +358,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -373,7 +373,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -397,7 +397,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -412,7 +412,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -436,7 +436,7 @@ public void Example_GetPlantTissueAnalysesByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetPlantTissueAnalysesByPartyId("")) + foreach (var item in client.GetPlantTissueAnalysesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -450,7 +450,7 @@ public void Example_GetPlantTissueAnalysesByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetPlantTissueAnalysesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPlantTissueAnalysesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -493,7 +493,7 @@ public async Task Example_GetPlantTissueAnalysesByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("")) + await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -507,7 +507,7 @@ public async Task Example_GetPlantTissueAnalysesByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPlantTissueAnalysesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -550,7 +550,7 @@ public void Example_GetPlantTissueAnalyses() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetPlantTissueAnalyses()) + foreach (var item in client.GetPlantTissueAnalyses(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -564,7 +564,7 @@ public void Example_GetPlantTissueAnalyses_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - foreach (var item in client.GetPlantTissueAnalyses(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPlantTissueAnalyses(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -607,7 +607,7 @@ public async Task Example_GetPlantTissueAnalyses_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetPlantTissueAnalysesAsync()) + await foreach (var item in client.GetPlantTissueAnalysesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -621,7 +621,7 @@ public async Task Example_GetPlantTissueAnalyses_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - await foreach (var item in client.GetPlantTissueAnalysesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPlantTissueAnalysesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -664,7 +664,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -680,7 +680,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -705,7 +705,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -721,7 +721,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantTissueAnalysesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs index ab36a0c2aa2f..da73e7a99a30 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs @@ -26,7 +26,7 @@ public void Example_GetPlantingData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = client.GetPlantingData("", ""); + Response response = client.GetPlantingData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetPlantingData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = client.GetPlantingData("", ""); + Response response = client.GetPlantingData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -83,7 +83,7 @@ public async Task Example_GetPlantingData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = await client.GetPlantingDataAsync("", ""); + Response response = await client.GetPlantingDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -96,7 +96,7 @@ public async Task Example_GetPlantingData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = await client.GetPlantingDataAsync("", ""); + Response response = await client.GetPlantingDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -384,7 +384,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -399,7 +399,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -423,7 +423,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -438,7 +438,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -462,7 +462,7 @@ public void Example_GetAllPlantingDataByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllPlantingDataByPartyId("")) + foreach (var item in client.GetAllPlantingDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -476,7 +476,7 @@ public void Example_GetAllPlantingDataByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllPlantingDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllPlantingDataByPartyId("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -521,7 +521,7 @@ public async Task Example_GetAllPlantingDataByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("")) + await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -535,7 +535,7 @@ public async Task Example_GetAllPlantingDataByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllPlantingDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -580,7 +580,7 @@ public void Example_GetAllPlantingData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllPlantingData()) + foreach (var item in client.GetAllPlantingData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -594,7 +594,7 @@ public void Example_GetAllPlantingData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllPlantingData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllPlantingData(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -639,7 +639,7 @@ public async Task Example_GetAllPlantingData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllPlantingDataAsync()) + await foreach (var item in client.GetAllPlantingDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -653,7 +653,7 @@ public async Task Example_GetAllPlantingData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllPlantingDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllPlantingDataAsync(3.14, 3.14, 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("avgPlantingRate").GetProperty("unit").ToString()); @@ -698,7 +698,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -714,7 +714,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -739,7 +739,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -755,7 +755,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPlantingDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PrescriptionMaps.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PrescriptionMaps.cs index b86059927fff..fbc65e295cc6 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PrescriptionMaps.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PrescriptionMaps.cs @@ -26,7 +26,7 @@ public void Example_GetPrescriptionMap() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = client.GetPrescriptionMap("", ""); + Response response = client.GetPrescriptionMap("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetPrescriptionMap_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = client.GetPrescriptionMap("", ""); + Response response = client.GetPrescriptionMap("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -67,7 +67,7 @@ public async Task Example_GetPrescriptionMap_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = await client.GetPrescriptionMapAsync("", ""); + Response response = await client.GetPrescriptionMapAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetPrescriptionMap_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = await client.GetPrescriptionMapAsync("", ""); + Response response = await client.GetPrescriptionMapAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -270,7 +270,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -285,7 +285,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -309,7 +309,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -324,7 +324,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -348,7 +348,7 @@ public void Example_GetPrescriptionMapsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionMapsByPartyId("")) + foreach (var item in client.GetPrescriptionMapsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -362,7 +362,7 @@ public void Example_GetPrescriptionMapsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionMapsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPrescriptionMapsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -391,7 +391,7 @@ public async Task Example_GetPrescriptionMapsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("")) + await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -405,7 +405,7 @@ public async Task Example_GetPrescriptionMapsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPrescriptionMapsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -434,7 +434,7 @@ public void Example_GetPrescriptionMaps() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionMaps()) + foreach (var item in client.GetPrescriptionMaps(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -448,7 +448,7 @@ public void Example_GetPrescriptionMaps_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionMaps(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPrescriptionMaps(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -477,7 +477,7 @@ public async Task Example_GetPrescriptionMaps_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionMapsAsync()) + await foreach (var item in client.GetPrescriptionMapsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -491,7 +491,7 @@ public async Task Example_GetPrescriptionMaps_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionMapsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPrescriptionMapsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -520,7 +520,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -536,7 +536,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -561,7 +561,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -577,7 +577,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionMapsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Prescriptions.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Prescriptions.cs index 0e5092911f9e..8f891e3171d3 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Prescriptions.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Prescriptions.cs @@ -26,7 +26,7 @@ public void Example_GetPrescription() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = client.GetPrescription("", ""); + Response response = client.GetPrescription("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetPrescription_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = client.GetPrescription("", ""); + Response response = client.GetPrescription("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -69,7 +69,7 @@ public async Task Example_GetPrescription_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = await client.GetPrescriptionAsync("", ""); + Response response = await client.GetPrescriptionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -82,7 +82,7 @@ public async Task Example_GetPrescription_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = await client.GetPrescriptionAsync("", ""); + Response response = await client.GetPrescriptionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -294,7 +294,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -309,7 +309,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -333,7 +333,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -348,7 +348,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -372,7 +372,7 @@ public void Example_GetPrescriptionsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionsByPartyId("")) + foreach (var item in client.GetPrescriptionsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -386,7 +386,7 @@ public void Example_GetPrescriptionsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptionsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPrescriptionsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -417,7 +417,7 @@ public async Task Example_GetPrescriptionsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionsByPartyIdAsync("")) + await foreach (var item in client.GetPrescriptionsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -431,7 +431,7 @@ public async Task Example_GetPrescriptionsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPrescriptionsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -462,7 +462,7 @@ public void Example_GetPrescriptions() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptions()) + foreach (var item in client.GetPrescriptions(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -476,7 +476,7 @@ public void Example_GetPrescriptions_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - foreach (var item in client.GetPrescriptions(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetPrescriptions(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -507,7 +507,7 @@ public async Task Example_GetPrescriptions_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionsAsync()) + await foreach (var item in client.GetPrescriptionsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -521,7 +521,7 @@ public async Task Example_GetPrescriptions_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - await foreach (var item in client.GetPrescriptionsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetPrescriptionsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -552,7 +552,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -568,7 +568,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -593,7 +593,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -609,7 +609,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetPrescriptionsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Scenes.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Scenes.cs index 2283851f6d4e..d60abcbfcffb 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Scenes.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Scenes.cs @@ -26,7 +26,7 @@ public void Example_Download() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.Download(""); + Response response = client.Download("", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -43,7 +43,7 @@ public void Example_Download_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.Download(""); + Response response = client.Download("", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -60,7 +60,7 @@ public async Task Example_Download_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.DownloadAsync(""); + Response response = await client.DownloadAsync("", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -77,7 +77,7 @@ public async Task Example_Download_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.DownloadAsync(""); + Response response = await client.DownloadAsync("", new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -94,7 +94,7 @@ public void Example_GetSatelliteDataIngestionJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.GetSatelliteDataIngestionJobDetails(""); + Response response = client.GetSatelliteDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -111,7 +111,7 @@ public void Example_GetSatelliteDataIngestionJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.GetSatelliteDataIngestionJobDetails(""); + Response response = client.GetSatelliteDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -146,7 +146,7 @@ public async Task Example_GetSatelliteDataIngestionJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.GetSatelliteDataIngestionJobDetailsAsync(""); + Response response = await client.GetSatelliteDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -163,7 +163,7 @@ public async Task Example_GetSatelliteDataIngestionJobDetails_AllParameters_Asyn var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.GetSatelliteDataIngestionJobDetailsAsync(""); + Response response = await client.GetSatelliteDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -358,7 +358,7 @@ public void Example_GetStacFeature() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.GetStacFeature("", ""); + Response response = client.GetStacFeature("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -377,7 +377,7 @@ public void Example_GetStacFeature_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = client.GetStacFeature("", ""); + Response response = client.GetStacFeature("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -406,7 +406,7 @@ public async Task Example_GetStacFeature_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.GetStacFeatureAsync("", ""); + Response response = await client.GetStacFeatureAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -425,7 +425,7 @@ public async Task Example_GetStacFeature_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - Response response = await client.GetStacFeatureAsync("", ""); + Response response = await client.GetStacFeatureAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("stacVersion").ToString()); @@ -454,7 +454,7 @@ public void Example_GetScenes() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - foreach (var item in client.GetScenes("", "", "", "")) + foreach (var item in client.GetScenes("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -468,7 +468,7 @@ public void Example_GetScenes_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - foreach (var item in client.GetScenes("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "")) + foreach (var item in client.GetScenes("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sceneDateTime").ToString()); @@ -496,7 +496,7 @@ public async Task Example_GetScenes_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - await foreach (var item in client.GetScenesAsync("", "", "", "")) + await foreach (var item in client.GetScenesAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -510,7 +510,7 @@ public async Task Example_GetScenes_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetScenesClient("2022-11-01-preview"); - await foreach (var item in client.GetScenesAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "")) + await foreach (var item in client.GetScenesAsync("", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new double[] { 3.14 }, new string[] { "" }, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sceneDateTime").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SeasonalFields.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SeasonalFields.cs index 72186a486680..74cce23899af 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SeasonalFields.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SeasonalFields.cs @@ -26,7 +26,7 @@ public void Example_GetSeasonalField() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = client.GetSeasonalField("", ""); + Response response = client.GetSeasonalField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetSeasonalField_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = client.GetSeasonalField("", ""); + Response response = client.GetSeasonalField("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -68,7 +68,7 @@ public async Task Example_GetSeasonalField_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = await client.GetSeasonalFieldAsync("", ""); + Response response = await client.GetSeasonalFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -81,7 +81,7 @@ public async Task Example_GetSeasonalField_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = await client.GetSeasonalFieldAsync("", ""); + Response response = await client.GetSeasonalFieldAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -280,7 +280,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -295,7 +295,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -319,7 +319,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -334,7 +334,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -358,7 +358,7 @@ public void Example_GetSeasonalFieldsByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasonalFieldsByPartyId("")) + foreach (var item in client.GetSeasonalFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -372,7 +372,7 @@ public void Example_GetSeasonalFieldsByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasonalFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSeasonalFieldsByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -402,7 +402,7 @@ public async Task Example_GetSeasonalFieldsByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("")) + await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -416,7 +416,7 @@ public async Task Example_GetSeasonalFieldsByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSeasonalFieldsByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -446,7 +446,7 @@ public void Example_GetSeasonalFields() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasonalFields()) + foreach (var item in client.GetSeasonalFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -460,7 +460,7 @@ public void Example_GetSeasonalFields_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasonalFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSeasonalFields(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -490,7 +490,7 @@ public async Task Example_GetSeasonalFields_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonalFieldsAsync()) + await foreach (var item in client.GetSeasonalFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -504,7 +504,7 @@ public async Task Example_GetSeasonalFields_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonalFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSeasonalFieldsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -534,7 +534,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -550,7 +550,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -575,7 +575,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -591,7 +591,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonalFieldsClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Seasons.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Seasons.cs index ec3aa5e03612..6ee474ed4e7d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Seasons.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Seasons.cs @@ -26,7 +26,7 @@ public void Example_GetSeason() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - Response response = client.GetSeason(""); + Response response = client.GetSeason("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetSeason_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - Response response = client.GetSeason(""); + Response response = client.GetSeason("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -66,7 +66,7 @@ public async Task Example_GetSeason_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - Response response = await client.GetSeasonAsync(""); + Response response = await client.GetSeasonAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -79,7 +79,7 @@ public async Task Example_GetSeason_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - Response response = await client.GetSeasonAsync(""); + Response response = await client.GetSeasonAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -266,7 +266,7 @@ public void Example_GetSeasons() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasons()) + foreach (var item in client.GetSeasons(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -280,7 +280,7 @@ public void Example_GetSeasons_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - foreach (var item in client.GetSeasons(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSeasons(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); @@ -308,7 +308,7 @@ public async Task Example_GetSeasons_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonsAsync()) + await foreach (var item in client.GetSeasonsAsync(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -322,7 +322,7 @@ public async Task Example_GetSeasons_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSeasonsClient("2022-11-01-preview"); - await foreach (var item in client.GetSeasonsAsync(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSeasonsAsync(DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, new int[] { 1234 }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("startDateTime").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorDataModels.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorDataModels.cs index 138c0b4b652a..137a6e45269e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorDataModels.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorDataModels.cs @@ -192,7 +192,7 @@ public void Example_GetSensorDataModel() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - Response response = client.GetSensorDataModel("", ""); + Response response = client.GetSensorDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); @@ -205,7 +205,7 @@ public void Example_GetSensorDataModel_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - Response response = client.GetSensorDataModel("", ""); + Response response = client.GetSensorDataModel("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -236,7 +236,7 @@ public async Task Example_GetSensorDataModel_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - Response response = await client.GetSensorDataModelAsync("", ""); + Response response = await client.GetSensorDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); @@ -249,7 +249,7 @@ public async Task Example_GetSensorDataModel_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - Response response = await client.GetSensorDataModelAsync("", ""); + Response response = await client.GetSensorDataModelAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -324,7 +324,7 @@ public void Example_GetSensorDataModels() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorDataModels("")) + foreach (var item in client.GetSensorDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); @@ -338,7 +338,7 @@ public void Example_GetSensorDataModels_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSensorDataModels("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -370,7 +370,7 @@ public async Task Example_GetSensorDataModels_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorDataModelsAsync("")) + await foreach (var item in client.GetSensorDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("measures").GetProperty("").GetProperty("dataType").ToString()); @@ -384,7 +384,7 @@ public async Task Example_GetSensorDataModels_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorDataModelsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSensorDataModelsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorEvents.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorEvents.cs index 9a9a47911550..a2f51888393c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorEvents.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorEvents.cs @@ -26,7 +26,7 @@ public void Example_GetSensorEvents() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); - Response response = client.GetSensorEvents("", ""); + Response response = client.GetSensorEvents("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].ToString()); @@ -39,7 +39,7 @@ public void Example_GetSensorEvents_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); - Response response = client.GetSensorEvents("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true); + Response response = client.GetSensorEvents("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("sensorId").ToString()); @@ -60,7 +60,7 @@ public async Task Example_GetSensorEvents_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); - Response response = await client.GetSensorEventsAsync("", ""); + Response response = await client.GetSensorEventsAsync("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].ToString()); @@ -73,7 +73,7 @@ public async Task Example_GetSensorEvents_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorEventsClient("2022-11-01-preview"); - Response response = await client.GetSensorEventsAsync("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true); + Response response = await client.GetSensorEventsAsync("", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("sensorId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorMappings.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorMappings.cs index ca63a77b0d5c..b9db20de848d 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorMappings.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorMappings.cs @@ -138,7 +138,7 @@ public void Example_GetSensorMapping() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - Response response = client.GetSensorMapping(""); + Response response = client.GetSensorMapping("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -151,7 +151,7 @@ public void Example_GetSensorMapping_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - Response response = client.GetSensorMapping(""); + Response response = client.GetSensorMapping("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -177,7 +177,7 @@ public async Task Example_GetSensorMapping_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - Response response = await client.GetSensorMappingAsync(""); + Response response = await client.GetSensorMappingAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -190,7 +190,7 @@ public async Task Example_GetSensorMapping_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - Response response = await client.GetSensorMappingAsync(""); + Response response = await client.GetSensorMappingAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -260,7 +260,7 @@ public void Example_GetSensorMappings() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorMappings()) + foreach (var item in client.GetSensorMappings(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -274,7 +274,7 @@ public void Example_GetSensorMappings_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorMappings(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSensorMappings(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); @@ -301,7 +301,7 @@ public async Task Example_GetSensorMappings_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorMappingsAsync()) + await foreach (var item in client.GetSensorMappingsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -315,7 +315,7 @@ public async Task Example_GetSensorMappings_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorMappingsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorMappingsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSensorMappingsAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorPartnerIntegrations.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorPartnerIntegrations.cs index 7fe04420e49c..6610ab58ff36 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorPartnerIntegrations.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_SensorPartnerIntegrations.cs @@ -130,7 +130,7 @@ public void Example_GetSensorPartnerIntegration() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.GetSensorPartnerIntegration("", ""); + Response response = client.GetSensorPartnerIntegration("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -143,7 +143,7 @@ public void Example_GetSensorPartnerIntegration_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.GetSensorPartnerIntegration("", ""); + Response response = client.GetSensorPartnerIntegration("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -168,7 +168,7 @@ public async Task Example_GetSensorPartnerIntegration_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.GetSensorPartnerIntegrationAsync("", ""); + Response response = await client.GetSensorPartnerIntegrationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -181,7 +181,7 @@ public async Task Example_GetSensorPartnerIntegration_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.GetSensorPartnerIntegrationAsync("", ""); + Response response = await client.GetSensorPartnerIntegrationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -250,7 +250,7 @@ public void Example_CheckConsent() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.CheckConsent("", "", ""); + Response response = client.CheckConsent("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -263,7 +263,7 @@ public void Example_CheckConsent_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.CheckConsent("", "", ""); + Response response = client.CheckConsent("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consented").ToString()); @@ -278,7 +278,7 @@ public async Task Example_CheckConsent_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.CheckConsentAsync("", "", ""); + Response response = await client.CheckConsentAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -291,7 +291,7 @@ public async Task Example_CheckConsent_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.CheckConsentAsync("", "", ""); + Response response = await client.CheckConsentAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consented").ToString()); @@ -306,7 +306,7 @@ public void Example_GenerateConsentLink() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.GenerateConsentLink("", ""); + Response response = client.GenerateConsentLink("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -319,7 +319,7 @@ public void Example_GenerateConsentLink_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = client.GenerateConsentLink("", ""); + Response response = client.GenerateConsentLink("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consentLink").ToString()); @@ -333,7 +333,7 @@ public async Task Example_GenerateConsentLink_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.GenerateConsentLinkAsync("", ""); + Response response = await client.GenerateConsentLinkAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -346,7 +346,7 @@ public async Task Example_GenerateConsentLink_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - Response response = await client.GenerateConsentLinkAsync("", ""); + Response response = await client.GenerateConsentLinkAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("consentLink").ToString()); @@ -360,7 +360,7 @@ public void Example_GetSensorPartnerIntegrations() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorPartnerIntegrations("")) + foreach (var item in client.GetSensorPartnerIntegrations("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -374,7 +374,7 @@ public void Example_GetSensorPartnerIntegrations_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - foreach (var item in client.GetSensorPartnerIntegrations("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSensorPartnerIntegrations("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); @@ -400,7 +400,7 @@ public async Task Example_GetSensorPartnerIntegrations_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorPartnerIntegrationsAsync("")) + await foreach (var item in client.GetSensorPartnerIntegrationsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -414,7 +414,7 @@ public async Task Example_GetSensorPartnerIntegrations_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorPartnerIntegrationsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorPartnerIntegrationsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSensorPartnerIntegrationsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("integrationId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Sensors.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Sensors.cs index 77f74e6652fc..f4c8c66630b9 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Sensors.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Sensors.cs @@ -180,7 +180,7 @@ public void Example_GetSensor() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = client.GetSensor("", ""); + Response response = client.GetSensor("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -193,7 +193,7 @@ public void Example_GetSensor_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = client.GetSensor("", ""); + Response response = client.GetSensor("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -226,7 +226,7 @@ public async Task Example_GetSensor_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = await client.GetSensorAsync("", ""); + Response response = await client.GetSensorAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -239,7 +239,7 @@ public async Task Example_GetSensor_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = await client.GetSensorAsync("", ""); + Response response = await client.GetSensorAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -316,7 +316,7 @@ public void Example_GetConnectionString() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = client.GetConnectionString("", ""); + Response response = client.GetConnectionString("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -329,7 +329,7 @@ public void Example_GetConnectionString_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = client.GetConnectionString("", ""); + Response response = client.GetConnectionString("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("primaryDeviceConnectionString").ToString()); @@ -343,7 +343,7 @@ public async Task Example_GetConnectionString_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = await client.GetConnectionStringAsync("", ""); + Response response = await client.GetConnectionStringAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -356,7 +356,7 @@ public async Task Example_GetConnectionString_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - Response response = await client.GetConnectionStringAsync("", ""); + Response response = await client.GetConnectionStringAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("primaryDeviceConnectionString").ToString()); @@ -444,7 +444,7 @@ public void Example_GetSensors() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - foreach (var item in client.GetSensors("")) + foreach (var item in client.GetSensors("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -458,7 +458,7 @@ public void Example_GetSensors_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - foreach (var item in client.GetSensors("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetSensors("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); @@ -492,7 +492,7 @@ public async Task Example_GetSensors_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorsAsync("")) + await foreach (var item in client.GetSensorsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -506,7 +506,7 @@ public async Task Example_GetSensors_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetSensorsClient("2022-11-01-preview"); - await foreach (var item in client.GetSensorsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetSensorsAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("sensorDataModelId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_TillageData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_TillageData.cs index e4dfab332054..3a76cfba8581 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_TillageData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_TillageData.cs @@ -26,7 +26,7 @@ public void Example_GetTillageData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = client.GetTillageData("", ""); + Response response = client.GetTillageData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetTillageData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = client.GetTillageData("", ""); + Response response = client.GetTillageData("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -74,7 +74,7 @@ public async Task Example_GetTillageData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = await client.GetTillageDataAsync("", ""); + Response response = await client.GetTillageDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -87,7 +87,7 @@ public async Task Example_GetTillageData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = await client.GetTillageDataAsync("", ""); + Response response = await client.GetTillageDataAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -328,7 +328,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -343,7 +343,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -367,7 +367,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -382,7 +382,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -406,7 +406,7 @@ public void Example_GetAllTillageDataByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllTillageDataByPartyId("")) + foreach (var item in client.GetAllTillageDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -420,7 +420,7 @@ public void Example_GetAllTillageDataByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllTillageDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllTillageDataByPartyId("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -456,7 +456,7 @@ public async Task Example_GetAllTillageDataByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllTillageDataByPartyIdAsync("")) + await foreach (var item in client.GetAllTillageDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -470,7 +470,7 @@ public async Task Example_GetAllTillageDataByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllTillageDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllTillageDataByPartyIdAsync("", 3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -506,7 +506,7 @@ public void Example_GetAllTillageData() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllTillageData()) + foreach (var item in client.GetAllTillageData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -520,7 +520,7 @@ public void Example_GetAllTillageData_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - foreach (var item in client.GetAllTillageData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetAllTillageData(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -556,7 +556,7 @@ public async Task Example_GetAllTillageData_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllTillageDataAsync()) + await foreach (var item in client.GetAllTillageDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -570,7 +570,7 @@ public async Task Example_GetAllTillageData_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - await foreach (var item in client.GetAllTillageDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetAllTillageDataAsync(3.14, 3.14, 3.14, 3.14, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 3.14, 3.14, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("tillageDepth").GetProperty("unit").ToString()); @@ -606,7 +606,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -622,7 +622,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -647,7 +647,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -663,7 +663,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetTillageDataClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Weather.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Weather.cs index 951be65141e0..91c100816202 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Weather.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Weather.cs @@ -26,7 +26,7 @@ public void Example_GetDataDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = client.GetDataDeleteJobDetails(""); + Response response = client.GetDataDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -41,7 +41,7 @@ public void Example_GetDataDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = client.GetDataDeleteJobDetails(""); + Response response = client.GetDataDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -74,7 +74,7 @@ public async Task Example_GetDataDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = await client.GetDataDeleteJobDetailsAsync(""); + Response response = await client.GetDataDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -89,7 +89,7 @@ public async Task Example_GetDataDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = await client.GetDataDeleteJobDetailsAsync(""); + Response response = await client.GetDataDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("extensionId").ToString()); @@ -122,7 +122,7 @@ public void Example_GetDataIngestionJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = client.GetDataIngestionJobDetails(""); + Response response = client.GetDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -139,7 +139,7 @@ public void Example_GetDataIngestionJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = client.GetDataIngestionJobDetails(""); + Response response = client.GetDataIngestionJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -172,7 +172,7 @@ public async Task Example_GetDataIngestionJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = await client.GetDataIngestionJobDetailsAsync(""); + Response response = await client.GetDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -189,7 +189,7 @@ public async Task Example_GetDataIngestionJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - Response response = await client.GetDataIngestionJobDetailsAsync(""); + Response response = await client.GetDataIngestionJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("boundaryId").ToString()); @@ -222,7 +222,7 @@ public void Example_GetWeathers() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - foreach (var item in client.GetWeathers("", "", "", "", "")) + foreach (var item in client.GetWeathers("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -244,7 +244,7 @@ public void Example_GetWeathers_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - foreach (var item in client.GetWeathers("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetWeathers("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -302,7 +302,7 @@ public async Task Example_GetWeathers_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - await foreach (var item in client.GetWeathersAsync("", "", "", "", "")) + await foreach (var item in client.GetWeathersAsync("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -324,7 +324,7 @@ public async Task Example_GetWeathers_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetWeatherClient("2022-11-01-preview"); - await foreach (var item in client.GetWeathersAsync("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetWeathersAsync("", "", "", "", "", DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Zones.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Zones.cs index 64b54d9ef37e..382dfc70a667 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Zones.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Zones.cs @@ -26,7 +26,7 @@ public void Example_GetZone() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = client.GetZone("", ""); + Response response = client.GetZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetZone_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = client.GetZone("", ""); + Response response = client.GetZone("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -65,7 +65,7 @@ public async Task Example_GetZone_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = await client.GetZoneAsync("", ""); + Response response = await client.GetZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -78,7 +78,7 @@ public async Task Example_GetZone_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = await client.GetZoneAsync("", ""); + Response response = await client.GetZoneAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -258,7 +258,7 @@ public void Example_GetCascadeDeleteJobDetails() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -273,7 +273,7 @@ public void Example_GetCascadeDeleteJobDetails_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = client.GetCascadeDeleteJobDetails(""); + Response response = client.GetCascadeDeleteJobDetails("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -297,7 +297,7 @@ public async Task Example_GetCascadeDeleteJobDetails_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -312,7 +312,7 @@ public async Task Example_GetCascadeDeleteJobDetails_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - Response response = await client.GetCascadeDeleteJobDetailsAsync(""); + Response response = await client.GetCascadeDeleteJobDetailsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -336,7 +336,7 @@ public void Example_GetZonesByPartyId() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - foreach (var item in client.GetZonesByPartyId("")) + foreach (var item in client.GetZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -350,7 +350,7 @@ public void Example_GetZonesByPartyId_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - foreach (var item in client.GetZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetZonesByPartyId("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -377,7 +377,7 @@ public async Task Example_GetZonesByPartyId_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetZonesByPartyIdAsync("")) + await foreach (var item in client.GetZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -391,7 +391,7 @@ public async Task Example_GetZonesByPartyId_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetZonesByPartyIdAsync("", new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -418,7 +418,7 @@ public void Example_GetZones() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - foreach (var item in client.GetZones()) + foreach (var item in client.GetZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -432,7 +432,7 @@ public void Example_GetZones_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - foreach (var item in client.GetZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + foreach (var item in client.GetZones(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -459,7 +459,7 @@ public async Task Example_GetZones_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetZonesAsync()) + await foreach (var item in client.GetZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -473,7 +473,7 @@ public async Task Example_GetZones_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - await foreach (var item in client.GetZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "")) + await foreach (var item in client.GetZonesAsync(new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, new string[] { "" }, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("partyId").ToString()); @@ -500,7 +500,7 @@ public void Example_CreateCascadeDeleteJob() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -516,7 +516,7 @@ public void Example_CreateCascadeDeleteJob_AllParameters() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", ""); + var operation = client.CreateCascadeDeleteJob(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -541,7 +541,7 @@ public async Task Example_CreateCascadeDeleteJob_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -557,7 +557,7 @@ public async Task Example_CreateCascadeDeleteJob_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new FarmBeatsClient(credential).GetZonesClient("2022-11-01-preview"); - var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.CreateCascadeDeleteJobAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md index 890b5744491c..1431c7e33bb8 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md @@ -9,6 +9,7 @@ input-file: - https://github.com/Azure/azure-rest-api-specs/blob/2f7a3cbda00c6ae4199940d500e5212b6481d9ea/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json namespace: Azure.Data.AppConfiguration title: ConfigurationClient +keep-non-overloadable-protocol-signature: true ``` ### Change Endpoint type to Uri diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/autorest.md b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/autorest.md index 5ca55b123059..28852c081cc4 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/autorest.md +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/autorest.md @@ -11,6 +11,7 @@ input-file: - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/53240ebc58b3c4e99de723194032064db1d97e63/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzeconversations.json - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/53240ebc58b3c4e99de723194032064db1d97e63/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzeconversations-authoring.json clear-output-folder: true +keep-non-overloadable-protocol-signature: true data-plane: true model-namespace: false diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/autorest.md b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/autorest.md index 18cd99f0e291..54b2f567ede9 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/autorest.md +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/autorest.md @@ -17,6 +17,7 @@ batch: namespace: Azure.AI.Language.QuestionAnswering.Authoring add-credentials: true data-plane: true + keep-non-overloadable-protocol-signature: true modelerfour: lenient-model-deduplication: true diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/autorest.md b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/autorest.md index 882a6d70d993..6610c3ffcb7e 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/autorest.md +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/autorest.md @@ -8,6 +8,7 @@ operationgroup: confidential-ledger namespace: Azure.Security.ConfidentialLedger security: AADToken security-scopes: "https://confidential-ledger.azure.com/.default" +keep-non-overloadable-protocol-signature: true input-file: - https://github.com/Azure/azure-rest-api-specs/blob/a9e895ccfe29d0646795f7ff1cb78e185bd09529/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-05-13/common.json - https://github.com/Azure/azure-rest-api-specs/blob/a9e895ccfe29d0646795f7ff1cb78e185bd09529/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-05-13/confidentialledger.json diff --git a/sdk/devcenter/Azure.Developer.DevCenter/README.md b/sdk/devcenter/Azure.Developer.DevCenter/README.md index cec78be41eed..c2e28de61a59 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/README.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/README.md @@ -73,7 +73,7 @@ You can familiarize yourself with different APIs using [Samples](https://github. var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1)) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -84,7 +84,7 @@ await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, ```C# Snippet:Azure_DevCenter_GetPools_Scenario var devBoxesClient = new DevBoxesClient(endpoint, targetProjectName, credential); string targetPoolName = null; -await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1)) +await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -106,7 +106,7 @@ Console.WriteLine($"Completed provisioning for dev box with status {devBox.GetPr ### Connect to your Dev Box ```C# Snippet:Azure_DevCenter_ConnectToDevBox_Scenario -Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox"); +Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox", new()); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); ``` @@ -123,7 +123,7 @@ Console.WriteLine($"Completed dev box deletion."); ```C# Snippet:Azure_DevCenter_GetCatalogItems_Scenario var environmentsClient = new EnvironmentsClient(endpoint, projectName, credential); string catalogItemName = null; -await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1)) +await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogItemName = result.GetProperty("name").ToString(); @@ -134,7 +134,7 @@ await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCou ```C# Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; -await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1)) +await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs index b51f37b8caa6..75011dd897eb 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs @@ -8,28 +8,28 @@ public DevBoxesClient(System.Uri endpoint, string projectName, Azure.Core.TokenC public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateDevBox(Azure.WaitUntil waitUntil, string userId, string devBoxName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateDevBoxAsync(Azure.WaitUntil waitUntil, string userId, string devBoxName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DelayUpcomingAction(string userId, string devBoxName, string upcomingActionId, System.DateTimeOffset delayUntil, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DelayUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, System.DateTimeOffset delayUntil, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DelayUpcomingAction(string userId, string devBoxName, string upcomingActionId, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DelayUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } public virtual Azure.Operation DeleteDevBox(Azure.WaitUntil waitUntil, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteDevBoxAsync(Azure.WaitUntil waitUntil, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDevBoxByUser(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDevBoxByUserAsync(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetDevBoxesByUser(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPool(string poolName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPoolAsync(string poolName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPools(int? maxCount = default(int?), string filter = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPoolsAsync(int? maxCount = default(int?), string filter = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRemoteConnection(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRemoteConnectionAsync(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetScheduleByPool(string poolName, string scheduleName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScheduleByPoolAsync(string poolName, string scheduleName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSchedulesByPool(string poolName, int? maxCount = default(int?), string filter = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSchedulesByPoolAsync(string poolName, int? maxCount = default(int?), string filter = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetUpcomingAction(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetUpcomingActions(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetUpcomingActionsAsync(string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetDevBoxByUser(string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDevBoxByUserAsync(string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetDevBoxesByUser(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDevBoxesByUserAsync(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPool(string poolName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPoolAsync(string poolName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPools(int? maxCount, string filter, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPoolsAsync(int? maxCount, string filter, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRemoteConnection(string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRemoteConnectionAsync(string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetScheduleByPool(string poolName, string scheduleName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetScheduleByPoolAsync(string poolName, string scheduleName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSchedulesByPool(string poolName, int? maxCount, string filter, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSchedulesByPoolAsync(string poolName, int? maxCount, string filter, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetUpcomingAction(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetUpcomingActions(string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetUpcomingActionsAsync(string userId, string devBoxName, Azure.RequestContext context) { throw null; } public virtual Azure.Response SkipUpcomingAction(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task SkipUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation StartDevBox(Azure.WaitUntil waitUntil, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } @@ -43,14 +43,14 @@ protected DevCenterClient() { } public DevCenterClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public DevCenterClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.DevCenterClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Pageable GetAllDevBoxes(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllDevBoxesAsync(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllDevBoxesByUser(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetProject(string projectName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetProjectAsync(string projectName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetProjects(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetProjectsAsync(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllDevBoxes(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllDevBoxesAsync(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllDevBoxesByUser(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetProject(string projectName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetProjectAsync(string projectName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetProjects(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetProjectsAsync(string filter, int? maxCount, Azure.RequestContext context) { throw null; } } public partial class DevCenterClientOptions : Azure.Core.ClientOptions { @@ -74,22 +74,22 @@ public EnvironmentsClient(System.Uri endpoint, string projectName, Azure.Core.To public virtual System.Threading.Tasks.Task DeleteEnvironmentAsync(Azure.WaitUntil waitUntil, string userId, string environmentName, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation DeployEnvironmentAction(Azure.WaitUntil waitUntil, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeployEnvironmentActionAsync(Azure.WaitUntil waitUntil, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCatalogItem(string catalogItemId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCatalogItemAsync(string catalogItemId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCatalogItems(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCatalogItemsAsync(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCatalogItemVersion(string catalogItemId, string version, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCatalogItemVersionAsync(string catalogItemId, string version, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCatalogItemVersions(string catalogItemId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCatalogItemVersionsAsync(string catalogItemId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEnvironmentByUser(string userId, string environmentName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnvironmentByUserAsync(string userId, string environmentName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironments(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentsAsync(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironmentsByUser(string userId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentsByUserAsync(string userId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironmentTypes(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentTypesAsync(int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCatalogItem(string catalogItemId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCatalogItemAsync(string catalogItemId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCatalogItems(int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCatalogItemsAsync(int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCatalogItemVersion(string catalogItemId, string version, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCatalogItemVersionAsync(string catalogItemId, string version, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCatalogItemVersions(string catalogItemId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCatalogItemVersionsAsync(string catalogItemId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEnvironmentByUser(string userId, string environmentName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEnvironmentByUserAsync(string userId, string environmentName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironments(int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentsAsync(int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironmentsByUser(string userId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentsByUserAsync(string userId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironmentTypes(int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentTypesAsync(int? maxCount, Azure.RequestContext context) { throw null; } public virtual Azure.Response UpdateEnvironment(string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateEnvironmentAsync(string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md index 30b208a95f2a..5997f178fbe0 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md @@ -10,7 +10,7 @@ Create a `DevCenterClient` and issue a request to get all projects the signed-in var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1)) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -24,7 +24,7 @@ Create a `DevBoxesClient` and issue a request to get all pools in a project. ```C# Snippet:Azure_DevCenter_GetPools_Scenario var devBoxesClient = new DevBoxesClient(endpoint, targetProjectName, credential); string targetPoolName = null; -await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1)) +await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -52,7 +52,7 @@ Console.WriteLine($"Completed provisioning for dev box with status {devBox.GetPr Once your dev box is created, issue a request to get URLs for connecting to it via either web or desktop. ```C# Snippet:Azure_DevCenter_ConnectToDevBox_Scenario -Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox"); +Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox", new()); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); ``` diff --git a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md index bc7dcf826737..b7fbb0d4c936 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md @@ -10,7 +10,7 @@ Create a `DevCenterClient` and issue a request to get all projects the signed-in var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1)) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -24,7 +24,7 @@ Create an `EnvironmentsClient` and issue a request to get all catalog items in a ```C# Snippet:Azure_DevCenter_GetCatalogItems_Scenario var environmentsClient = new EnvironmentsClient(endpoint, projectName, credential); string catalogItemName = null; -await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1)) +await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogItemName = result.GetProperty("name").ToString(); @@ -37,7 +37,7 @@ Issue a request to get all environment types in a project. ```C# Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; -await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1)) +await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs index 321493f18c5d..77c9a2526378 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs @@ -84,7 +84,7 @@ public DevBoxesClient(Uri endpoint, string projectName, TokenCredential credenti /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPoolAsync(string poolName, RequestContext context = null) + public virtual async Task GetPoolAsync(string poolName, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -119,7 +119,7 @@ public virtual async Task GetPoolAsync(string poolName, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPool(string poolName, RequestContext context = null) + public virtual Response GetPool(string poolName, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -155,7 +155,7 @@ public virtual Response GetPool(string poolName, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetScheduleByPoolAsync(string poolName, string scheduleName, RequestContext context = null) + public virtual async Task GetScheduleByPoolAsync(string poolName, string scheduleName, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); @@ -192,7 +192,7 @@ public virtual async Task GetScheduleByPoolAsync(string poolName, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetScheduleByPool(string poolName, string scheduleName, RequestContext context = null) + public virtual Response GetScheduleByPool(string poolName, string scheduleName, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); @@ -229,7 +229,7 @@ public virtual Response GetScheduleByPool(string poolName, string scheduleName, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDevBoxByUserAsync(string userId, string devBoxName, RequestContext context = null) + public virtual async Task GetDevBoxByUserAsync(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -266,7 +266,7 @@ public virtual async Task GetDevBoxByUserAsync(string userId, string d /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDevBoxByUser(string userId, string devBoxName, RequestContext context = null) + public virtual Response GetDevBoxByUser(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -303,7 +303,7 @@ public virtual Response GetDevBoxByUser(string userId, string devBoxName, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRemoteConnectionAsync(string userId, string devBoxName, RequestContext context = null) + public virtual async Task GetRemoteConnectionAsync(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -340,7 +340,7 @@ public virtual async Task GetRemoteConnectionAsync(string userId, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRemoteConnection(string userId, string devBoxName, RequestContext context = null) + public virtual Response GetRemoteConnection(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -378,7 +378,7 @@ public virtual Response GetRemoteConnection(string userId, string devBoxName, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, RequestContext context = null) + public virtual async Task GetUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -417,7 +417,7 @@ public virtual async Task GetUpcomingActionAsync(string userId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetUpcomingAction(string userId, string devBoxName, string upcomingActionId, RequestContext context = null) + public virtual Response GetUpcomingAction(string userId, string devBoxName, string upcomingActionId, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -535,7 +535,7 @@ public virtual Response SkipUpcomingAction(string userId, string devBoxName, str /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DelayUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, DateTimeOffset delayUntil, RequestContext context = null) + public virtual async Task DelayUpcomingActionAsync(string userId, string devBoxName, string upcomingActionId, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -575,7 +575,7 @@ public virtual async Task DelayUpcomingActionAsync(string userId, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DelayUpcomingAction(string userId, string devBoxName, string upcomingActionId, DateTimeOffset delayUntil, RequestContext context = null) + public virtual Response DelayUpcomingAction(string userId, string devBoxName, string upcomingActionId, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -611,7 +611,7 @@ public virtual Response DelayUpcomingAction(string userId, string devBoxName, st /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPoolsAsync(int? maxCount = null, string filter = null, RequestContext context = null) + public virtual AsyncPageable GetPoolsAsync(int? maxCount, string filter, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPoolsRequest(maxCount, filter, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPoolsNextPageRequest(nextLink, maxCount, filter, context); @@ -634,7 +634,7 @@ public virtual AsyncPageable GetPoolsAsync(int? maxCount = null, str /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPools(int? maxCount = null, string filter = null, RequestContext context = null) + public virtual Pageable GetPools(int? maxCount, string filter, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPoolsRequest(maxCount, filter, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPoolsNextPageRequest(nextLink, maxCount, filter, context); @@ -660,7 +660,7 @@ public virtual Pageable GetPools(int? maxCount = null, string filter /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSchedulesByPoolAsync(string poolName, int? maxCount = null, string filter = null, RequestContext context = null) + public virtual AsyncPageable GetSchedulesByPoolAsync(string poolName, int? maxCount, string filter, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -688,7 +688,7 @@ public virtual AsyncPageable GetSchedulesByPoolAsync(string poolName /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSchedulesByPool(string poolName, int? maxCount = null, string filter = null, RequestContext context = null) + public virtual Pageable GetSchedulesByPool(string poolName, int? maxCount, string filter, RequestContext context) { Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -716,7 +716,7 @@ public virtual Pageable GetSchedulesByPool(string poolName, int? max /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetDevBoxesByUserAsync(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -744,7 +744,7 @@ public virtual AsyncPageable GetDevBoxesByUserAsync(string userId, s /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetDevBoxesByUser(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetDevBoxesByUser(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -771,7 +771,7 @@ public virtual Pageable GetDevBoxesByUser(string userId, string filt /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetUpcomingActionsAsync(string userId, string devBoxName, RequestContext context = null) + public virtual AsyncPageable GetUpcomingActionsAsync(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); @@ -799,7 +799,7 @@ public virtual AsyncPageable GetUpcomingActionsAsync(string userId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetUpcomingActions(string userId, string devBoxName, RequestContext context = null) + public virtual Pageable GetUpcomingActions(string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs index 3e1b07c1af04..b1f26a7ef209 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs @@ -77,7 +77,7 @@ public DevCenterClient(Uri endpoint, TokenCredential credential, DevCenterClient /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetProjectAsync(string projectName, RequestContext context = null) + public virtual async Task GetProjectAsync(string projectName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -112,7 +112,7 @@ public virtual async Task GetProjectAsync(string projectName, RequestC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetProject(string projectName, RequestContext context = null) + public virtual Response GetProject(string projectName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -146,7 +146,7 @@ public virtual Response GetProject(string projectName, RequestContext context = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetProjectsAsync(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetProjectsAsync(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, filter, maxCount, context); @@ -169,7 +169,7 @@ public virtual AsyncPageable GetProjectsAsync(string filter = null, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetProjects(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetProjects(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, filter, maxCount, context); @@ -192,7 +192,7 @@ public virtual Pageable GetProjects(string filter = null, int? maxCo /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllDevBoxesAsync(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetAllDevBoxesAsync(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDevBoxesRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDevBoxesNextPageRequest(nextLink, filter, maxCount, context); @@ -215,7 +215,7 @@ public virtual AsyncPageable GetAllDevBoxesAsync(string filter = nul /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllDevBoxes(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetAllDevBoxes(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDevBoxesRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDevBoxesNextPageRequest(nextLink, filter, maxCount, context); @@ -241,7 +241,7 @@ public virtual Pageable GetAllDevBoxes(string filter = null, int? ma /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -269,7 +269,7 @@ public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllDevBoxesByUser(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetAllDevBoxesByUser(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml index bbd3cd6edb8a..d3a18ad5e79a 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.GetPoolAsync(""); +Response response = await client.GetPoolAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -37,7 +37,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.GetPool(""); +Response response = client.GetPool("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -65,7 +65,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.GetScheduleByPoolAsync("", ""); +Response response = await client.GetScheduleByPoolAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -84,7 +84,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.GetScheduleByPool("", ""); +Response response = client.GetScheduleByPool("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -103,7 +103,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.GetDevBoxByUserAsync("", ""); +Response response = await client.GetDevBoxByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -141,7 +141,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.GetDevBoxByUser("", ""); +Response response = client.GetDevBoxByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -179,7 +179,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.GetRemoteConnectionAsync("", ""); +Response response = await client.GetRemoteConnectionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -195,7 +195,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.GetRemoteConnection("", ""); +Response response = client.GetRemoteConnection("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -211,7 +211,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.GetUpcomingActionAsync("", "", ""); +Response response = await client.GetUpcomingActionAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -231,7 +231,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.GetUpcomingAction("", "", ""); +Response response = client.GetUpcomingAction("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -277,7 +277,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow); +Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -297,7 +297,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow); +Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -311,25 +311,13 @@ Console.WriteLine(result.GetProperty("sourceId").ToString()); -This sample shows how to call GetPoolsAsync and parse the result. +This sample shows how to call GetPoolsAsync with required parameters and parse the result. "); var client = new DevBoxesClient(endpoint, "", credential); -await foreach (var item in client.GetPoolsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPoolsAsync with all parameters, and how to parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -await foreach (var item in client.GetPoolsAsync(1234, "")) +await foreach (var item in client.GetPoolsAsync(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -352,25 +340,13 @@ await foreach (var item in client.GetPoolsAsync(1234, "")) -This sample shows how to call GetPools and parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -foreach (var item in client.GetPools()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetPools with all parameters, and how to parse the result. +This sample shows how to call GetPools with required parameters and parse the result. "); var client = new DevBoxesClient(endpoint, "", credential); -foreach (var item in client.GetPools(1234, "")) +foreach (var item in client.GetPools(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -399,19 +375,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -await foreach (var item in client.GetSchedulesByPoolAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSchedulesByPoolAsync with all parameters, and how to parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -await foreach (var item in client.GetSchedulesByPoolAsync("", 1234, "")) +await foreach (var item in client.GetSchedulesByPoolAsync("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -431,19 +395,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -foreach (var item in client.GetSchedulesByPool("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSchedulesByPool with all parameters, and how to parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -foreach (var item in client.GetSchedulesByPool("", 1234, "")) +foreach (var item in client.GetSchedulesByPool("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -463,19 +415,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -await foreach (var item in client.GetDevBoxesByUserAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetDevBoxesByUserAsync with all parameters, and how to parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -await foreach (var item in client.GetDevBoxesByUserAsync("", "", 1234)) +await foreach (var item in client.GetDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -514,19 +454,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -foreach (var item in client.GetDevBoxesByUser("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetDevBoxesByUser with all parameters, and how to parse the result. -"); -var client = new DevBoxesClient(endpoint, "", credential); - -foreach (var item in client.GetDevBoxesByUser("", "", 1234)) +foreach (var item in client.GetDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -565,7 +493,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -await foreach (var item in client.GetUpcomingActionsAsync("", "")) +await foreach (var item in client.GetUpcomingActionsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -586,7 +514,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); -foreach (var item in client.GetUpcomingActions("", "")) +foreach (var item in client.GetUpcomingActions("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml index b461d4bc41f9..7b289c99e95b 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); -Response response = await client.GetProjectAsync(""); +Response response = await client.GetProjectAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -25,7 +25,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); -Response response = client.GetProject(""); +Response response = client.GetProject("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -35,25 +35,13 @@ Console.WriteLine(result.GetProperty("description").ToString()); -This sample shows how to call GetProjectsAsync and parse the result. +This sample shows how to call GetProjectsAsync with required parameters and parse the result. "); var client = new DevCenterClient(endpoint, credential); -await foreach (var item in client.GetProjectsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetProjectsAsync with all parameters, and how to parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -await foreach (var item in client.GetProjectsAsync("", 1234)) +await foreach (var item in client.GetProjectsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -64,25 +52,13 @@ await foreach (var item in client.GetProjectsAsync("", 1234)) -This sample shows how to call GetProjects and parse the result. +This sample shows how to call GetProjects with required parameters and parse the result. "); var client = new DevCenterClient(endpoint, credential); -foreach (var item in client.GetProjects()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetProjects with all parameters, and how to parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -foreach (var item in client.GetProjects("", 1234)) +foreach (var item in client.GetProjects("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -93,25 +69,13 @@ foreach (var item in client.GetProjects("", 1234)) -This sample shows how to call GetAllDevBoxesAsync and parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -await foreach (var item in client.GetAllDevBoxesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetAllDevBoxesAsync with all parameters, and how to parse the result. +This sample shows how to call GetAllDevBoxesAsync with required parameters and parse the result. "); var client = new DevCenterClient(endpoint, credential); -await foreach (var item in client.GetAllDevBoxesAsync("", 1234)) +await foreach (var item in client.GetAllDevBoxesAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -144,25 +108,13 @@ await foreach (var item in client.GetAllDevBoxesAsync("", 1234)) -This sample shows how to call GetAllDevBoxes and parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -foreach (var item in client.GetAllDevBoxes()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetAllDevBoxes with all parameters, and how to parse the result. +This sample shows how to call GetAllDevBoxes with required parameters and parse the result. "); var client = new DevCenterClient(endpoint, credential); -foreach (var item in client.GetAllDevBoxes("", 1234)) +foreach (var item in client.GetAllDevBoxes("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -201,19 +153,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); -await foreach (var item in client.GetAllDevBoxesByUserAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetAllDevBoxesByUserAsync with all parameters, and how to parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -await foreach (var item in client.GetAllDevBoxesByUserAsync("", "", 1234)) +await foreach (var item in client.GetAllDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -252,19 +192,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); -foreach (var item in client.GetAllDevBoxesByUser("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("poolName").ToString()); -} -]]> -This sample shows how to call GetAllDevBoxesByUser with all parameters, and how to parse the result. -"); -var client = new DevCenterClient(endpoint, credential); - -foreach (var item in client.GetAllDevBoxesByUser("", "", 1234)) +foreach (var item in client.GetAllDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/EnvironmentsClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/EnvironmentsClient.xml index 247601cf9658..01de740e6fb4 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/EnvironmentsClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/EnvironmentsClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = await client.GetEnvironmentByUserAsync("", ""); +Response response = await client.GetEnvironmentByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -36,7 +36,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = client.GetEnvironmentByUser("", ""); +Response response = client.GetEnvironmentByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -187,7 +187,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = await client.GetCatalogItemAsync(""); +Response response = await client.GetCatalogItemAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -204,7 +204,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = client.GetCatalogItem(""); +Response response = client.GetCatalogItem("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -221,7 +221,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = await client.GetCatalogItemVersionAsync("", ""); +Response response = await client.GetCatalogItemVersionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -269,7 +269,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -Response response = client.GetCatalogItemVersion("", ""); +Response response = client.GetCatalogItemVersion("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -311,26 +311,13 @@ Console.WriteLine(result.GetProperty("eligibleForLatestVersion").ToString()); -This sample shows how to call GetEnvironmentsAsync and parse the result. +This sample shows how to call GetEnvironmentsAsync with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -await foreach (var item in client.GetEnvironmentsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("environmentType").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironmentsAsync with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -await foreach (var item in client.GetEnvironmentsAsync(1234)) +await foreach (var item in client.GetEnvironmentsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -352,26 +339,13 @@ await foreach (var item in client.GetEnvironmentsAsync(1234)) -This sample shows how to call GetEnvironments and parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -foreach (var item in client.GetEnvironments()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("environmentType").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironments with all parameters, and how to parse the result. +This sample shows how to call GetEnvironments with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -foreach (var item in client.GetEnvironments(1234)) +foreach (var item in client.GetEnvironments(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -399,20 +373,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -await foreach (var item in client.GetEnvironmentsByUserAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("environmentType").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironmentsByUserAsync with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -await foreach (var item in client.GetEnvironmentsByUserAsync("", 1234)) +await foreach (var item in client.GetEnvironmentsByUserAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -440,20 +401,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -foreach (var item in client.GetEnvironmentsByUser("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("environmentType").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironmentsByUser with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -foreach (var item in client.GetEnvironmentsByUser("", 1234)) +foreach (var item in client.GetEnvironmentsByUser("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -475,25 +423,13 @@ foreach (var item in client.GetEnvironmentsByUser("", 1234)) -This sample shows how to call GetCatalogItemsAsync and parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -await foreach (var item in client.GetCatalogItemsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCatalogItemsAsync with all parameters, and how to parse the result. +This sample shows how to call GetCatalogItemsAsync with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -await foreach (var item in client.GetCatalogItemsAsync(1234)) +await foreach (var item in client.GetCatalogItemsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -505,25 +441,13 @@ await foreach (var item in client.GetCatalogItemsAsync(1234)) -This sample shows how to call GetCatalogItems and parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -foreach (var item in client.GetCatalogItems()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCatalogItems with all parameters, and how to parse the result. +This sample shows how to call GetCatalogItems with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -foreach (var item in client.GetCatalogItems(1234)) +foreach (var item in client.GetCatalogItems(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -541,19 +465,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -await foreach (var item in client.GetCatalogItemVersionsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCatalogItemVersionsAsync with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -await foreach (var item in client.GetCatalogItemVersionsAsync("", 1234)) +await foreach (var item in client.GetCatalogItemVersionsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -602,19 +514,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); -foreach (var item in client.GetCatalogItemVersions("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCatalogItemVersions with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -foreach (var item in client.GetCatalogItemVersions("", 1234)) +foreach (var item in client.GetCatalogItemVersions("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -657,25 +557,13 @@ foreach (var item in client.GetCatalogItemVersions("", 1234)) -This sample shows how to call GetEnvironmentTypesAsync and parse the result. +This sample shows how to call GetEnvironmentTypesAsync with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -await foreach (var item in client.GetEnvironmentTypesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironmentTypesAsync with all parameters, and how to parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -await foreach (var item in client.GetEnvironmentTypesAsync(1234)) +await foreach (var item in client.GetEnvironmentTypesAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -687,25 +575,13 @@ await foreach (var item in client.GetEnvironmentTypesAsync(1234)) -This sample shows how to call GetEnvironmentTypes and parse the result. -"); -var client = new EnvironmentsClient(endpoint, "", credential); - -foreach (var item in client.GetEnvironmentTypes()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetEnvironmentTypes with all parameters, and how to parse the result. +This sample shows how to call GetEnvironmentTypes with required parameters and parse the result. "); var client = new EnvironmentsClient(endpoint, "", credential); -foreach (var item in client.GetEnvironmentTypes(1234)) +foreach (var item in client.GetEnvironmentTypes(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/EnvironmentsClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/EnvironmentsClient.cs index 40ed706c7c92..5c9c18187664 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/EnvironmentsClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/EnvironmentsClient.cs @@ -85,7 +85,7 @@ public EnvironmentsClient(Uri endpoint, string projectName, TokenCredential cred /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEnvironmentByUserAsync(string userId, string environmentName, RequestContext context = null) + public virtual async Task GetEnvironmentByUserAsync(string userId, string environmentName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); @@ -122,7 +122,7 @@ public virtual async Task GetEnvironmentByUserAsync(string userId, str /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEnvironmentByUser(string userId, string environmentName, RequestContext context = null) + public virtual Response GetEnvironmentByUser(string userId, string environmentName, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); @@ -236,7 +236,7 @@ public virtual Response UpdateEnvironment(string userId, string environmentName, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCatalogItemAsync(string catalogItemId, RequestContext context = null) + public virtual async Task GetCatalogItemAsync(string catalogItemId, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); @@ -271,7 +271,7 @@ public virtual async Task GetCatalogItemAsync(string catalogItemId, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCatalogItem(string catalogItemId, RequestContext context = null) + public virtual Response GetCatalogItem(string catalogItemId, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); @@ -307,7 +307,7 @@ public virtual Response GetCatalogItem(string catalogItemId, RequestContext cont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCatalogItemVersionAsync(string catalogItemId, string version, RequestContext context = null) + public virtual async Task GetCatalogItemVersionAsync(string catalogItemId, string version, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); Argument.AssertNotNullOrEmpty(version, nameof(version)); @@ -344,7 +344,7 @@ public virtual async Task GetCatalogItemVersionAsync(string catalogIte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCatalogItemVersion(string catalogItemId, string version, RequestContext context = null) + public virtual Response GetCatalogItemVersion(string catalogItemId, string version, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); Argument.AssertNotNullOrEmpty(version, nameof(version)); @@ -378,7 +378,7 @@ public virtual Response GetCatalogItemVersion(string catalogItemId, string versi /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentsAsync(int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentsAsync(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEnvironmentsRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEnvironmentsNextPageRequest(nextLink, maxCount, context); @@ -400,7 +400,7 @@ public virtual AsyncPageable GetEnvironmentsAsync(int? maxCount = nu /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironments(int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironments(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEnvironmentsRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEnvironmentsNextPageRequest(nextLink, maxCount, context); @@ -425,7 +425,7 @@ public virtual Pageable GetEnvironments(int? maxCount = null, Reques /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentsByUserAsync(string userId, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentsByUserAsync(string userId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -452,7 +452,7 @@ public virtual AsyncPageable GetEnvironmentsByUserAsync(string userI /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironmentsByUser(string userId, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironmentsByUser(string userId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -476,7 +476,7 @@ public virtual Pageable GetEnvironmentsByUser(string userId, int? ma /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCatalogItemsAsync(int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetCatalogItemsAsync(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCatalogItemsRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCatalogItemsNextPageRequest(nextLink, maxCount, context); @@ -498,7 +498,7 @@ public virtual AsyncPageable GetCatalogItemsAsync(int? maxCount = nu /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCatalogItems(int? maxCount = null, RequestContext context = null) + public virtual Pageable GetCatalogItems(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCatalogItemsRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCatalogItemsNextPageRequest(nextLink, maxCount, context); @@ -523,7 +523,7 @@ public virtual Pageable GetCatalogItems(int? maxCount = null, Reques /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCatalogItemVersionsAsync(string catalogItemId, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetCatalogItemVersionsAsync(string catalogItemId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); @@ -550,7 +550,7 @@ public virtual AsyncPageable GetCatalogItemVersionsAsync(string cata /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCatalogItemVersions(string catalogItemId, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetCatalogItemVersions(string catalogItemId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(catalogItemId, nameof(catalogItemId)); @@ -574,7 +574,7 @@ public virtual Pageable GetCatalogItemVersions(string catalogItemId, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentTypesAsync(int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentTypesAsync(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEnvironmentTypesRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEnvironmentTypesNextPageRequest(nextLink, maxCount, context); @@ -596,7 +596,7 @@ public virtual AsyncPageable GetEnvironmentTypesAsync(int? maxCount /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironmentTypes(int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironmentTypes(int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEnvironmentTypesRequest(maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEnvironmentTypesNextPageRequest(nextLink, maxCount, context); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxCreateTests.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxCreateTests.cs index fd17bae974d2..d13c4338b2cb 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxCreateTests.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxCreateTests.cs @@ -48,7 +48,7 @@ public async Task DevBoxCreationSucceeds() Assert.IsTrue(devBoxProvisionSucceeded); // Start the dev box - Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync(userId: TestEnvironment.UserId, "MyDevBox"); + Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync(userId: TestEnvironment.UserId, "MyDevBox", new RequestContext()); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentCreateTests.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentCreateTests.cs index 23db0a037ac0..288b14d519e8 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentCreateTests.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentCreateTests.cs @@ -33,7 +33,7 @@ public async Task EnvironmentCreationSucceeds() EnvironmentsClient environmentsClient = GetEnvironmentsClient(); string catalogItemName = null; - await foreach (BinaryData catalogItemData in environmentsClient.GetCatalogItemsAsync()) + await foreach (BinaryData catalogItemData in environmentsClient.GetCatalogItemsAsync(null, new RequestContext())) { JsonElement catalogItem = JsonDocument.Parse(catalogItemData.ToStream()).RootElement; catalogItemName = catalogItem.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs index f8dff6081ef7..35caff7366fc 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs @@ -27,7 +27,7 @@ public void Example_GetPool() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetPool(""); + Response response = client.GetPool("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetPool_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetPool(""); + Response response = client.GetPool("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -68,7 +68,7 @@ public async Task Example_GetPool_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetPoolAsync(""); + Response response = await client.GetPoolAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -82,7 +82,7 @@ public async Task Example_GetPool_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetPoolAsync(""); + Response response = await client.GetPoolAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -109,7 +109,7 @@ public void Example_GetScheduleByPool() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetScheduleByPool("", ""); + Response response = client.GetScheduleByPool("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -123,7 +123,7 @@ public void Example_GetScheduleByPool_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetScheduleByPool("", ""); + Response response = client.GetScheduleByPool("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -141,7 +141,7 @@ public async Task Example_GetScheduleByPool_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetScheduleByPoolAsync("", ""); + Response response = await client.GetScheduleByPoolAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -155,7 +155,7 @@ public async Task Example_GetScheduleByPool_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetScheduleByPoolAsync("", ""); + Response response = await client.GetScheduleByPoolAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -173,7 +173,7 @@ public void Example_GetDevBoxByUser() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetDevBoxByUser("", ""); + Response response = client.GetDevBoxByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -187,7 +187,7 @@ public void Example_GetDevBoxByUser_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetDevBoxByUser("", ""); + Response response = client.GetDevBoxByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -224,7 +224,7 @@ public async Task Example_GetDevBoxByUser_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetDevBoxByUserAsync("", ""); + Response response = await client.GetDevBoxByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -238,7 +238,7 @@ public async Task Example_GetDevBoxByUser_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetDevBoxByUserAsync("", ""); + Response response = await client.GetDevBoxByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -275,7 +275,7 @@ public void Example_GetRemoteConnection() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetRemoteConnection("", ""); + Response response = client.GetRemoteConnection("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -289,7 +289,7 @@ public void Example_GetRemoteConnection_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetRemoteConnection("", ""); + Response response = client.GetRemoteConnection("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -304,7 +304,7 @@ public async Task Example_GetRemoteConnection_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetRemoteConnectionAsync("", ""); + Response response = await client.GetRemoteConnectionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -318,7 +318,7 @@ public async Task Example_GetRemoteConnection_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetRemoteConnectionAsync("", ""); + Response response = await client.GetRemoteConnectionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -333,7 +333,7 @@ public void Example_GetUpcomingAction() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetUpcomingAction("", "", ""); + Response response = client.GetUpcomingAction("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -347,7 +347,7 @@ public void Example_GetUpcomingAction_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.GetUpcomingAction("", "", ""); + Response response = client.GetUpcomingAction("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -366,7 +366,7 @@ public async Task Example_GetUpcomingAction_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetUpcomingActionAsync("", "", ""); + Response response = await client.GetUpcomingActionAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -380,7 +380,7 @@ public async Task Example_GetUpcomingAction_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.GetUpcomingActionAsync("", "", ""); + Response response = await client.GetUpcomingActionAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -447,7 +447,7 @@ public void Example_DelayUpcomingAction() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow); + Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -461,7 +461,7 @@ public void Example_DelayUpcomingAction_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow); + Response response = client.DelayUpcomingAction("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -480,7 +480,7 @@ public async Task Example_DelayUpcomingAction_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow); + Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -494,7 +494,7 @@ public async Task Example_DelayUpcomingAction_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow); + Response response = await client.DelayUpcomingActionAsync("", "", "", DateTimeOffset.UtcNow, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -513,7 +513,7 @@ public void Example_GetPools() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetPools()) + foreach (var item in client.GetPools(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -528,7 +528,7 @@ public void Example_GetPools_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetPools(1234, "")) + foreach (var item in client.GetPools(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -556,7 +556,7 @@ public async Task Example_GetPools_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetPoolsAsync()) + await foreach (var item in client.GetPoolsAsync(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -571,7 +571,7 @@ public async Task Example_GetPools_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetPoolsAsync(1234, "")) + await foreach (var item in client.GetPoolsAsync(1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -599,7 +599,7 @@ public void Example_GetSchedulesByPool() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetSchedulesByPool("")) + foreach (var item in client.GetSchedulesByPool("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -614,7 +614,7 @@ public void Example_GetSchedulesByPool_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetSchedulesByPool("", 1234, "")) + foreach (var item in client.GetSchedulesByPool("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -633,7 +633,7 @@ public async Task Example_GetSchedulesByPool_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetSchedulesByPoolAsync("")) + await foreach (var item in client.GetSchedulesByPoolAsync("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -648,7 +648,7 @@ public async Task Example_GetSchedulesByPool_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetSchedulesByPoolAsync("", 1234, "")) + await foreach (var item in client.GetSchedulesByPoolAsync("", 1234, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -667,7 +667,7 @@ public void Example_GetDevBoxesByUser() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetDevBoxesByUser("")) + foreach (var item in client.GetDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -682,7 +682,7 @@ public void Example_GetDevBoxesByUser_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetDevBoxesByUser("", "", 1234)) + foreach (var item in client.GetDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -720,7 +720,7 @@ public async Task Example_GetDevBoxesByUser_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetDevBoxesByUserAsync("")) + await foreach (var item in client.GetDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -735,7 +735,7 @@ public async Task Example_GetDevBoxesByUser_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetDevBoxesByUserAsync("", "", 1234)) + await foreach (var item in client.GetDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -773,7 +773,7 @@ public void Example_GetUpcomingActions() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetUpcomingActions("", "")) + foreach (var item in client.GetUpcomingActions("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -788,7 +788,7 @@ public void Example_GetUpcomingActions_AllParameters() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - foreach (var item in client.GetUpcomingActions("", "")) + foreach (var item in client.GetUpcomingActions("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -808,7 +808,7 @@ public async Task Example_GetUpcomingActions_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetUpcomingActionsAsync("", "")) + await foreach (var item in client.GetUpcomingActionsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -823,7 +823,7 @@ public async Task Example_GetUpcomingActions_AllParameters_Async() var endpoint = new Uri(""); var client = new DevBoxesClient(endpoint, "", credential); - await foreach (var item in client.GetUpcomingActionsAsync("", "")) + await foreach (var item in client.GetUpcomingActionsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs index 288286d4b708..ba9e73bb21b4 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs @@ -27,7 +27,7 @@ public void Example_GetProject() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - Response response = client.GetProject(""); + Response response = client.GetProject("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetProject_AllParameters() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - Response response = client.GetProject(""); + Response response = client.GetProject("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetProject_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - Response response = await client.GetProjectAsync(""); + Response response = await client.GetProjectAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetProject_AllParameters_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - Response response = await client.GetProjectAsync(""); + Response response = await client.GetProjectAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -85,7 +85,7 @@ public void Example_GetProjects() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetProjects()) + foreach (var item in client.GetProjects("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -100,7 +100,7 @@ public void Example_GetProjects_AllParameters() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetProjects("", 1234)) + foreach (var item in client.GetProjects("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -116,7 +116,7 @@ public async Task Example_GetProjects_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetProjectsAsync()) + await foreach (var item in client.GetProjectsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -131,7 +131,7 @@ public async Task Example_GetProjects_AllParameters_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetProjectsAsync("", 1234)) + await foreach (var item in client.GetProjectsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -147,7 +147,7 @@ public void Example_GetAllDevBoxes() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetAllDevBoxes()) + foreach (var item in client.GetAllDevBoxes("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -162,7 +162,7 @@ public void Example_GetAllDevBoxes_AllParameters() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetAllDevBoxes("", 1234)) + foreach (var item in client.GetAllDevBoxes("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -200,7 +200,7 @@ public async Task Example_GetAllDevBoxes_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetAllDevBoxesAsync()) + await foreach (var item in client.GetAllDevBoxesAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -215,7 +215,7 @@ public async Task Example_GetAllDevBoxes_AllParameters_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetAllDevBoxesAsync("", 1234)) + await foreach (var item in client.GetAllDevBoxesAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -253,7 +253,7 @@ public void Example_GetAllDevBoxesByUser() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetAllDevBoxesByUser("")) + foreach (var item in client.GetAllDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -268,7 +268,7 @@ public void Example_GetAllDevBoxesByUser_AllParameters() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - foreach (var item in client.GetAllDevBoxesByUser("", "", 1234)) + foreach (var item in client.GetAllDevBoxesByUser("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -306,7 +306,7 @@ public async Task Example_GetAllDevBoxesByUser_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetAllDevBoxesByUserAsync("")) + await foreach (var item in client.GetAllDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("poolName").ToString()); @@ -321,7 +321,7 @@ public async Task Example_GetAllDevBoxesByUser_AllParameters_Async() var endpoint = new Uri(""); var client = new DevCenterClient(endpoint, credential); - await foreach (var item in client.GetAllDevBoxesByUserAsync("", "", 1234)) + await foreach (var item in client.GetAllDevBoxesByUserAsync("", "", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_EnvironmentsClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_EnvironmentsClient.cs index e0346ae1c09d..4c9a107a2af2 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_EnvironmentsClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_EnvironmentsClient.cs @@ -27,7 +27,7 @@ public void Example_GetEnvironmentByUser() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetEnvironmentByUser("", ""); + Response response = client.GetEnvironmentByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -42,7 +42,7 @@ public void Example_GetEnvironmentByUser_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetEnvironmentByUser("", ""); + Response response = client.GetEnvironmentByUser("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -68,7 +68,7 @@ public async Task Example_GetEnvironmentByUser_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetEnvironmentByUserAsync("", ""); + Response response = await client.GetEnvironmentByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -83,7 +83,7 @@ public async Task Example_GetEnvironmentByUser_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetEnvironmentByUserAsync("", ""); + Response response = await client.GetEnvironmentByUserAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -247,7 +247,7 @@ public void Example_GetCatalogItem() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetCatalogItem(""); + Response response = client.GetCatalogItem("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -261,7 +261,7 @@ public void Example_GetCatalogItem_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetCatalogItem(""); + Response response = client.GetCatalogItem("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -277,7 +277,7 @@ public async Task Example_GetCatalogItem_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetCatalogItemAsync(""); + Response response = await client.GetCatalogItemAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -291,7 +291,7 @@ public async Task Example_GetCatalogItem_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetCatalogItemAsync(""); + Response response = await client.GetCatalogItemAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -307,7 +307,7 @@ public void Example_GetCatalogItemVersion() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetCatalogItemVersion("", ""); + Response response = client.GetCatalogItemVersion("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -321,7 +321,7 @@ public void Example_GetCatalogItemVersion_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = client.GetCatalogItemVersion("", ""); + Response response = client.GetCatalogItemVersion("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -368,7 +368,7 @@ public async Task Example_GetCatalogItemVersion_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetCatalogItemVersionAsync("", ""); + Response response = await client.GetCatalogItemVersionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -382,7 +382,7 @@ public async Task Example_GetCatalogItemVersion_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - Response response = await client.GetCatalogItemVersionAsync("", ""); + Response response = await client.GetCatalogItemVersionAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -429,7 +429,7 @@ public void Example_GetEnvironments() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironments()) + foreach (var item in client.GetEnvironments(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -445,7 +445,7 @@ public void Example_GetEnvironments_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironments(1234)) + foreach (var item in client.GetEnvironments(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -472,7 +472,7 @@ public async Task Example_GetEnvironments_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentsAsync()) + await foreach (var item in client.GetEnvironmentsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -488,7 +488,7 @@ public async Task Example_GetEnvironments_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentsAsync(1234)) + await foreach (var item in client.GetEnvironmentsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -515,7 +515,7 @@ public void Example_GetEnvironmentsByUser() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironmentsByUser("")) + foreach (var item in client.GetEnvironmentsByUser("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -531,7 +531,7 @@ public void Example_GetEnvironmentsByUser_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironmentsByUser("", 1234)) + foreach (var item in client.GetEnvironmentsByUser("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -558,7 +558,7 @@ public async Task Example_GetEnvironmentsByUser_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentsByUserAsync("")) + await foreach (var item in client.GetEnvironmentsByUserAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -574,7 +574,7 @@ public async Task Example_GetEnvironmentsByUser_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentsByUserAsync("", 1234)) + await foreach (var item in client.GetEnvironmentsByUserAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -601,7 +601,7 @@ public void Example_GetCatalogItems() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetCatalogItems()) + foreach (var item in client.GetCatalogItems(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -616,7 +616,7 @@ public void Example_GetCatalogItems_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetCatalogItems(1234)) + foreach (var item in client.GetCatalogItems(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -633,7 +633,7 @@ public async Task Example_GetCatalogItems_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetCatalogItemsAsync()) + await foreach (var item in client.GetCatalogItemsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -648,7 +648,7 @@ public async Task Example_GetCatalogItems_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetCatalogItemsAsync(1234)) + await foreach (var item in client.GetCatalogItemsAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -665,7 +665,7 @@ public void Example_GetCatalogItemVersions() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetCatalogItemVersions("")) + foreach (var item in client.GetCatalogItemVersions("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -680,7 +680,7 @@ public void Example_GetCatalogItemVersions_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetCatalogItemVersions("", 1234)) + foreach (var item in client.GetCatalogItemVersions("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -728,7 +728,7 @@ public async Task Example_GetCatalogItemVersions_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetCatalogItemVersionsAsync("")) + await foreach (var item in client.GetCatalogItemVersionsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -743,7 +743,7 @@ public async Task Example_GetCatalogItemVersions_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetCatalogItemVersionsAsync("", 1234)) + await foreach (var item in client.GetCatalogItemVersionsAsync("", 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("catalogItemId").ToString()); @@ -791,7 +791,7 @@ public void Example_GetEnvironmentTypes() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironmentTypes()) + foreach (var item in client.GetEnvironmentTypes(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -806,7 +806,7 @@ public void Example_GetEnvironmentTypes_AllParameters() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - foreach (var item in client.GetEnvironmentTypes(1234)) + foreach (var item in client.GetEnvironmentTypes(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -823,7 +823,7 @@ public async Task Example_GetEnvironmentTypes_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentTypesAsync()) + await foreach (var item in client.GetEnvironmentTypesAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -838,7 +838,7 @@ public async Task Example_GetEnvironmentTypes_AllParameters_Async() var endpoint = new Uri(""); var client = new EnvironmentsClient(endpoint, "", credential); - await foreach (var item in client.GetEnvironmentTypesAsync(1234)) + await foreach (var item in client.GetEnvironmentTypesAsync(1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs index 6a6f4392065d..4cabbd5806d8 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs @@ -20,7 +20,7 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string targetProjectName = null; - await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1)) + await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -36,7 +36,7 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetPools_Scenario var devBoxesClient = new DevBoxesClient(endpoint, targetProjectName, credential); string targetPoolName = null; - await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1)) + await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -63,7 +63,7 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) // Fetch the web connection URL to access your dev box from the browser #region Snippet:Azure_DevCenter_ConnectToDevBox_Scenario - Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox"); + Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync("me", "MyDevBox", new()); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); #endregion diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs index 0b2e869a9b72..76eb0dd808bc 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs @@ -20,7 +20,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string projectName = null; - await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1)) + await foreach (BinaryData data in devCenterClient.GetProjectsAsync(filter: null, maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; projectName = result.GetProperty("name").ToString(); @@ -34,7 +34,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetCatalogItems_Scenario var environmentsClient = new EnvironmentsClient(endpoint, projectName, credential); string catalogItemName = null; - await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1)) + await foreach (BinaryData data in environmentsClient.GetCatalogItemsAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogItemName = result.GetProperty("name").ToString(); @@ -48,7 +48,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; - await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1)) + await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(maxCount: 1, context: new())) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/autorest.md b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/autorest.md index 33541b1f4797..ffac5066df8c 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/autorest.md +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/autorest.md @@ -16,6 +16,7 @@ security: AADToken security-scopes: https://api.adu.microsoft.com/.default # disable renaming pagination parameter "top" since the SDK is GAed disable-pagination-top-renaming: true +keep-non-overloadable-protocol-signature: true ``` ### Fix 304s diff --git a/sdk/loadtestservice/Azure.Developer.LoadTesting/src/autorest.md b/sdk/loadtestservice/Azure.Developer.LoadTesting/src/autorest.md index e16c21147c5f..186369cb1511 100644 --- a/sdk/loadtestservice/Azure.Developer.LoadTesting/src/autorest.md +++ b/sdk/loadtestservice/Azure.Developer.LoadTesting/src/autorest.md @@ -11,6 +11,7 @@ namespace: Azure.Developer.LoadTesting security: AADToken security-scopes: https://cnt-prod.loadtesting.azure.com/.default skip-csproj-packagereference: true +keep-non-overloadable-protocol-signature: true directive: - from: swagger-document where: $["paths"]["/tests/{testId}/files/{fileName}"].put diff --git a/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs index 2cf8a278ba64..2989a5da3886 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs @@ -6,16 +6,16 @@ protected PurviewAccountClient() { } public PurviewAccountClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public PurviewAccountClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Account.PurviewAccountClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetAccessKeys(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAccessKeysAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAccountProperties(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAccountPropertiesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCollections(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCollectionsAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAccessKeys(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAccessKeysAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetAccountProperties(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAccountPropertiesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCollections(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCollectionsAsync(string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Account.PurviewCollection GetPurviewCollectionClient(string collectionName) { throw null; } public virtual Azure.Analytics.Purview.Account.PurviewResourceSetRule GetPurviewResourceSetRuleClient() { throw null; } - public virtual Azure.Pageable GetResourceSetRules(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetResourceSetRulesAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetResourceSetRules(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetResourceSetRulesAsync(string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Response RegenerateAccessKey(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RegenerateAccessKeyAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response UpdateAccountProperties(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -37,12 +37,12 @@ protected PurviewCollection() { } public virtual System.Threading.Tasks.Task CreateOrUpdateCollectionAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteCollection(Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteCollectionAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetChildCollectionNames(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetChildCollectionNamesAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCollection(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCollectionAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCollectionPath(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCollectionPathAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetChildCollectionNames(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetChildCollectionNamesAsync(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCollection(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCollectionAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCollectionPath(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCollectionPathAsync(Azure.RequestContext context) { throw null; } } public partial class PurviewResourceSetRule { @@ -52,8 +52,8 @@ protected PurviewResourceSetRule() { } public virtual System.Threading.Tasks.Task CreateOrUpdateResourceSetRuleAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteResourceSetRule(Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteResourceSetRuleAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetResourceSetRule(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetResourceSetRuleAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetResourceSetRule(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetResourceSetRuleAsync(Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewAccountClient.xml b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewAccountClient.xml index f5f841ecbfec..1426615fbe14 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewAccountClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewAccountClient.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetAccountPropertiesAsync and parse the result. +This sample shows how to call GetAccountPropertiesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = await client.GetAccountPropertiesAsync(); +Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -55,13 +55,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetAccountProperties and parse the result. +This sample shows how to call GetAccountProperties with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = client.GetAccountProperties(); +Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -245,13 +245,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetAccessKeysAsync and parse the result. +This sample shows how to call GetAccessKeysAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = await client.GetAccessKeysAsync(); +Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -261,13 +261,13 @@ Console.WriteLine(result.GetProperty("atlasKafkaSecondaryEndpoint").ToString()); -This sample shows how to call GetAccessKeys and parse the result. +This sample shows how to call GetAccessKeys with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = client.GetAccessKeys(); +Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -343,25 +343,13 @@ Console.WriteLine(result.GetProperty("atlasKafkaSecondaryEndpoint").ToString()); -This sample shows how to call GetCollectionsAsync and parse the result. +This sample shows how to call GetCollectionsAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -await foreach (var item in client.GetCollectionsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCollectionsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -await foreach (var item in client.GetCollectionsAsync("")) +await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -382,25 +370,13 @@ await foreach (var item in client.GetCollectionsAsync("")) -This sample shows how to call GetCollections and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -foreach (var item in client.GetCollections()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCollections with all parameters, and how to parse the result. +This sample shows how to call GetCollections with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -foreach (var item in client.GetCollections("")) +foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -421,25 +397,13 @@ foreach (var item in client.GetCollections("")) -This sample shows how to call GetResourceSetRulesAsync and parse the result. +This sample shows how to call GetResourceSetRulesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -await foreach (var item in client.GetResourceSetRulesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetResourceSetRulesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -await foreach (var item in client.GetResourceSetRulesAsync("")) +await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -533,25 +497,13 @@ await foreach (var item in client.GetResourceSetRulesAsync("")) -This sample shows how to call GetResourceSetRules and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -foreach (var item in client.GetResourceSetRules()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetResourceSetRules with all parameters, and how to parse the result. +This sample shows how to call GetResourceSetRules with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -foreach (var item in client.GetResourceSetRules("")) +foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewCollection.xml b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewCollection.xml index 2c072e74dceb..74242221269f 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewCollection.xml +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewCollection.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetCollectionAsync and parse the result. +This sample shows how to call GetCollectionAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = await client.GetCollectionAsync(); +Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -29,13 +29,13 @@ Console.WriteLine(result.GetProperty("systemData").GetProperty("lastModifiedByTy -This sample shows how to call GetCollection and parse the result. +This sample shows how to call GetCollection with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = client.GetCollection(); +Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -175,13 +175,13 @@ Console.WriteLine(response.Status); -This sample shows how to call GetCollectionPathAsync and parse the result. +This sample shows how to call GetCollectionPathAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = await client.GetCollectionPathAsync(); +Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -191,13 +191,13 @@ Console.WriteLine(result.GetProperty("parentNameChain")[0].ToString()); -This sample shows how to call GetCollectionPath and parse the result. +This sample shows how to call GetCollectionPath with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = client.GetCollectionPath(); +Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -207,25 +207,13 @@ Console.WriteLine(result.GetProperty("parentNameChain")[0].ToString()); -This sample shows how to call GetChildCollectionNamesAsync and parse the result. +This sample shows how to call GetChildCollectionNamesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -await foreach (var item in client.GetChildCollectionNamesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetChildCollectionNamesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - -await foreach (var item in client.GetChildCollectionNamesAsync("")) +await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); @@ -236,25 +224,13 @@ await foreach (var item in client.GetChildCollectionNamesAsync("")) -This sample shows how to call GetChildCollectionNames and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - -foreach (var item in client.GetChildCollectionNames()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetChildCollectionNames with all parameters, and how to parse the result. +This sample shows how to call GetChildCollectionNames with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -foreach (var item in client.GetChildCollectionNames("")) +foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml index f22a63f9ad92..b049c15da2d5 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetResourceSetRuleAsync and parse the result. +This sample shows how to call GetResourceSetRuleAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); -Response response = await client.GetResourceSetRuleAsync(); +Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -102,13 +102,13 @@ Console.WriteLine(result.GetProperty("pathPatternConfig").GetProperty("version") -This sample shows how to call GetResourceSetRule and parse the result. +This sample shows how to call GetResourceSetRule with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); -Response response = client.GetResourceSetRule(); +Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClient.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClient.cs index d0f508fb6149..9b0ebb6aeae5 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClient.cs @@ -75,7 +75,7 @@ public PurviewAccountClient(Uri endpoint, TokenCredential credential, PurviewAcc /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAccountPropertiesAsync(RequestContext context = null) + public virtual async Task GetAccountPropertiesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccountProperties"); scope.Start(); @@ -105,7 +105,7 @@ public virtual async Task GetAccountPropertiesAsync(RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAccountProperties(RequestContext context = null) + public virtual Response GetAccountProperties(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccountProperties"); scope.Start(); @@ -203,7 +203,7 @@ public virtual Response UpdateAccountProperties(RequestContent content, RequestC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAccessKeysAsync(RequestContext context = null) + public virtual async Task GetAccessKeysAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccessKeys"); scope.Start(); @@ -233,7 +233,7 @@ public virtual async Task GetAccessKeysAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAccessKeys(RequestContext context = null) + public virtual Response GetAccessKeys(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccessKeys"); scope.Start(); @@ -332,7 +332,7 @@ public virtual Response RegenerateAccessKey(RequestContent content, RequestConte /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCollectionsAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetCollectionsAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCollectionsRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCollectionsNextPageRequest(nextLink, skipToken, context); @@ -354,7 +354,7 @@ public virtual AsyncPageable GetCollectionsAsync(string skipToken = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCollections(string skipToken = null, RequestContext context = null) + public virtual Pageable GetCollections(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCollectionsRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCollectionsNextPageRequest(nextLink, skipToken, context); @@ -376,7 +376,7 @@ public virtual Pageable GetCollections(string skipToken = null, Requ /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetResourceSetRulesAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetResourceSetRulesAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetResourceSetRulesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetResourceSetRulesNextPageRequest(nextLink, skipToken, context); @@ -398,7 +398,7 @@ public virtual AsyncPageable GetResourceSetRulesAsync(string skipTok /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetResourceSetRules(string skipToken = null, RequestContext context = null) + public virtual Pageable GetResourceSetRules(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetResourceSetRulesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetResourceSetRulesNextPageRequest(nextLink, skipToken, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewCollection.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewCollection.cs index 3dc25dd86d87..787c42ae3420 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewCollection.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewCollection.cs @@ -66,7 +66,7 @@ internal PurviewCollection(ClientDiagnostics clientDiagnostics, HttpPipeline pip /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCollectionAsync(RequestContext context = null) + public virtual async Task GetCollectionAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollection"); scope.Start(); @@ -96,7 +96,7 @@ public virtual async Task GetCollectionAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCollection(RequestContext context = null) + public virtual Response GetCollection(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollection"); scope.Start(); @@ -254,7 +254,7 @@ public virtual Response DeleteCollection(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCollectionPathAsync(RequestContext context = null) + public virtual async Task GetCollectionPathAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollectionPath"); scope.Start(); @@ -284,7 +284,7 @@ public virtual async Task GetCollectionPathAsync(RequestContext contex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCollectionPath(RequestContext context = null) + public virtual Response GetCollectionPath(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollectionPath"); scope.Start(); @@ -315,7 +315,7 @@ public virtual Response GetCollectionPath(RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetChildCollectionNamesAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetChildCollectionNamesAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetChildCollectionNamesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetChildCollectionNamesNextPageRequest(nextLink, skipToken, context); @@ -337,7 +337,7 @@ public virtual AsyncPageable GetChildCollectionNamesAsync(string ski /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetChildCollectionNames(string skipToken = null, RequestContext context = null) + public virtual Pageable GetChildCollectionNames(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetChildCollectionNamesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetChildCollectionNamesNextPageRequest(nextLink, skipToken, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewResourceSetRule.cs index ed4dab3bb5ec..a2d6d80bfccf 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewResourceSetRule.cs @@ -63,7 +63,7 @@ internal PurviewResourceSetRule(ClientDiagnostics clientDiagnostics, HttpPipelin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetResourceSetRuleAsync(RequestContext context = null) + public virtual async Task GetResourceSetRuleAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewResourceSetRule.GetResourceSetRule"); scope.Start(); @@ -93,7 +93,7 @@ public virtual async Task GetResourceSetRuleAsync(RequestContext conte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetResourceSetRule(RequestContext context = null) + public virtual Response GetResourceSetRule(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewResourceSetRule.GetResourceSetRule"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..00a46f8e98e0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewAccountClient.cs b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewAccountClient.cs index a74b2ba6756f..fbde2ce5c17e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewAccountClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewAccountClient.cs @@ -27,7 +27,7 @@ public void Example_GetAccountProperties() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccountProperties(); + Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetAccountProperties_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccountProperties(); + Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -92,7 +92,7 @@ public async Task Example_GetAccountProperties_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccountPropertiesAsync(); + Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -106,7 +106,7 @@ public async Task Example_GetAccountProperties_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccountPropertiesAsync(); + Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -301,7 +301,7 @@ public void Example_GetAccessKeys() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccessKeys(); + Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -315,7 +315,7 @@ public void Example_GetAccessKeys_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccessKeys(); + Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -330,7 +330,7 @@ public async Task Example_GetAccessKeys_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccessKeysAsync(); + Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -344,7 +344,7 @@ public async Task Example_GetAccessKeys_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccessKeysAsync(); + Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -431,7 +431,7 @@ public void Example_GetCollections() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetCollections()) + foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -446,7 +446,7 @@ public void Example_GetCollections_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetCollections("")) + foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -472,7 +472,7 @@ public async Task Example_GetCollections_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetCollectionsAsync()) + await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -487,7 +487,7 @@ public async Task Example_GetCollections_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetCollectionsAsync("")) + await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -513,7 +513,7 @@ public void Example_GetResourceSetRules() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetResourceSetRules()) + foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -528,7 +528,7 @@ public void Example_GetResourceSetRules_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetResourceSetRules("")) + foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -627,7 +627,7 @@ public async Task Example_GetResourceSetRules_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetResourceSetRulesAsync()) + await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -642,7 +642,7 @@ public async Task Example_GetResourceSetRules_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetResourceSetRulesAsync("")) + await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewCollection.cs b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewCollection.cs index 08525448020a..23ef85376125 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewCollection.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewCollection.cs @@ -27,7 +27,7 @@ public void Example_GetCollection() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollection(); + Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetCollection_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollection(); + Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -66,7 +66,7 @@ public async Task Example_GetCollection_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionAsync(); + Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCollection_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionAsync(); + Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -255,7 +255,7 @@ public void Example_GetCollectionPath() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollectionPath(); + Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -269,7 +269,7 @@ public void Example_GetCollectionPath_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollectionPath(); + Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -284,7 +284,7 @@ public async Task Example_GetCollectionPath_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionPathAsync(); + Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -298,7 +298,7 @@ public async Task Example_GetCollectionPath_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionPathAsync(); + Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -313,7 +313,7 @@ public void Example_GetChildCollectionNames() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - foreach (var item in client.GetChildCollectionNames()) + foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -328,7 +328,7 @@ public void Example_GetChildCollectionNames_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - foreach (var item in client.GetChildCollectionNames("")) + foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); @@ -344,7 +344,7 @@ public async Task Example_GetChildCollectionNames_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - await foreach (var item in client.GetChildCollectionNamesAsync()) + await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -359,7 +359,7 @@ public async Task Example_GetChildCollectionNames_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - await foreach (var item in client.GetChildCollectionNamesAsync("")) + await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs index 428e945a40bf..eb04a976e1bd 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs @@ -27,7 +27,7 @@ public void Example_GetResourceSetRule() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = client.GetResourceSetRule(); + Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetResourceSetRule_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = client.GetResourceSetRule(); + Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -139,7 +139,7 @@ public async Task Example_GetResourceSetRule_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = await client.GetResourceSetRuleAsync(); + Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -153,7 +153,7 @@ public async Task Example_GetResourceSetRule_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = await client.GetResourceSetRuleAsync(); + Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/api/Azure.Analytics.Purview.Administration.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Administration/api/Azure.Analytics.Purview.Administration.netstandard2.0.cs index 2970317dda43..d8d4be87c196 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/api/Azure.Analytics.Purview.Administration.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/api/Azure.Analytics.Purview.Administration.netstandard2.0.cs @@ -6,18 +6,18 @@ protected PurviewAccountClient() { } public PurviewAccountClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public PurviewAccountClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Administration.PurviewAccountClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetAccessKeys(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAccessKeysAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAccountProperties(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAccountPropertiesAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAccessKeys(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAccessKeysAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetAccountProperties(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAccountPropertiesAsync(Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Administration.PurviewCollection GetCollectionClient(string collectionName) { throw null; } - public virtual Azure.Pageable GetCollections(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCollectionsAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetCollections(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCollectionsAsync(string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Administration.PurviewCollection GetPurviewCollectionClient(string collectionName) { throw null; } public virtual Azure.Analytics.Purview.Administration.PurviewResourceSetRule GetPurviewResourceSetRuleClient() { throw null; } public virtual Azure.Analytics.Purview.Administration.PurviewResourceSetRule GetResourceSetRuleClient() { throw null; } - public virtual Azure.Pageable GetResourceSetRules(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetResourceSetRulesAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetResourceSetRules(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetResourceSetRulesAsync(string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Response RegenerateAccessKey(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RegenerateAccessKeyAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response UpdateAccountProperties(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -39,12 +39,12 @@ protected PurviewCollection() { } public virtual System.Threading.Tasks.Task CreateOrUpdateCollectionAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteCollection(Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteCollectionAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetChildCollectionNames(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetChildCollectionNamesAsync(string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCollection(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCollectionAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCollectionPath(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCollectionPathAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetChildCollectionNames(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetChildCollectionNamesAsync(string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCollection(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCollectionAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCollectionPath(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCollectionPathAsync(Azure.RequestContext context) { throw null; } } public partial class PurviewMetadataClientOptions : Azure.Core.ClientOptions { @@ -60,12 +60,12 @@ protected PurviewMetadataPolicyClient() { } public PurviewMetadataPolicyClient(System.Uri endpoint, string collectionName, Azure.Core.TokenCredential credential) { } public PurviewMetadataPolicyClient(System.Uri endpoint, string collectionName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Administration.PurviewMetadataClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Pageable GetMetadataPolicies(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetMetadataPoliciesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetMetadataPolicy(string policyId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetMetadataPolicyAsync(string policyId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response UpdateMetadataPolicy(string policyId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateMetadataPolicyAsync(string policyId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetMetadataPolicies(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetMetadataPoliciesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetMetadataPolicy(string policyId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetMetadataPolicyAsync(string policyId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response UpdateMetadataPolicy(string policyId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task UpdateMetadataPolicyAsync(string policyId, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } } public partial class PurviewMetadataRolesClient { @@ -73,8 +73,8 @@ protected PurviewMetadataRolesClient() { } public PurviewMetadataRolesClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public PurviewMetadataRolesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Administration.PurviewMetadataClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Pageable GetMetadataRoles(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetMetadataRolesAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetMetadataRoles(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetMetadataRolesAsync(Azure.RequestContext context) { throw null; } } public partial class PurviewResourceSetRule { @@ -84,7 +84,7 @@ protected PurviewResourceSetRule() { } public virtual System.Threading.Tasks.Task CreateOrUpdateResourceSetRuleAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteResourceSetRule(Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteResourceSetRuleAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetResourceSetRule(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetResourceSetRuleAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetResourceSetRule(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetResourceSetRuleAsync(Azure.RequestContext context) { throw null; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewAccountClient.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewAccountClient.xml index f5f841ecbfec..1426615fbe14 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewAccountClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewAccountClient.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetAccountPropertiesAsync and parse the result. +This sample shows how to call GetAccountPropertiesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = await client.GetAccountPropertiesAsync(); +Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -55,13 +55,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetAccountProperties and parse the result. +This sample shows how to call GetAccountProperties with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = client.GetAccountProperties(); +Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -245,13 +245,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetAccessKeysAsync and parse the result. +This sample shows how to call GetAccessKeysAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = await client.GetAccessKeysAsync(); +Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -261,13 +261,13 @@ Console.WriteLine(result.GetProperty("atlasKafkaSecondaryEndpoint").ToString()); -This sample shows how to call GetAccessKeys and parse the result. +This sample shows how to call GetAccessKeys with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -Response response = client.GetAccessKeys(); +Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -343,25 +343,13 @@ Console.WriteLine(result.GetProperty("atlasKafkaSecondaryEndpoint").ToString()); -This sample shows how to call GetCollectionsAsync and parse the result. +This sample shows how to call GetCollectionsAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -await foreach (var item in client.GetCollectionsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCollectionsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -await foreach (var item in client.GetCollectionsAsync("")) +await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -382,25 +370,13 @@ await foreach (var item in client.GetCollectionsAsync("")) -This sample shows how to call GetCollections and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -foreach (var item in client.GetCollections()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetCollections with all parameters, and how to parse the result. +This sample shows how to call GetCollections with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -foreach (var item in client.GetCollections("")) +foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -421,25 +397,13 @@ foreach (var item in client.GetCollections("")) -This sample shows how to call GetResourceSetRulesAsync and parse the result. +This sample shows how to call GetResourceSetRulesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -await foreach (var item in client.GetResourceSetRulesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetResourceSetRulesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -await foreach (var item in client.GetResourceSetRulesAsync("")) +await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -533,25 +497,13 @@ await foreach (var item in client.GetResourceSetRulesAsync("")) -This sample shows how to call GetResourceSetRules and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential); - -foreach (var item in client.GetResourceSetRules()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetResourceSetRules with all parameters, and how to parse the result. +This sample shows how to call GetResourceSetRules with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential); -foreach (var item in client.GetResourceSetRules("")) +foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewCollection.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewCollection.xml index 2c072e74dceb..74242221269f 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewCollection.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewCollection.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetCollectionAsync and parse the result. +This sample shows how to call GetCollectionAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = await client.GetCollectionAsync(); +Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -29,13 +29,13 @@ Console.WriteLine(result.GetProperty("systemData").GetProperty("lastModifiedByTy -This sample shows how to call GetCollection and parse the result. +This sample shows how to call GetCollection with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = client.GetCollection(); +Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -175,13 +175,13 @@ Console.WriteLine(response.Status); -This sample shows how to call GetCollectionPathAsync and parse the result. +This sample shows how to call GetCollectionPathAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = await client.GetCollectionPathAsync(); +Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -191,13 +191,13 @@ Console.WriteLine(result.GetProperty("parentNameChain")[0].ToString()); -This sample shows how to call GetCollectionPath and parse the result. +This sample shows how to call GetCollectionPath with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -Response response = client.GetCollectionPath(); +Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -207,25 +207,13 @@ Console.WriteLine(result.GetProperty("parentNameChain")[0].ToString()); -This sample shows how to call GetChildCollectionNamesAsync and parse the result. +This sample shows how to call GetChildCollectionNamesAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -await foreach (var item in client.GetChildCollectionNamesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetChildCollectionNamesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - -await foreach (var item in client.GetChildCollectionNamesAsync("")) +await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); @@ -236,25 +224,13 @@ await foreach (var item in client.GetChildCollectionNamesAsync("")) -This sample shows how to call GetChildCollectionNames and parse the result. -"); -var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - -foreach (var item in client.GetChildCollectionNames()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetChildCollectionNames with all parameters, and how to parse the result. +This sample shows how to call GetChildCollectionNames with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); -foreach (var item in client.GetChildCollectionNames("")) +foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").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 c618ab90fdb2..c09e8cd3b4c7 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)); +Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -215,7 +215,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); -Response response = await client.GetMetadataPolicyAsync(""); +Response response = await client.GetMetadataPolicyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -251,7 +251,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); -Response response = client.GetMetadataPolicy(""); +Response response = client.GetMetadataPolicy("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -281,13 +281,13 @@ Console.WriteLine(result.GetProperty("properties").GetProperty("parentCollection -This sample shows how to call GetMetadataPoliciesAsync and parse the result. +This sample shows how to call GetMetadataPoliciesAsync with required parameters and parse the result. "); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); -await foreach (var item in client.GetMetadataPoliciesAsync()) +await foreach (var item in client.GetMetadataPoliciesAsync(new RequestContext())) { } ]]> @@ -295,13 +295,13 @@ await foreach (var item in client.GetMetadataPoliciesAsync()) -This sample shows how to call GetMetadataPolicies and parse the result. +This sample shows how to call GetMetadataPolicies with required parameters and parse the result. "); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); -foreach (var item in client.GetMetadataPolicies()) +foreach (var item in client.GetMetadataPolicies(new RequestContext())) { } ]]> diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataRolesClient.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataRolesClient.xml index 820036fc6129..4a0cd331b7a7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataRolesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataRolesClient.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetMetadataRolesAsync and parse the result. +This sample shows how to call GetMetadataRolesAsync with required parameters and parse the result. "); var client = new PurviewMetadataRolesClient(endpoint, credential); -await foreach (var item in client.GetMetadataRolesAsync()) +await foreach (var item in client.GetMetadataRolesAsync(new RequestContext())) { } ]]> @@ -17,13 +17,13 @@ await foreach (var item in client.GetMetadataRolesAsync()) -This sample shows how to call GetMetadataRoles and parse the result. +This sample shows how to call GetMetadataRoles with required parameters and parse the result. "); var client = new PurviewMetadataRolesClient(endpoint, credential); -foreach (var item in client.GetMetadataRoles()) +foreach (var item in client.GetMetadataRoles(new RequestContext())) { } ]]> diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml index f22a63f9ad92..b049c15da2d5 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml @@ -3,13 +3,13 @@ -This sample shows how to call GetResourceSetRuleAsync and parse the result. +This sample shows how to call GetResourceSetRuleAsync with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); -Response response = await client.GetResourceSetRuleAsync(); +Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -102,13 +102,13 @@ Console.WriteLine(result.GetProperty("pathPatternConfig").GetProperty("version") -This sample shows how to call GetResourceSetRule and parse the result. +This sample shows how to call GetResourceSetRule with required parameters and parse the result. "); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); -Response response = client.GetResourceSetRule(); +Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewAccountClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewAccountClient.cs index 7f7648db6178..d9ebd2e0c3e0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewAccountClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewAccountClient.cs @@ -73,7 +73,7 @@ public PurviewAccountClient(Uri endpoint, TokenCredential credential, PurviewAcc /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAccountPropertiesAsync(RequestContext context = null) + public virtual async Task GetAccountPropertiesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccountProperties"); scope.Start(); @@ -103,7 +103,7 @@ public virtual async Task GetAccountPropertiesAsync(RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAccountProperties(RequestContext context = null) + public virtual Response GetAccountProperties(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccountProperties"); scope.Start(); @@ -201,7 +201,7 @@ public virtual Response UpdateAccountProperties(RequestContent content, RequestC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAccessKeysAsync(RequestContext context = null) + public virtual async Task GetAccessKeysAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccessKeys"); scope.Start(); @@ -231,7 +231,7 @@ public virtual async Task GetAccessKeysAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAccessKeys(RequestContext context = null) + public virtual Response GetAccessKeys(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewAccountClient.GetAccessKeys"); scope.Start(); @@ -330,7 +330,7 @@ public virtual Response RegenerateAccessKey(RequestContent content, RequestConte /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCollectionsAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetCollectionsAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCollectionsRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCollectionsNextPageRequest(nextLink, skipToken, context); @@ -352,7 +352,7 @@ public virtual AsyncPageable GetCollectionsAsync(string skipToken = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCollections(string skipToken = null, RequestContext context = null) + public virtual Pageable GetCollections(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCollectionsRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCollectionsNextPageRequest(nextLink, skipToken, context); @@ -374,7 +374,7 @@ public virtual Pageable GetCollections(string skipToken = null, Requ /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetResourceSetRulesAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetResourceSetRulesAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetResourceSetRulesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetResourceSetRulesNextPageRequest(nextLink, skipToken, context); @@ -396,7 +396,7 @@ public virtual AsyncPageable GetResourceSetRulesAsync(string skipTok /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetResourceSetRules(string skipToken = null, RequestContext context = null) + public virtual Pageable GetResourceSetRules(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetResourceSetRulesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetResourceSetRulesNextPageRequest(nextLink, skipToken, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewCollection.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewCollection.cs index 09da10f0a71d..21a457fa3ca9 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewCollection.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewCollection.cs @@ -63,7 +63,7 @@ internal PurviewCollection(ClientDiagnostics clientDiagnostics, HttpPipeline pip /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCollectionAsync(RequestContext context = null) + public virtual async Task GetCollectionAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollection"); scope.Start(); @@ -93,7 +93,7 @@ public virtual async Task GetCollectionAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCollection(RequestContext context = null) + public virtual Response GetCollection(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollection"); scope.Start(); @@ -251,7 +251,7 @@ public virtual Response DeleteCollection(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCollectionPathAsync(RequestContext context = null) + public virtual async Task GetCollectionPathAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollectionPath"); scope.Start(); @@ -281,7 +281,7 @@ public virtual async Task GetCollectionPathAsync(RequestContext contex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCollectionPath(RequestContext context = null) + public virtual Response GetCollectionPath(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewCollection.GetCollectionPath"); scope.Start(); @@ -312,7 +312,7 @@ public virtual Response GetCollectionPath(RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetChildCollectionNamesAsync(string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetChildCollectionNamesAsync(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetChildCollectionNamesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetChildCollectionNamesNextPageRequest(nextLink, skipToken, context); @@ -334,7 +334,7 @@ public virtual AsyncPageable GetChildCollectionNamesAsync(string ski /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetChildCollectionNames(string skipToken = null, RequestContext context = null) + public virtual Pageable GetChildCollectionNames(string skipToken, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetChildCollectionNamesRequest(skipToken, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetChildCollectionNamesNextPageRequest(nextLink, skipToken, context); 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 266b62d66c5b..01cf738b1825 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 = null) + public virtual async Task UpdateMetadataPolicyAsync(string policyId, RequestContent content, RequestContext context) { 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 = null) + public virtual Response UpdateMetadataPolicy(string policyId, RequestContent content, RequestContext context) { Argument.AssertNotNullOrEmpty(policyId, nameof(policyId)); @@ -123,7 +123,7 @@ public virtual Response UpdateMetadataPolicy(string policyId, RequestContent con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetMetadataPolicyAsync(string policyId, RequestContext context = null) + public virtual async Task GetMetadataPolicyAsync(string policyId, RequestContext context) { Argument.AssertNotNullOrEmpty(policyId, nameof(policyId)); @@ -158,7 +158,7 @@ public virtual async Task GetMetadataPolicyAsync(string policyId, Requ /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetMetadataPolicy(string policyId, RequestContext context = null) + public virtual Response GetMetadataPolicy(string policyId, RequestContext context) { Argument.AssertNotNullOrEmpty(policyId, nameof(policyId)); @@ -190,7 +190,7 @@ public virtual Response GetMetadataPolicy(string policyId, RequestContext contex /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetMetadataPoliciesAsync(RequestContext context = null) + public virtual AsyncPageable GetMetadataPoliciesAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetMetadataPoliciesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetMetadataPoliciesNextPageRequest(nextLink, context); @@ -211,7 +211,7 @@ public virtual AsyncPageable GetMetadataPoliciesAsync(RequestContext /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetMetadataPolicies(RequestContext context = null) + public virtual Pageable GetMetadataPolicies(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetMetadataPoliciesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetMetadataPoliciesNextPageRequest(nextLink, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataRolesClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataRolesClient.cs index 98522b72da52..a27b3e5071cf 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataRolesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataRolesClient.cs @@ -46,7 +46,7 @@ protected PurviewMetadataRolesClient() /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetMetadataRolesAsync(RequestContext context = null) + public virtual AsyncPageable GetMetadataRolesAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetMetadataRolesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetMetadataRolesNextPageRequest(nextLink, context); @@ -67,7 +67,7 @@ public virtual AsyncPageable GetMetadataRolesAsync(RequestContext co /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetMetadataRoles(RequestContext context = null) + public virtual Pageable GetMetadataRoles(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetMetadataRolesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetMetadataRolesNextPageRequest(nextLink, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewResourceSetRule.cs index 9d8ab825ccfa..14ba9a1c2b0d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewResourceSetRule.cs @@ -60,7 +60,7 @@ internal PurviewResourceSetRule(ClientDiagnostics clientDiagnostics, HttpPipelin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetResourceSetRuleAsync(RequestContext context = null) + public virtual async Task GetResourceSetRuleAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewResourceSetRule.GetResourceSetRule"); scope.Start(); @@ -90,7 +90,7 @@ public virtual async Task GetResourceSetRuleAsync(RequestContext conte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetResourceSetRule(RequestContext context = null) + public virtual Response GetResourceSetRule(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewResourceSetRule.GetResourceSetRule"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..00a46f8e98e0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewAccountClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewAccountClient.cs index 257dcc65f4d2..05cbc8eafee7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewAccountClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewAccountClient.cs @@ -27,7 +27,7 @@ public void Example_GetAccountProperties() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccountProperties(); + Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetAccountProperties_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccountProperties(); + Response response = client.GetAccountProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -92,7 +92,7 @@ public async Task Example_GetAccountProperties_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccountPropertiesAsync(); + Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -106,7 +106,7 @@ public async Task Example_GetAccountProperties_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccountPropertiesAsync(); + Response response = await client.GetAccountPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -301,7 +301,7 @@ public void Example_GetAccessKeys() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccessKeys(); + Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -315,7 +315,7 @@ public void Example_GetAccessKeys_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = client.GetAccessKeys(); + Response response = client.GetAccessKeys(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -330,7 +330,7 @@ public async Task Example_GetAccessKeys_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccessKeysAsync(); + Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -344,7 +344,7 @@ public async Task Example_GetAccessKeys_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - Response response = await client.GetAccessKeysAsync(); + Response response = await client.GetAccessKeysAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("atlasKafkaPrimaryEndpoint").ToString()); @@ -431,7 +431,7 @@ public void Example_GetCollections() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetCollections()) + foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -446,7 +446,7 @@ public void Example_GetCollections_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetCollections("")) + foreach (var item in client.GetCollections("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -472,7 +472,7 @@ public async Task Example_GetCollections_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetCollectionsAsync()) + await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -487,7 +487,7 @@ public async Task Example_GetCollections_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetCollectionsAsync("")) + await foreach (var item in client.GetCollectionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -513,7 +513,7 @@ public void Example_GetResourceSetRules() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetResourceSetRules()) + foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -528,7 +528,7 @@ public void Example_GetResourceSetRules_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - foreach (var item in client.GetResourceSetRules("")) + foreach (var item in client.GetResourceSetRules("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -627,7 +627,7 @@ public async Task Example_GetResourceSetRules_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetResourceSetRulesAsync()) + await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -642,7 +642,7 @@ public async Task Example_GetResourceSetRules_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential); - await foreach (var item in client.GetResourceSetRulesAsync("")) + await foreach (var item in client.GetResourceSetRulesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewCollection.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewCollection.cs index d9498b997cde..3410b2312313 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewCollection.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewCollection.cs @@ -27,7 +27,7 @@ public void Example_GetCollection() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollection(); + Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetCollection_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollection(); + Response response = client.GetCollection(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -66,7 +66,7 @@ public async Task Example_GetCollection_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionAsync(); + Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -80,7 +80,7 @@ public async Task Example_GetCollection_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionAsync(); + Response response = await client.GetCollectionAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("collectionProvisioningState").ToString()); @@ -255,7 +255,7 @@ public void Example_GetCollectionPath() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollectionPath(); + Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -269,7 +269,7 @@ public void Example_GetCollectionPath_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = client.GetCollectionPath(); + Response response = client.GetCollectionPath(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -284,7 +284,7 @@ public async Task Example_GetCollectionPath_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionPathAsync(); + Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -298,7 +298,7 @@ public async Task Example_GetCollectionPath_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - Response response = await client.GetCollectionPathAsync(); + Response response = await client.GetCollectionPathAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("parentFriendlyNameChain")[0].ToString()); @@ -313,7 +313,7 @@ public void Example_GetChildCollectionNames() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - foreach (var item in client.GetChildCollectionNames()) + foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -328,7 +328,7 @@ public void Example_GetChildCollectionNames_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - foreach (var item in client.GetChildCollectionNames("")) + foreach (var item in client.GetChildCollectionNames("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); @@ -344,7 +344,7 @@ public async Task Example_GetChildCollectionNames_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - await foreach (var item in client.GetChildCollectionNamesAsync()) + await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -359,7 +359,7 @@ public async Task Example_GetChildCollectionNames_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewCollectionClient(""); - await foreach (var item in client.GetChildCollectionNamesAsync("")) + await foreach (var item in client.GetChildCollectionNamesAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("friendlyName").ToString()); 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 5fe90e09094f..f46c858a84cd 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)); + Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -243,7 +243,7 @@ public void Example_GetMetadataPolicy() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - Response response = client.GetMetadataPolicy(""); + Response response = client.GetMetadataPolicy("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -257,7 +257,7 @@ public void Example_GetMetadataPolicy_AllParameters() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - Response response = client.GetMetadataPolicy(""); + Response response = client.GetMetadataPolicy("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -292,7 +292,7 @@ public async Task Example_GetMetadataPolicy_Async() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - Response response = await client.GetMetadataPolicyAsync(""); + Response response = await client.GetMetadataPolicyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -306,7 +306,7 @@ public async Task Example_GetMetadataPolicy_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - Response response = await client.GetMetadataPolicyAsync(""); + Response response = await client.GetMetadataPolicyAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -341,7 +341,7 @@ public void Example_GetMetadataPolicies() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - foreach (var item in client.GetMetadataPolicies()) + foreach (var item in client.GetMetadataPolicies(new RequestContext())) { } } @@ -354,7 +354,7 @@ public void Example_GetMetadataPolicies_AllParameters() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - foreach (var item in client.GetMetadataPolicies()) + foreach (var item in client.GetMetadataPolicies(new RequestContext())) { } } @@ -367,7 +367,7 @@ public async Task Example_GetMetadataPolicies_Async() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - await foreach (var item in client.GetMetadataPoliciesAsync()) + await foreach (var item in client.GetMetadataPoliciesAsync(new RequestContext())) { } } @@ -380,7 +380,7 @@ public async Task Example_GetMetadataPolicies_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewMetadataPolicyClient(endpoint, "", credential); - await foreach (var item in client.GetMetadataPoliciesAsync()) + await foreach (var item in client.GetMetadataPoliciesAsync(new RequestContext())) { } } diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataRolesClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataRolesClient.cs index ba000faf2380..5ee30fb48e1b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataRolesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataRolesClient.cs @@ -27,7 +27,7 @@ public void Example_GetMetadataRoles() var endpoint = new Uri(""); var client = new PurviewMetadataRolesClient(endpoint, credential); - foreach (var item in client.GetMetadataRoles()) + foreach (var item in client.GetMetadataRoles(new RequestContext())) { } } @@ -40,7 +40,7 @@ public void Example_GetMetadataRoles_AllParameters() var endpoint = new Uri(""); var client = new PurviewMetadataRolesClient(endpoint, credential); - foreach (var item in client.GetMetadataRoles()) + foreach (var item in client.GetMetadataRoles(new RequestContext())) { } } @@ -53,7 +53,7 @@ public async Task Example_GetMetadataRoles_Async() var endpoint = new Uri(""); var client = new PurviewMetadataRolesClient(endpoint, credential); - await foreach (var item in client.GetMetadataRolesAsync()) + await foreach (var item in client.GetMetadataRolesAsync(new RequestContext())) { } } @@ -66,7 +66,7 @@ public async Task Example_GetMetadataRoles_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewMetadataRolesClient(endpoint, credential); - await foreach (var item in client.GetMetadataRolesAsync()) + await foreach (var item in client.GetMetadataRolesAsync(new RequestContext())) { } } diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs index 9c7d961e9645..7373bdbd3f05 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs @@ -27,7 +27,7 @@ public void Example_GetResourceSetRule() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = client.GetResourceSetRule(); + Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetResourceSetRule_AllParameters() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = client.GetResourceSetRule(); + Response response = client.GetResourceSetRule(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); @@ -139,7 +139,7 @@ public async Task Example_GetResourceSetRule_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = await client.GetResourceSetRuleAsync(); + Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -153,7 +153,7 @@ public async Task Example_GetResourceSetRule_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewAccountClient(endpoint, credential).GetPurviewResourceSetRuleClient(); - Response response = await client.GetResourceSetRuleAsync(); + Response response = await client.GetResourceSetRuleAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("advancedResourceSet").GetProperty("modifiedAt").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs index f49cbad3c250..3c5a24ea2401 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs @@ -56,64 +56,64 @@ protected PurviewEntities() { } public virtual System.Threading.Tasks.Task AddClassificationsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response AddClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task AddClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddLabel(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddLabelAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadata(string guid, Azure.Core.RequestContent content, bool? isOverwrite = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, bool? isOverwrite = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response AddLabel(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task AddLabelAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response AddLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task AddLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadata(string guid, Azure.Core.RequestContent content, bool? isOverwrite, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, bool? isOverwrite, Azure.RequestContext context) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response CreateOrUpdateEntities(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateEntitiesAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteBusinessMetadata(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteBusinessMetadataAttributes(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteBusinessMetadataAttributesAsync(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteByGuids(System.Collections.Generic.IEnumerable guids, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByGuidsAsync(System.Collections.Generic.IEnumerable guids, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DeleteBusinessMetadata(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteBusinessMetadataAttributes(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteBusinessMetadataAttributesAsync(string guid, string bmName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteByGuids(System.Collections.Generic.IEnumerable guids, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByGuidsAsync(System.Collections.Generic.IEnumerable guids, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName, Azure.RequestContext context) { throw null; } public virtual Azure.Response DeleteClassification(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteClassificationAsync(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetByGuid(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByGuidAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetClassification(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationAsync(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetClassifications(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetHeader(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSampleBusinessMetadataTemplate(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSampleBusinessMetadataTemplateAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response ImportBusinessMetadata(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task ImportBusinessMetadataAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DeleteLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetByGuid(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guids, bool? minExtInfo, bool? ignoreRelationships, System.Collections.Generic.IEnumerable excludeRelationshipTypes, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guids, bool? minExtInfo, bool? ignoreRelationships, System.Collections.Generic.IEnumerable excludeRelationshipTypes, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetClassification(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationAsync(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetClassifications(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetHeader(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSampleBusinessMetadataTemplate(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSampleBusinessMetadataTemplateAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response ImportBusinessMetadata(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task ImportBusinessMetadataAsync(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } public virtual Azure.Response PartialUpdateEntityAttributeByGuid(string guid, string name, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response PartialUpdateEntityByUniqueAttributes(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response SetClassifications(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task SetClassificationsAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response SetLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task SetLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response SetLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task SetLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response SetLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task SetLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response SetLabelsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task SetLabelsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName, Azure.RequestContext context) { throw null; } public virtual Azure.Response UpdateClassifications(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateClassificationsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response UpdateClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestContext context = null) { throw null; } @@ -145,36 +145,36 @@ protected PurviewGlossaries() { } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response ExportGlossaryTermsAsCsv(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCategoryTerms(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCategoryTermsAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaries(int? limit = default(int?), int? offset = default(int?), string sort = null, bool? ignoreTermsAndCategories = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossariesAsync(int? limit = default(int?), int? offset = default(int?), string sort = null, bool? ignoreTermsAndCategories = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryGuid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryGuid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryCategories(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryCategory(string categoryGuid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoryAsync(string categoryGuid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypeList = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypeList = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetImportCsvOperationStatus(string operationGuid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetImportCsvOperationStatusAsync(string operationGuid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelatedCategories(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelatedTerms(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelatedTermsAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetCategoryTerms(string categoryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCategoryTermsAsync(string categoryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEntitiesAssignedWithTerm(string termGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaries(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossariesAsync(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossary(string glossaryGuid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryGuid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryCategories(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryCategory(string categoryGuid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoryAsync(string categoryGuid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy, System.Collections.Generic.IEnumerable excludeRelationshipTypeList, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy, System.Collections.Generic.IEnumerable excludeRelationshipTypeList, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryTermHeaders(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetImportCsvOperationStatus(string operationGuid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetImportCsvOperationStatusAsync(string operationGuid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRelatedCategories(string categoryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRelatedTerms(string termGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRelatedTermsAsync(string termGuid, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit, int? offset, bool? includeTermHierarchy, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit, int? offset, bool? includeTermHierarchy, Azure.RequestContext context) { throw null; } public virtual Azure.Operation ImportGlossaryTermsViaCsv(Azure.WaitUntil waitUntil, string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> ImportGlossaryTermsViaCsvAsync(Azure.WaitUntil waitUntil, string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation ImportGlossaryTermsViaCsvByGlossaryName(Azure.WaitUntil waitUntil, string glossaryName, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } @@ -198,12 +198,12 @@ public partial class PurviewLineages { protected PurviewLineages() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetLineageByUniqueAttribute(string typeName, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageByUniqueAttributeAsync(string typeName, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetLineageByUniqueAttribute(string typeName, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetLineageByUniqueAttributeAsync(string typeName, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, Azure.RequestContext context) { throw null; } + public virtual Azure.Response NextPageLineage(string guid, string direction, bool? getDerivedLineage, int? offset, int? limit, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage, int? offset, int? limit, Azure.RequestContext context) { throw null; } } public partial class PurviewRelationships { @@ -213,8 +213,8 @@ protected PurviewRelationships() { } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string guid, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPurviewRelationship(string guid, bool? extendedInfo = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPurviewRelationshipAsync(string guid, bool? extendedInfo = default(bool?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetPurviewRelationship(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPurviewRelationshipAsync(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } public virtual Azure.Response Update(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } } @@ -228,42 +228,42 @@ protected PurviewTypes() { } public virtual System.Threading.Tasks.Task DeleteTypeByNameAsync(string name, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteTypeDefinitions(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteTypeDefinitionsAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAllTypeDefinitions(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetBusinessMetadataDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetBusinessMetadataDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetBusinessMetadataDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetBusinessMetadataDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetClassificationDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetClassificationDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEntityDefinitionByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefinitionByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEntityDefinitionByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefinitionByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEnumDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnumDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEnumDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnumDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelationshipDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelationshipDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetStructDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetStructDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetStructDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetStructDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTermTemplateDefByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermTemplateDefByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTermTemplateDefByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermTemplateDefByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionByGuid(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionByGuidAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionByName(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionByNameAsync(string name, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionHeaders(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAllTypeDefinitions(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetBusinessMetadataDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetBusinessMetadataDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetBusinessMetadataDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetBusinessMetadataDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetClassificationDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetClassificationDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEntityDefinitionByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEntityDefinitionByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEnumDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEnumDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEnumDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEnumDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRelationshipDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRelationshipDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRelationshipDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRelationshipDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetStructDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetStructDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetStructDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetStructDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTermTemplateDefByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTermTemplateDefByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTermTemplateDefByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTermTemplateDefByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTypeDefinitionByGuid(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByGuidAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTypeDefinitionByName(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByNameAsync(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTypeDefinitionHeaders(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } public virtual Azure.Response UpdateAtlasTypeDefinitions(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateAtlasTypeDefinitionsAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } } 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 2ed1b466ef47..99bb61749f9d 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 @@ -441,18 +441,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetByGuidsAsync(new String[]{""}); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByGuidsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = await client.GetByGuidsAsync(new String[]{""}, true, true, new String[]{""}); +Response response = await client.GetByGuidsAsync(new String[]{""}, true, true, new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -552,18 +541,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetByGuids(new String[]{""}); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByGuids with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = client.GetByGuids(new String[]{""}, true, true, new String[]{""}); +Response response = client.GetByGuids(new String[]{""}, true, true, new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1099,7 +1077,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.DeleteByGuidsAsync(new String[]{""}); +Response response = await client.DeleteByGuidsAsync(new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1176,7 +1154,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.DeleteByGuids(new String[]{""}); +Response response = client.DeleteByGuids(new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1355,18 +1333,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetByGuidAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByGuidAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = await client.GetByGuidAsync("", true, true); +Response response = await client.GetByGuidAsync("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1466,18 +1433,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetByGuid(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByGuid with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = client.GetByGuid("", true, true); +Response response = client.GetByGuid("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1735,7 +1691,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.DeleteByGuidAsync(""); +Response response = await client.DeleteByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1812,7 +1768,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.DeleteByGuid(""); +Response response = client.DeleteByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1889,7 +1845,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetClassificationAsync("", ""); +Response response = await client.GetClassificationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityGuid").ToString()); @@ -1914,7 +1870,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetClassification("", ""); +Response response = client.GetClassification("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityGuid").ToString()); @@ -1965,7 +1921,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetClassificationsAsync(""); +Response response = await client.GetClassificationsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("list")[0].ToString()); @@ -1985,7 +1941,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetClassifications(""); +Response response = client.GetClassifications("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("list")[0].ToString()); @@ -2153,18 +2109,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetByUniqueAttributesAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByUniqueAttributesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = await client.GetByUniqueAttributesAsync("", true, true, ""); +Response response = await client.GetByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -2264,18 +2209,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetByUniqueAttributes(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetByUniqueAttributes with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = client.GetByUniqueAttributes("", true, true, ""); +Response response = client.GetByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -2807,18 +2741,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.DeleteByUniqueAttributeAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call DeleteByUniqueAttributeAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = await client.DeleteByUniqueAttributeAsync("", ""); +Response response = await client.DeleteByUniqueAttributeAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -2895,18 +2818,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.DeleteByUniqueAttribute(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call DeleteByUniqueAttribute with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = client.DeleteByUniqueAttribute("", ""); +Response response = client.DeleteByUniqueAttribute("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -3407,18 +3319,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetEntitiesByUniqueAttributesAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetEntitiesByUniqueAttributesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = await client.GetEntitiesByUniqueAttributesAsync("", true, true, ""); +Response response = await client.GetEntitiesByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -3518,18 +3419,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetEntitiesByUniqueAttributes(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetEntitiesByUniqueAttributes with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - -Response response = client.GetEntitiesByUniqueAttributes("", true, true, ""); +Response response = client.GetEntitiesByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -3629,7 +3519,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetHeaderAsync(""); +Response response = await client.GetHeaderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("classificationNames")[0].ToString()); @@ -3674,7 +3564,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetHeader(""); +Response response = client.GetHeader("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("classificationNames")[0].ToString()); @@ -3723,7 +3613,7 @@ var data = new { key = new {}, }; -Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data)); +Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3740,7 +3630,7 @@ var data = new { key = new {}, }; -Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); +Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3757,20 +3647,7 @@ var data = new { key = new {}, }; -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); +Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3787,20 +3664,7 @@ var data = new { key = new {}, }; -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); +Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3817,7 +3681,7 @@ var data = new { key = new {}, }; -Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); +Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3834,7 +3698,7 @@ var data = new { key = new {}, }; -Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); +Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3851,7 +3715,7 @@ var data = new { key = new {}, }; -Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); +Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3868,20 +3732,20 @@ var data = new { key = new {}, }; -Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); +Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> -This sample shows how to call GetSampleBusinessMetadataTemplateAsync and parse the result. +This sample shows how to call GetSampleBusinessMetadataTemplateAsync with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = await client.GetSampleBusinessMetadataTemplateAsync(); +Response response = await client.GetSampleBusinessMetadataTemplateAsync(new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -3894,13 +3758,13 @@ if (response.ContentStream != null) -This sample shows how to call GetSampleBusinessMetadataTemplate and parse the result. +This sample shows how to call GetSampleBusinessMetadataTemplate with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); -Response response = client.GetSampleBusinessMetadataTemplate(); +Response response = client.GetSampleBusinessMetadataTemplate(new RequestContext()); if (response.ContentStream != null) { using(Stream outFileStream = File.OpenWrite("")) @@ -3913,7 +3777,7 @@ if (response.ContentStream != null) -This sample shows how to call ImportBusinessMetadataAsync with required request content and parse the result. +This sample shows how to call ImportBusinessMetadataAsync with required parameters and request content and parse the result. "); @@ -3921,7 +3785,7 @@ var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesCl var data = File.OpenRead(""); -Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data)); +Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -3937,7 +3801,7 @@ Console.WriteLine(result.GetProperty("successImportInfoList")[0].GetProperty("re -This sample shows how to call ImportBusinessMetadata with required request content and parse the result. +This sample shows how to call ImportBusinessMetadata with required parameters and request content and parse the result. "); @@ -3945,7 +3809,7 @@ var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesCl var data = File.OpenRead(""); -Response response = client.ImportBusinessMetadata(RequestContent.Create(data)); +Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -3971,7 +3835,7 @@ var data = new[] { "" }; -Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); +Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -3988,7 +3852,7 @@ var data = new[] { "" }; -Response response = client.DeleteLabels("", RequestContent.Create(data)); +Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4005,7 +3869,7 @@ var data = new[] { "" }; -Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); +Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4022,7 +3886,7 @@ var data = new[] { "" }; -Response response = client.SetLabels("", RequestContent.Create(data)); +Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4039,7 +3903,7 @@ var data = new[] { "" }; -Response response = await client.AddLabelAsync("", RequestContent.Create(data)); +Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4056,7 +3920,7 @@ var data = new[] { "" }; -Response response = client.AddLabel("", RequestContent.Create(data)); +Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4073,20 +3937,7 @@ var data = new[] { "" }; -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), ""); +Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4103,20 +3954,7 @@ var data = new[] { "" }; -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), ""); +Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4133,20 +3971,7 @@ var data = new[] { "" }; -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), ""); +Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4163,20 +3988,7 @@ var data = new[] { "" }; -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), ""); +Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4193,20 +4005,7 @@ var data = new[] { "" }; -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), ""); +Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> @@ -4223,20 +4022,7 @@ var data = new[] { "" }; -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), ""); +Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); ]]> diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml index 7ced673ecb89..f7c970aa0ad2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml @@ -3,24 +3,13 @@ -This sample shows how to call GetGlossariesAsync and parse the result. +This sample shows how to call GetGlossariesAsync with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossariesAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossariesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossariesAsync(1234, 1234, "", true); +Response response = await client.GetGlossariesAsync(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -60,24 +49,13 @@ Console.WriteLine(result[0].GetProperty("guid").ToString()); -This sample shows how to call GetGlossaries and parse the result. +This sample shows how to call GetGlossaries with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaries(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaries with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaries(1234, 1234, "", true); +Response response = client.GetGlossaries(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -1125,7 +1103,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryCategoryAsync(""); +Response response = await client.GetGlossaryCategoryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("anchor").GetProperty("displayText").ToString()); @@ -1177,7 +1155,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryCategory(""); +Response response = client.GetGlossaryCategory("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("anchor").GetProperty("displayText").ToString()); @@ -1627,18 +1605,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetRelatedCategoriesAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> -This sample shows how to call GetRelatedCategoriesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetRelatedCategoriesAsync("", 1234, 1234, ""); +Response response = await client.GetRelatedCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("categoryGuid").ToString()); @@ -1657,18 +1624,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetRelatedCategories(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> -This sample shows how to call GetRelatedCategories with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetRelatedCategories("", 1234, 1234, ""); +Response response = client.GetRelatedCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("categoryGuid").ToString()); @@ -1687,18 +1643,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetCategoryTermsAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetCategoryTermsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetCategoryTermsAsync("", 1234, 1234, ""); +Response response = await client.GetCategoryTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -1720,18 +1665,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetCategoryTerms(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetCategoryTerms with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetCategoryTerms("", 1234, 1234, ""); +Response response = client.GetCategoryTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -2639,18 +2573,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryTermAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetGlossaryTermAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossaryTermAsync("", true, new String[]{""}); +Response response = await client.GetGlossaryTermAsync("", true, new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("abbreviation").ToString()); @@ -2818,18 +2741,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryTerm(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetGlossaryTerm with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaryTerm("", true, new String[]{""}); +Response response = client.GetGlossaryTerm("", true, new String[]{""}, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("abbreviation").ToString()); @@ -5177,18 +5089,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetEntitiesAssignedWithTermAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetEntitiesAssignedWithTermAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetEntitiesAssignedWithTermAsync("", 1234, 1234, ""); +Response response = await client.GetEntitiesAssignedWithTermAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("displayText").ToString()); @@ -5213,18 +5114,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetEntitiesAssignedWithTerm(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetEntitiesAssignedWithTerm with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetEntitiesAssignedWithTerm("", 1234, 1234, ""); +Response response = client.GetEntitiesAssignedWithTerm("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("displayText").ToString()); @@ -5543,18 +5433,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetRelatedTermsAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> -This sample shows how to call GetRelatedTermsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetRelatedTermsAsync("", 1234, 1234, ""); +Response response = await client.GetRelatedTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("description").ToString()); @@ -5576,18 +5455,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetRelatedTerms(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> -This sample shows how to call GetRelatedTerms with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetRelatedTerms("", 1234, 1234, ""); +Response response = client.GetRelatedTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("description").ToString()); @@ -5609,7 +5477,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryAsync(""); +Response response = await client.GetGlossaryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -5655,7 +5523,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossary(""); +Response response = client.GetGlossary("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -6231,18 +6099,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryCategoriesAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryCategoriesAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossaryCategoriesAsync("", 1234, 1234, ""); +Response response = await client.GetGlossaryCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("anchor").GetProperty("displayText").ToString()); @@ -6294,18 +6151,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryCategories(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryCategories with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaryCategories("", 1234, 1234, ""); +Response response = client.GetGlossaryCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("anchor").GetProperty("displayText").ToString()); @@ -6357,18 +6203,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryCategoriesHeadersAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryCategoriesHeadersAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossaryCategoriesHeadersAsync("", 1234, 1234, ""); +Response response = await client.GetGlossaryCategoriesHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categoryGuid").ToString()); @@ -6387,18 +6222,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryCategoriesHeaders(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryCategoriesHeaders with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaryCategoriesHeaders("", 1234, 1234, ""); +Response response = client.GetGlossaryCategoriesHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categoryGuid").ToString()); @@ -6417,18 +6241,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetDetailedGlossaryAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetDetailedGlossaryAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetDetailedGlossaryAsync("", true); +Response response = await client.GetDetailedGlossaryAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categoryInfo").GetProperty("").GetProperty("anchor").GetProperty("displayText").ToString()); @@ -6666,18 +6479,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetDetailedGlossary(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetDetailedGlossary with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetDetailedGlossary("", true); +Response response = client.GetDetailedGlossary("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categoryInfo").GetProperty("").GetProperty("anchor").GetProperty("displayText").ToString()); @@ -7045,18 +6847,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryTermsAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryTermsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossaryTermsAsync("", true, 1234, 1234, ""); +Response response = await client.GetGlossaryTermsAsync("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -7224,18 +7015,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryTerms(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryTerms with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaryTerms("", true, 1234, 1234, ""); +Response response = client.GetGlossaryTerms("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -7403,18 +7183,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetGlossaryTermHeadersAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryTermHeadersAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetGlossaryTermHeadersAsync("", 1234, 1234, ""); +Response response = await client.GetGlossaryTermHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -7436,18 +7205,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetGlossaryTermHeaders(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetGlossaryTermHeaders with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetGlossaryTermHeaders("", 1234, 1234, ""); +Response response = client.GetGlossaryTermHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -7469,7 +7227,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetImportCsvOperationStatusAsync(""); +Response response = await client.GetImportCsvOperationStatusAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -7491,7 +7249,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetImportCsvOperationStatus(""); +Response response = client.GetImportCsvOperationStatus("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -7581,18 +7339,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = await client.GetTermsByGlossaryNameAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetTermsByGlossaryNameAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = await client.GetTermsByGlossaryNameAsync("", 1234, 1234, true); +Response response = await client.GetTermsByGlossaryNameAsync("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -7760,18 +7507,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); -Response response = client.GetTermsByGlossaryName(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetTermsByGlossaryName with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - -Response response = client.GetTermsByGlossaryName("", 1234, 1234, true); +Response response = client.GetTermsByGlossaryName("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewLineages.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewLineages.xml index 7a2c9fe46fd4..1b4c6b57c4da 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewLineages.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewLineages.xml @@ -9,18 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = await client.GetLineageGraphAsync("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLineageGraphAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = await client.GetLineageGraphAsync("", "", 1234, 1234, true, true); +Response response = await client.GetLineageGraphAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -78,18 +67,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = client.GetLineageGraph("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLineageGraph with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = client.GetLineageGraph("", "", 1234, 1234, true, true); +Response response = client.GetLineageGraph("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -147,18 +125,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = await client.NextPageLineageAsync("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call NextPageLineageAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = await client.NextPageLineageAsync("", "", true, 1234, 1234); +Response response = await client.NextPageLineageAsync("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -216,18 +183,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = client.NextPageLineage("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call NextPageLineage with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = client.NextPageLineage("", "", true, 1234, 1234); +Response response = client.NextPageLineage("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -285,18 +241,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = await client.GetLineageByUniqueAttributeAsync("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLineageByUniqueAttributeAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = await client.GetLineageByUniqueAttributeAsync("", "", 1234, 1234, true, true); +Response response = await client.GetLineageByUniqueAttributeAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -354,18 +299,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); -Response response = client.GetLineageByUniqueAttribute("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLineageByUniqueAttribute with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - -Response response = client.GetLineageByUniqueAttribute("", "", 1234, 1234, true, true); +Response response = client.GetLineageByUniqueAttribute("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml index e16c549ba394..c57449bbb2bf 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml @@ -445,18 +445,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); -Response response = await client.GetPurviewRelationshipAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetPurviewRelationshipAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - -Response response = await client.GetPurviewRelationshipAsync("", true); +Response response = await client.GetPurviewRelationshipAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("referredEntities").GetProperty("").GetProperty("classificationNames")[0].ToString()); @@ -520,18 +509,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); -Response response = client.GetPurviewRelationship(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetPurviewRelationship with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - -Response response = client.GetPurviewRelationship("", true); +Response response = client.GetPurviewRelationship("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("referredEntities").GetProperty("").GetProperty("classificationNames")[0].ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml index 24f912877c5e..272a37c553fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetBusinessMetadataDefByGuidAsync(""); +Response response = await client.GetBusinessMetadataDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -67,7 +67,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetBusinessMetadataDefByGuid(""); +Response response = client.GetBusinessMetadataDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -125,7 +125,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetBusinessMetadataDefByNameAsync(""); +Response response = await client.GetBusinessMetadataDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -183,7 +183,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetBusinessMetadataDefByName(""); +Response response = client.GetBusinessMetadataDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -241,7 +241,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetClassificationDefByGuidAsync(""); +Response response = await client.GetClassificationDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -302,7 +302,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetClassificationDefByGuid(""); +Response response = client.GetClassificationDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -363,7 +363,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetClassificationDefByNameAsync(""); +Response response = await client.GetClassificationDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -424,7 +424,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetClassificationDefByName(""); +Response response = client.GetClassificationDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -485,7 +485,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetEntityDefinitionByGuidAsync(""); +Response response = await client.GetEntityDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -561,7 +561,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetEntityDefinitionByGuid(""); +Response response = client.GetEntityDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -637,7 +637,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetEntityDefinitionByNameAsync(""); +Response response = await client.GetEntityDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -713,7 +713,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetEntityDefinitionByName(""); +Response response = client.GetEntityDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -789,7 +789,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetEnumDefByGuidAsync(""); +Response response = await client.GetEnumDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -837,7 +837,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetEnumDefByGuid(""); +Response response = client.GetEnumDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -885,7 +885,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetEnumDefByNameAsync(""); +Response response = await client.GetEnumDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -933,7 +933,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetEnumDefByName(""); +Response response = client.GetEnumDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -981,7 +981,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetRelationshipDefByGuidAsync(""); +Response response = await client.GetRelationshipDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1053,7 +1053,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetRelationshipDefByGuid(""); +Response response = client.GetRelationshipDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1125,7 +1125,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetRelationshipDefByNameAsync(""); +Response response = await client.GetRelationshipDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1197,7 +1197,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetRelationshipDefByName(""); +Response response = client.GetRelationshipDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1269,7 +1269,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetStructDefByGuidAsync(""); +Response response = await client.GetStructDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1327,7 +1327,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetStructDefByGuid(""); +Response response = client.GetStructDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1385,7 +1385,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetStructDefByNameAsync(""); +Response response = await client.GetStructDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1443,7 +1443,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetStructDefByName(""); +Response response = client.GetStructDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1501,7 +1501,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetTypeDefinitionByGuidAsync(""); +Response response = await client.GetTypeDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1545,7 +1545,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetTypeDefinitionByGuid(""); +Response response = client.GetTypeDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1589,7 +1589,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetTypeDefinitionByNameAsync(""); +Response response = await client.GetTypeDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1633,7 +1633,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetTypeDefinitionByName(""); +Response response = client.GetTypeDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1697,24 +1697,13 @@ Console.WriteLine(response.Status); -This sample shows how to call GetAllTypeDefinitionsAsync and parse the result. +This sample shows how to call GetAllTypeDefinitionsAsync with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetAllTypeDefinitionsAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetAllTypeDefinitionsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -Response response = await client.GetAllTypeDefinitionsAsync(true, ""); +Response response = await client.GetAllTypeDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("businessMetadataDefs")[0].GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -2055,24 +2044,13 @@ Console.WriteLine(result.GetProperty("termTemplateDefs")[0].GetProperty("lastMod -This sample shows how to call GetAllTypeDefinitions and parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -Response response = client.GetAllTypeDefinitions(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetAllTypeDefinitions with all parameters, and how to parse the result. +This sample shows how to call GetAllTypeDefinitions with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetAllTypeDefinitions(true, ""); +Response response = client.GetAllTypeDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("businessMetadataDefs")[0].GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5425,24 +5403,13 @@ Console.WriteLine(response.Status); -This sample shows how to call GetTypeDefinitionHeadersAsync and parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -Response response = await client.GetTypeDefinitionHeadersAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetTypeDefinitionHeadersAsync with all parameters, and how to parse the result. +This sample shows how to call GetTypeDefinitionHeadersAsync with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetTypeDefinitionHeadersAsync(true, ""); +Response response = await client.GetTypeDefinitionHeadersAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("category").ToString()); @@ -5453,24 +5420,13 @@ Console.WriteLine(result[0].GetProperty("name").ToString()); -This sample shows how to call GetTypeDefinitionHeaders and parse the result. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -Response response = client.GetTypeDefinitionHeaders(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetTypeDefinitionHeaders with all parameters, and how to parse the result. +This sample shows how to call GetTypeDefinitionHeaders with required parameters and parse the result. "); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetTypeDefinitionHeaders(true, ""); +Response response = client.GetTypeDefinitionHeaders(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("category").ToString()); @@ -5487,7 +5443,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetTermTemplateDefByGuidAsync(""); +Response response = await client.GetTermTemplateDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5545,7 +5501,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetTermTemplateDefByGuid(""); +Response response = client.GetTermTemplateDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5603,7 +5559,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = await client.GetTermTemplateDefByNameAsync(""); +Response response = await client.GetTermTemplateDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5661,7 +5617,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); -Response response = client.GetTermTemplateDefByName(""); +Response response = client.GetTermTemplateDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); 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 4292f5fdadac..35000a6bfe5d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs @@ -138,7 +138,7 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) + public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo, bool? ignoreRelationships, IEnumerable excludeRelationshipTypes, RequestContext context) { Argument.AssertNotNull(guids, nameof(guids)); @@ -175,7 +175,7 @@ public virtual async Task GetByGuidsAsync(IEnumerable guids, b /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) + public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo, bool? ignoreRelationships, IEnumerable excludeRelationshipTypes, RequestContext context) { Argument.AssertNotNull(guids, nameof(guids)); @@ -281,7 +281,7 @@ public virtual Response CreateOrUpdateEntities(RequestContent content, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteByGuidsAsync(IEnumerable guids, RequestContext context = null) + public virtual async Task DeleteByGuidsAsync(IEnumerable guids, RequestContext context) { Argument.AssertNotNull(guids, nameof(guids)); @@ -315,7 +315,7 @@ public virtual async Task DeleteByGuidsAsync(IEnumerable guids /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteByGuids(IEnumerable guids, RequestContext context = null) + public virtual Response DeleteByGuids(IEnumerable guids, RequestContext context) { Argument.AssertNotNull(guids, nameof(guids)); @@ -420,7 +420,7 @@ public virtual Response AddClassification(RequestContent content, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestContext context = null) + public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -457,7 +457,7 @@ public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetByGuid(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestContext context = null) + public virtual Response GetByGuid(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -576,7 +576,7 @@ public virtual Response PartialUpdateEntityAttributeByGuid(string guid, string n /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteByGuidAsync(string guid, RequestContext context = null) + public virtual async Task DeleteByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -611,7 +611,7 @@ public virtual async Task DeleteByGuidAsync(string guid, RequestContex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteByGuid(string guid, RequestContext context = null) + public virtual Response DeleteByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -647,7 +647,7 @@ public virtual Response DeleteByGuid(string guid, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestContext context = null) + public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); @@ -684,7 +684,7 @@ public virtual async Task GetClassificationAsync(string guid, string c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetClassification(string guid, string classificationName, RequestContext context = null) + public virtual Response GetClassification(string guid, string classificationName, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); @@ -794,7 +794,7 @@ public virtual Response DeleteClassification(string guid, string classificationN /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetClassificationsAsync(string guid, RequestContext context = null) + public virtual async Task GetClassificationsAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -829,7 +829,7 @@ public virtual async Task GetClassificationsAsync(string guid, Request /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetClassifications(string guid, RequestContext context = null) + public virtual Response GetClassifications(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1020,7 +1020,7 @@ public virtual Response UpdateClassifications(string guid, RequestContent conten /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestContext context = null) + public virtual async Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1063,7 +1063,7 @@ public virtual async Task GetByUniqueAttributesAsync(string typeName, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestContext context = null) + public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1194,7 +1194,7 @@ public virtual Response PartialUpdateEntityByUniqueAttributes(string typeName, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, RequestContext context = null) + public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1235,7 +1235,7 @@ public virtual async Task DeleteByUniqueAttributeAsync(string typeName /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, RequestContext context = null) + public virtual Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1579,7 +1579,7 @@ public virtual Response SetClassifications(RequestContent content, RequestContex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestContext context = null) + public virtual async Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1627,7 +1627,7 @@ public virtual async Task GetEntitiesByUniqueAttributesAsync(string ty /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestContext context = null) + public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -1662,7 +1662,7 @@ public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? min /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetHeaderAsync(string guid, RequestContext context = null) + public virtual async Task GetHeaderAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1697,7 +1697,7 @@ public virtual async Task GetHeaderAsync(string guid, RequestContext c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetHeader(string guid, RequestContext context = null) + public virtual Response GetHeader(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1733,7 +1733,7 @@ public virtual Response GetHeader(string guid, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteBusinessMetadataAsync(string guid, RequestContent content, RequestContext context = null) + public virtual async Task DeleteBusinessMetadataAsync(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual Response DeleteBusinessMetadata(string guid, RequestContent content, RequestContext context) { 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 = null, RequestContext context = null) + public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, RequestContent content, bool? isOverwrite, RequestContext context) { 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 = null, RequestContext context = null) + public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent content, bool? isOverwrite, RequestContext context) { 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 = null) + public virtual async Task DeleteBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context) { 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 = null) + public virtual Response DeleteBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context) { 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 = null) + public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context) { 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 = null) + public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(bmName, nameof(bmName)); @@ -2027,7 +2027,7 @@ public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, strin /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSampleBusinessMetadataTemplateAsync(RequestContext context = null) + public virtual async Task GetSampleBusinessMetadataTemplateAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewEntities.GetSampleBusinessMetadataTemplate"); scope.Start(); @@ -2057,7 +2057,7 @@ public virtual async Task GetSampleBusinessMetadataTemplateAsync(Reque /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSampleBusinessMetadataTemplate(RequestContext context = null) + public virtual Response GetSampleBusinessMetadataTemplate(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewEntities.GetSampleBusinessMetadataTemplate"); scope.Start(); @@ -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 = null) + public virtual async Task ImportBusinessMetadataAsync(RequestContent content, RequestContext context) { 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 = null) + public virtual Response ImportBusinessMetadata(RequestContent content, RequestContext context) { 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 = null) + public virtual async Task DeleteLabelsAsync(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual Response DeleteLabels(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual async Task SetLabelsAsync(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual Response SetLabels(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual async Task AddLabelAsync(string guid, RequestContent content, RequestContext context) { 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 = null) + public virtual Response AddLabel(string guid, RequestContent content, RequestContext context) { 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 = null, RequestContext context = null) + public virtual async Task DeleteLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { 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 = null, RequestContext context = null) + public virtual Response DeleteLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { 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 = null, RequestContext context = null) + public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { 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 = null, RequestContext context = null) + public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { 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 = null, RequestContext context = null) + public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { 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 = null, RequestContext context = null) + public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs index 92fddcdccc79..24d401e98ec4 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs @@ -68,7 +68,7 @@ internal PurviewGlossaries(ClientDiagnostics clientDiagnostics, HttpPipeline pip /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossariesAsync(int? limit = null, int? offset = null, string sort = null, bool? ignoreTermsAndCategories = null, RequestContext context = null) + public virtual async Task GetGlossariesAsync(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); @@ -102,7 +102,7 @@ public virtual async Task GetGlossariesAsync(int? limit = null, int? o /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaries(int? limit = null, int? offset = null, string sort = null, bool? ignoreTermsAndCategories = null, RequestContext context = null) + public virtual Response GetGlossaries(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); @@ -339,7 +339,7 @@ public virtual Response CreateGlossaryCategory(RequestContent content, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryCategoryAsync(string categoryGuid, RequestContext context = null) + public virtual async Task GetGlossaryCategoryAsync(string categoryGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -374,7 +374,7 @@ public virtual async Task GetGlossaryCategoryAsync(string categoryGuid /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryCategory(string categoryGuid, RequestContext context = null) + public virtual Response GetGlossaryCategory(string categoryGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -630,7 +630,7 @@ public virtual Response PartialUpdateGlossaryCategory(string categoryGuid, Reque /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetRelatedCategoriesAsync(string categoryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -668,7 +668,7 @@ public virtual async Task GetRelatedCategoriesAsync(string categoryGui /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRelatedCategories(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetRelatedCategories(string categoryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -706,7 +706,7 @@ public virtual Response GetRelatedCategories(string categoryGuid, int? limit = n /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCategoryTermsAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetCategoryTermsAsync(string categoryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -744,7 +744,7 @@ public virtual async Task GetCategoryTermsAsync(string categoryGuid, i /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCategoryTerms(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetCategoryTerms(string categoryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(categoryGuid, nameof(categoryGuid)); @@ -851,7 +851,7 @@ public virtual Response CreateGlossaryTerm(RequestContent content, bool? include /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = null, IEnumerable excludeRelationshipTypeList = null, RequestContext context = null) + public virtual async Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy, IEnumerable excludeRelationshipTypeList, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -888,7 +888,7 @@ public virtual async Task GetGlossaryTermAsync(string termGuid, bool? /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = null, IEnumerable excludeRelationshipTypeList = null, RequestContext context = null) + public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy, IEnumerable excludeRelationshipTypeList, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -1218,7 +1218,7 @@ public virtual Response CreateGlossaryTerms(RequestContent content, bool? includ /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -1256,7 +1256,7 @@ public virtual async Task GetEntitiesAssignedWithTermAsync(string term /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -1516,7 +1516,7 @@ public virtual Response DeleteTermAssignmentFromEntities(string termGuid, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRelatedTermsAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetRelatedTermsAsync(string termGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -1554,7 +1554,7 @@ public virtual async Task GetRelatedTermsAsync(string termGuid, int? l /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetRelatedTerms(string termGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(termGuid, nameof(termGuid)); @@ -1589,7 +1589,7 @@ public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryAsync(string glossaryGuid, RequestContext context = null) + public virtual async Task GetGlossaryAsync(string glossaryGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1624,7 +1624,7 @@ public virtual async Task GetGlossaryAsync(string glossaryGuid, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossary(string glossaryGuid, RequestContext context = null) + public virtual Response GetGlossary(string glossaryGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1806,7 +1806,7 @@ public virtual Response DeleteGlossary(string glossaryGuid, RequestContext conte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1844,7 +1844,7 @@ public virtual async Task GetGlossaryCategoriesAsync(string glossaryGu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1882,7 +1882,7 @@ public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1920,7 +1920,7 @@ public virtual async Task GetGlossaryCategoriesHeadersAsync(string glo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1956,7 +1956,7 @@ public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? l /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -1992,7 +1992,7 @@ public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -2107,7 +2107,7 @@ public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestConten /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -2146,7 +2146,7 @@ public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, b /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -2184,7 +2184,7 @@ public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermH /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual async Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -2222,7 +2222,7 @@ public virtual async Task GetGlossaryTermHeadersAsync(string glossaryG /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestContext context = null) + public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit, int? offset, string sort, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryGuid, nameof(glossaryGuid)); @@ -2257,7 +2257,7 @@ public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetImportCsvOperationStatusAsync(string operationGuid, RequestContext context = null) + public virtual async Task GetImportCsvOperationStatusAsync(string operationGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(operationGuid, nameof(operationGuid)); @@ -2292,7 +2292,7 @@ public virtual async Task GetImportCsvOperationStatusAsync(string oper /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetImportCsvOperationStatus(string operationGuid, RequestContext context = null) + public virtual Response GetImportCsvOperationStatus(string operationGuid, RequestContext context) { Argument.AssertNotNullOrEmpty(operationGuid, nameof(operationGuid)); @@ -2406,7 +2406,7 @@ public virtual Response ExportGlossaryTermsAsCsv(string glossaryGuid, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit, int? offset, bool? includeTermHierarchy, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryName, nameof(glossaryName)); @@ -2444,7 +2444,7 @@ public virtual async Task GetTermsByGlossaryNameAsync(string glossaryN /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit, int? offset, bool? includeTermHierarchy, RequestContext context) { Argument.AssertNotNullOrEmpty(glossaryName, nameof(glossaryName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewLineages.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewLineages.cs index a69ebda82796..3ee8f0c73290 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewLineages.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewLineages.cs @@ -71,7 +71,7 @@ internal PurviewLineages(ClientDiagnostics clientDiagnostics, HttpPipeline pipel /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestContext context = null) + public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(direction, nameof(direction)); @@ -112,7 +112,7 @@ public virtual async Task GetLineageGraphAsync(string guid, string dir /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetLineageGraph(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestContext context = null) + public virtual Response GetLineageGraph(string guid, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(direction, nameof(direction)); @@ -152,7 +152,7 @@ public virtual Response GetLineageGraph(string guid, string direction, int? dept /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestContext context = null) + public virtual async Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage, int? offset, int? limit, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(direction, nameof(direction)); @@ -192,7 +192,7 @@ public virtual async Task NextPageLineageAsync(string guid, string dir /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestContext context = null) + public virtual Response NextPageLineage(string guid, string direction, bool? getDerivedLineage, int? offset, int? limit, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(direction, nameof(direction)); @@ -239,7 +239,7 @@ public virtual Response NextPageLineage(string guid, string direction, bool? get /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetLineageByUniqueAttributeAsync(string typeName, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestContext context = null) + public virtual async Task GetLineageByUniqueAttributeAsync(string typeName, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(direction, nameof(direction)); @@ -286,7 +286,7 @@ public virtual async Task GetLineageByUniqueAttributeAsync(string type /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetLineageByUniqueAttribute(string typeName, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestContext context = null) + public virtual Response GetLineageByUniqueAttribute(string typeName, string direction, int? depth, int? width, bool? includeParent, bool? getDerivedLineage, RequestContext context) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(direction, nameof(direction)); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs index 9c4fbdab7bca..e249f36bc364 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs @@ -200,7 +200,7 @@ public virtual Response Update(RequestContent content, RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPurviewRelationshipAsync(string guid, bool? extendedInfo = null, RequestContext context = null) + public virtual async Task GetPurviewRelationshipAsync(string guid, bool? extendedInfo, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -236,7 +236,7 @@ public virtual async Task GetPurviewRelationshipAsync(string guid, boo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPurviewRelationship(string guid, bool? extendedInfo = null, RequestContext context = null) + public virtual Response GetPurviewRelationship(string guid, bool? extendedInfo, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs index 99a1765ff930..3af65f3bf587 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs @@ -66,7 +66,7 @@ internal PurviewTypes(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetBusinessMetadataDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetBusinessMetadataDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -101,7 +101,7 @@ public virtual async Task GetBusinessMetadataDefByGuidAsync(string gui /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetBusinessMetadataDefByGuid(string guid, RequestContext context = null) + public virtual Response GetBusinessMetadataDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -136,7 +136,7 @@ public virtual Response GetBusinessMetadataDefByGuid(string guid, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetBusinessMetadataDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetBusinessMetadataDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -171,7 +171,7 @@ public virtual async Task GetBusinessMetadataDefByNameAsync(string nam /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetBusinessMetadataDefByName(string name, RequestContext context = null) + public virtual Response GetBusinessMetadataDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -206,7 +206,7 @@ public virtual Response GetBusinessMetadataDefByName(string name, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetClassificationDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetClassificationDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -241,7 +241,7 @@ public virtual async Task GetClassificationDefByGuidAsync(string guid, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetClassificationDefByGuid(string guid, RequestContext context = null) + public virtual Response GetClassificationDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -276,7 +276,7 @@ public virtual Response GetClassificationDefByGuid(string guid, RequestContext c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetClassificationDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetClassificationDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -311,7 +311,7 @@ public virtual async Task GetClassificationDefByNameAsync(string name, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetClassificationDefByName(string name, RequestContext context = null) + public virtual Response GetClassificationDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -346,7 +346,7 @@ public virtual Response GetClassificationDefByName(string name, RequestContext c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEntityDefinitionByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetEntityDefinitionByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -381,7 +381,7 @@ public virtual async Task GetEntityDefinitionByGuidAsync(string guid, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEntityDefinitionByGuid(string guid, RequestContext context = null) + public virtual Response GetEntityDefinitionByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -416,7 +416,7 @@ public virtual Response GetEntityDefinitionByGuid(string guid, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEntityDefinitionByNameAsync(string name, RequestContext context = null) + public virtual async Task GetEntityDefinitionByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -451,7 +451,7 @@ public virtual async Task GetEntityDefinitionByNameAsync(string name, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEntityDefinitionByName(string name, RequestContext context = null) + public virtual Response GetEntityDefinitionByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -486,7 +486,7 @@ public virtual Response GetEntityDefinitionByName(string name, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEnumDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetEnumDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -521,7 +521,7 @@ public virtual async Task GetEnumDefByGuidAsync(string guid, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEnumDefByGuid(string guid, RequestContext context = null) + public virtual Response GetEnumDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -556,7 +556,7 @@ public virtual Response GetEnumDefByGuid(string guid, RequestContext context = n /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEnumDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetEnumDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -591,7 +591,7 @@ public virtual async Task GetEnumDefByNameAsync(string name, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEnumDefByName(string name, RequestContext context = null) + public virtual Response GetEnumDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -626,7 +626,7 @@ public virtual Response GetEnumDefByName(string name, RequestContext context = n /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRelationshipDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetRelationshipDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -661,7 +661,7 @@ public virtual async Task GetRelationshipDefByGuidAsync(string guid, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRelationshipDefByGuid(string guid, RequestContext context = null) + public virtual Response GetRelationshipDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -696,7 +696,7 @@ public virtual Response GetRelationshipDefByGuid(string guid, RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRelationshipDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetRelationshipDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -731,7 +731,7 @@ public virtual async Task GetRelationshipDefByNameAsync(string name, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRelationshipDefByName(string name, RequestContext context = null) + public virtual Response GetRelationshipDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -766,7 +766,7 @@ public virtual Response GetRelationshipDefByName(string name, RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetStructDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetStructDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -801,7 +801,7 @@ public virtual async Task GetStructDefByGuidAsync(string guid, Request /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetStructDefByGuid(string guid, RequestContext context = null) + public virtual Response GetStructDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -836,7 +836,7 @@ public virtual Response GetStructDefByGuid(string guid, RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetStructDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetStructDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -871,7 +871,7 @@ public virtual async Task GetStructDefByNameAsync(string name, Request /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetStructDefByName(string name, RequestContext context = null) + public virtual Response GetStructDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -906,7 +906,7 @@ public virtual Response GetStructDefByName(string name, RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTypeDefinitionByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetTypeDefinitionByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -941,7 +941,7 @@ public virtual async Task GetTypeDefinitionByGuidAsync(string guid, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTypeDefinitionByGuid(string guid, RequestContext context = null) + public virtual Response GetTypeDefinitionByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -976,7 +976,7 @@ public virtual Response GetTypeDefinitionByGuid(string guid, RequestContext cont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTypeDefinitionByNameAsync(string name, RequestContext context = null) + public virtual async Task GetTypeDefinitionByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -1011,7 +1011,7 @@ public virtual async Task GetTypeDefinitionByNameAsync(string name, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTypeDefinitionByName(string name, RequestContext context = null) + public virtual Response GetTypeDefinitionByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -1118,7 +1118,7 @@ public virtual Response DeleteTypeByName(string name, RequestContext context = n /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = null, string type = null, RequestContext context = null) + public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate, string type, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); @@ -1153,7 +1153,7 @@ public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTerm /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate = null, string type = null, RequestContext context = null) + public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate, string type, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); @@ -1394,7 +1394,7 @@ public virtual Response DeleteTypeDefinitions(RequestContent content, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = null, string type = null, RequestContext context = null) + public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate, string type, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); @@ -1429,7 +1429,7 @@ public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeT /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = null, string type = null, RequestContext context = null) + public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate, string type, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); @@ -1462,7 +1462,7 @@ public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = nul /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTermTemplateDefByGuidAsync(string guid, RequestContext context = null) + public virtual async Task GetTermTemplateDefByGuidAsync(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1497,7 +1497,7 @@ public virtual async Task GetTermTemplateDefByGuidAsync(string guid, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTermTemplateDefByGuid(string guid, RequestContext context = null) + public virtual Response GetTermTemplateDefByGuid(string guid, RequestContext context) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1532,7 +1532,7 @@ public virtual Response GetTermTemplateDefByGuid(string guid, RequestContext con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTermTemplateDefByNameAsync(string name, RequestContext context = null) + public virtual async Task GetTermTemplateDefByNameAsync(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -1567,7 +1567,7 @@ public virtual async Task GetTermTemplateDefByNameAsync(string name, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTermTemplateDefByName(string name, RequestContext context = null) + public virtual Response GetTermTemplateDefByName(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); 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 a32fea0b75b5..220b38f87b3b 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 @@ -495,7 +495,7 @@ public void Example_GetByGuids() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByGuids(new string[] { "" }); + Response response = client.GetByGuids(new string[] { "" }, true, true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -509,7 +509,7 @@ public void Example_GetByGuids_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByGuids(new string[] { "" }, true, true, new string[] { "" }); + Response response = client.GetByGuids(new string[] { "" }, true, true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -608,7 +608,7 @@ public async Task Example_GetByGuids_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByGuidsAsync(new string[] { "" }); + Response response = await client.GetByGuidsAsync(new string[] { "" }, true, true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -622,7 +622,7 @@ public async Task Example_GetByGuids_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByGuidsAsync(new string[] { "" }, true, true, new string[] { "" }); + Response response = await client.GetByGuidsAsync(new string[] { "" }, true, true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1179,7 +1179,7 @@ public void Example_DeleteByGuids() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByGuids(new string[] { "" }); + Response response = client.DeleteByGuids(new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1193,7 +1193,7 @@ public void Example_DeleteByGuids_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByGuids(new string[] { "" }); + Response response = client.DeleteByGuids(new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1269,7 +1269,7 @@ public async Task Example_DeleteByGuids_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByGuidsAsync(new string[] { "" }); + Response response = await client.DeleteByGuidsAsync(new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1283,7 +1283,7 @@ public async Task Example_DeleteByGuids_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByGuidsAsync(new string[] { "" }); + Response response = await client.DeleteByGuidsAsync(new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1473,7 +1473,7 @@ public void Example_GetByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByGuid(""); + Response response = client.GetByGuid("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1487,7 +1487,7 @@ public void Example_GetByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByGuid("", true, true); + Response response = client.GetByGuid("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1586,7 +1586,7 @@ public async Task Example_GetByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByGuidAsync(""); + Response response = await client.GetByGuidAsync("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1600,7 +1600,7 @@ public async Task Example_GetByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByGuidAsync("", true, true); + Response response = await client.GetByGuidAsync("", true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -1887,7 +1887,7 @@ public void Example_DeleteByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByGuid(""); + Response response = client.DeleteByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1901,7 +1901,7 @@ public void Example_DeleteByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByGuid(""); + Response response = client.DeleteByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -1977,7 +1977,7 @@ public async Task Example_DeleteByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByGuidAsync(""); + Response response = await client.DeleteByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1991,7 +1991,7 @@ public async Task Example_DeleteByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByGuidAsync(""); + Response response = await client.DeleteByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -2067,7 +2067,7 @@ public void Example_GetClassification() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetClassification("", ""); + Response response = client.GetClassification("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2081,7 +2081,7 @@ public void Example_GetClassification_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetClassification("", ""); + Response response = client.GetClassification("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityGuid").ToString()); @@ -2105,7 +2105,7 @@ public async Task Example_GetClassification_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetClassificationAsync("", ""); + Response response = await client.GetClassificationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2119,7 +2119,7 @@ public async Task Example_GetClassification_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetClassificationAsync("", ""); + Response response = await client.GetClassificationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityGuid").ToString()); @@ -2191,7 +2191,7 @@ public void Example_GetClassifications() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetClassifications(""); + Response response = client.GetClassifications("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2205,7 +2205,7 @@ public void Example_GetClassifications_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetClassifications(""); + Response response = client.GetClassifications("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("list")[0].ToString()); @@ -2224,7 +2224,7 @@ public async Task Example_GetClassifications_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetClassificationsAsync(""); + Response response = await client.GetClassificationsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2238,7 +2238,7 @@ public async Task Example_GetClassifications_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetClassificationsAsync(""); + Response response = await client.GetClassificationsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("list")[0].ToString()); @@ -2465,7 +2465,7 @@ public void Example_GetByUniqueAttributes() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByUniqueAttributes(""); + Response response = client.GetByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2479,7 +2479,7 @@ public void Example_GetByUniqueAttributes_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetByUniqueAttributes("", true, true, ""); + Response response = client.GetByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -2578,7 +2578,7 @@ public async Task Example_GetByUniqueAttributes_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByUniqueAttributesAsync(""); + Response response = await client.GetByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2592,7 +2592,7 @@ public async Task Example_GetByUniqueAttributes_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetByUniqueAttributesAsync("", true, true, ""); + Response response = await client.GetByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entity").GetProperty("businessAttributes").GetProperty("").ToString()); @@ -3159,7 +3159,7 @@ public void Example_DeleteByUniqueAttribute() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByUniqueAttribute(""); + Response response = client.DeleteByUniqueAttribute("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -3173,7 +3173,7 @@ public void Example_DeleteByUniqueAttribute_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.DeleteByUniqueAttribute("", ""); + Response response = client.DeleteByUniqueAttribute("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -3249,7 +3249,7 @@ public async Task Example_DeleteByUniqueAttribute_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByUniqueAttributeAsync(""); + Response response = await client.DeleteByUniqueAttributeAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -3263,7 +3263,7 @@ public async Task Example_DeleteByUniqueAttribute_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.DeleteByUniqueAttributeAsync("", ""); + Response response = await client.DeleteByUniqueAttributeAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("guidAssignments").GetProperty("").ToString()); @@ -3787,7 +3787,7 @@ public void Example_GetEntitiesByUniqueAttributes() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetEntitiesByUniqueAttributes(""); + Response response = client.GetEntitiesByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -3801,7 +3801,7 @@ public void Example_GetEntitiesByUniqueAttributes_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetEntitiesByUniqueAttributes("", true, true, ""); + Response response = client.GetEntitiesByUniqueAttributes("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -3900,7 +3900,7 @@ public async Task Example_GetEntitiesByUniqueAttributes_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetEntitiesByUniqueAttributesAsync(""); + Response response = await client.GetEntitiesByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -3914,7 +3914,7 @@ public async Task Example_GetEntitiesByUniqueAttributes_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetEntitiesByUniqueAttributesAsync("", true, true, ""); + Response response = await client.GetEntitiesByUniqueAttributesAsync("", true, true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entities")[0].GetProperty("businessAttributes").GetProperty("").ToString()); @@ -4013,7 +4013,7 @@ public void Example_GetHeader() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetHeader(""); + Response response = client.GetHeader("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -4027,7 +4027,7 @@ public void Example_GetHeader_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetHeader(""); + Response response = client.GetHeader("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("classificationNames")[0].ToString()); @@ -4071,7 +4071,7 @@ public async Task Example_GetHeader_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetHeaderAsync(""); + Response response = await client.GetHeaderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -4085,7 +4085,7 @@ public async Task Example_GetHeader_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetHeaderAsync(""); + Response response = await client.GetHeaderAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("classificationNames")[0].ToString()); @@ -4134,7 +4134,7 @@ public void Example_DeleteBusinessMetadata() key = new { }, }; - Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); + Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4151,7 +4151,7 @@ public void Example_DeleteBusinessMetadata_AllParameters() key = new { }, }; - Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); + Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4168,7 +4168,7 @@ public async Task Example_DeleteBusinessMetadata_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data)); + Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4202,7 +4202,7 @@ public void Example_AddOrUpdateBusinessMetadata() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data)); + Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); Console.WriteLine(response.Status); } @@ -4219,7 +4219,7 @@ public void Example_AddOrUpdateBusinessMetadata_AllParameters() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true); + Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); Console.WriteLine(response.Status); } @@ -4236,7 +4236,7 @@ public async Task Example_AddOrUpdateBusinessMetadata_Async() key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data)); + Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); 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); + Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); Console.WriteLine(response.Status); } @@ -4270,7 +4270,7 @@ public void Example_DeleteBusinessMetadataAttributes() key = new { }, }; - Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); + Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4287,7 +4287,7 @@ public void Example_DeleteBusinessMetadataAttributes_AllParameters() key = new { }, }; - Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); + Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4304,7 +4304,7 @@ public async Task Example_DeleteBusinessMetadataAttributes_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); + Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4338,7 +4338,7 @@ public void Example_AddOrUpdateBusinessMetadataAttributes() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); + Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4355,7 +4355,7 @@ public void Example_AddOrUpdateBusinessMetadataAttributes_AllParameters() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); + Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4372,7 +4372,7 @@ public async Task Example_AddOrUpdateBusinessMetadataAttributes_Async() key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); + Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4401,7 +4401,7 @@ public void Example_GetSampleBusinessMetadataTemplate() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetSampleBusinessMetadataTemplate(); + Response response = client.GetSampleBusinessMetadataTemplate(new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -4419,7 +4419,7 @@ public void Example_GetSampleBusinessMetadataTemplate_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = client.GetSampleBusinessMetadataTemplate(); + Response response = client.GetSampleBusinessMetadataTemplate(new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -4437,7 +4437,7 @@ public async Task Example_GetSampleBusinessMetadataTemplate_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetSampleBusinessMetadataTemplateAsync(); + Response response = await client.GetSampleBusinessMetadataTemplateAsync(new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -4455,7 +4455,7 @@ public async Task Example_GetSampleBusinessMetadataTemplate_AllParameters_Async( var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); - Response response = await client.GetSampleBusinessMetadataTemplateAsync(); + Response response = await client.GetSampleBusinessMetadataTemplateAsync(new RequestContext()); if (response.ContentStream != null) { using (Stream outFileStream = File.OpenWrite("")) @@ -4475,7 +4475,7 @@ public void Example_ImportBusinessMetadata() var data = File.OpenRead(""); - Response response = client.ImportBusinessMetadata(RequestContent.Create(data)); + Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4571,7 +4571,7 @@ public void Example_DeleteLabels_AllParameters() "" }; - Response response = client.DeleteLabels("", RequestContent.Create(data)); + Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4587,7 +4587,7 @@ public async Task Example_DeleteLabels_Async() "" }; - Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); + Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4603,7 +4603,7 @@ public async Task Example_DeleteLabels_AllParameters_Async() "" }; - Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); + Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4619,7 +4619,7 @@ public void Example_SetLabels() "" }; - Response response = client.SetLabels("", RequestContent.Create(data)); + Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4635,7 +4635,7 @@ public void Example_SetLabels_AllParameters() "" }; - Response response = client.SetLabels("", RequestContent.Create(data)); + Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4651,7 +4651,7 @@ public async Task Example_SetLabels_Async() "" }; - Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); + Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4667,7 +4667,7 @@ public async Task Example_SetLabels_AllParameters_Async() "" }; - Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); + Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4683,7 +4683,7 @@ public void Example_AddLabel() "" }; - Response response = client.AddLabel("", RequestContent.Create(data)); + Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4699,7 +4699,7 @@ public void Example_AddLabel_AllParameters() "" }; - Response response = client.AddLabel("", RequestContent.Create(data)); + Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4715,7 +4715,7 @@ public async Task Example_AddLabel_Async() "" }; - Response response = await client.AddLabelAsync("", RequestContent.Create(data)); + Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4731,7 +4731,7 @@ public async Task Example_AddLabel_AllParameters_Async() "" }; - Response response = await client.AddLabelAsync("", RequestContent.Create(data)); + Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); Console.WriteLine(response.Status); } @@ -4747,7 +4747,7 @@ public void Example_DeleteLabelsByUniqueAttribute() "" }; - Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data)); + Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4763,7 +4763,7 @@ public void Example_DeleteLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), ""); + Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4779,7 +4779,7 @@ public async Task Example_DeleteLabelsByUniqueAttribute_Async() "" }; - Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); + Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4795,7 +4795,7 @@ public async Task Example_DeleteLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); + Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4811,7 +4811,7 @@ public void Example_SetLabelsByUniqueAttribute() "" }; - Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data)); + Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4827,7 +4827,7 @@ public void Example_SetLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), ""); + Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4843,7 +4843,7 @@ public async Task Example_SetLabelsByUniqueAttribute_Async() "" }; - Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); + Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4859,7 +4859,7 @@ public async Task Example_SetLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); + Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4875,7 +4875,7 @@ public void Example_AddLabelsByUniqueAttribute() "" }; - Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data)); + Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4891,7 +4891,7 @@ public void Example_AddLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), ""); + Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4907,7 +4907,7 @@ public async Task Example_AddLabelsByUniqueAttribute_Async() "" }; - Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); + Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } @@ -4923,7 +4923,7 @@ public async Task Example_AddLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); + Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); Console.WriteLine(response.Status); } } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs index f451d30464ba..e87919def70d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs @@ -27,7 +27,7 @@ public void Example_GetGlossaries() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaries(); + Response response = client.GetGlossaries(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -41,7 +41,7 @@ public void Example_GetGlossaries_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaries(1234, 1234, "", true); + Response response = client.GetGlossaries(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -86,7 +86,7 @@ public async Task Example_GetGlossaries_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossariesAsync(); + Response response = await client.GetGlossariesAsync(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -100,7 +100,7 @@ public async Task Example_GetGlossaries_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossariesAsync(1234, 1234, "", true); + Response response = await client.GetGlossariesAsync(1234, 1234, "", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -1215,7 +1215,7 @@ public void Example_GetGlossaryCategory() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategory(""); + Response response = client.GetGlossaryCategory("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1229,7 +1229,7 @@ public void Example_GetGlossaryCategory_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategory(""); + Response response = client.GetGlossaryCategory("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("anchor").GetProperty("displayText").ToString()); @@ -1280,7 +1280,7 @@ public async Task Example_GetGlossaryCategory_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoryAsync(""); + Response response = await client.GetGlossaryCategoryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1294,7 +1294,7 @@ public async Task Example_GetGlossaryCategory_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoryAsync(""); + Response response = await client.GetGlossaryCategoryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("anchor").GetProperty("displayText").ToString()); @@ -1813,7 +1813,7 @@ public void Example_GetRelatedCategories() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetRelatedCategories(""); + Response response = client.GetRelatedCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].ToString()); @@ -1827,7 +1827,7 @@ public void Example_GetRelatedCategories_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetRelatedCategories("", 1234, 1234, ""); + Response response = client.GetRelatedCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("categoryGuid").ToString()); @@ -1845,7 +1845,7 @@ public async Task Example_GetRelatedCategories_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetRelatedCategoriesAsync(""); + Response response = await client.GetRelatedCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].ToString()); @@ -1859,7 +1859,7 @@ public async Task Example_GetRelatedCategories_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetRelatedCategoriesAsync("", 1234, 1234, ""); + Response response = await client.GetRelatedCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("categoryGuid").ToString()); @@ -1877,7 +1877,7 @@ public void Example_GetCategoryTerms() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetCategoryTerms(""); + Response response = client.GetCategoryTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -1891,7 +1891,7 @@ public void Example_GetCategoryTerms_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetCategoryTerms("", 1234, 1234, ""); + Response response = client.GetCategoryTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -1912,7 +1912,7 @@ public async Task Example_GetCategoryTerms_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetCategoryTermsAsync(""); + Response response = await client.GetCategoryTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -1926,7 +1926,7 @@ public async Task Example_GetCategoryTerms_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetCategoryTermsAsync("", 1234, 1234, ""); + Response response = await client.GetCategoryTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -2847,7 +2847,7 @@ public void Example_GetGlossaryTerm() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTerm(""); + Response response = client.GetGlossaryTerm("", true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2861,7 +2861,7 @@ public void Example_GetGlossaryTerm_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTerm("", true, new string[] { "" }); + Response response = client.GetGlossaryTerm("", true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("abbreviation").ToString()); @@ -3028,7 +3028,7 @@ public async Task Example_GetGlossaryTerm_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermAsync(""); + Response response = await client.GetGlossaryTermAsync("", true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -3042,7 +3042,7 @@ public async Task Example_GetGlossaryTerm_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermAsync("", true, new string[] { "" }); + Response response = await client.GetGlossaryTermAsync("", true, new string[] { "" }, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("abbreviation").ToString()); @@ -5437,7 +5437,7 @@ public void Example_GetEntitiesAssignedWithTerm() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetEntitiesAssignedWithTerm(""); + Response response = client.GetEntitiesAssignedWithTerm("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -5451,7 +5451,7 @@ public void Example_GetEntitiesAssignedWithTerm_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetEntitiesAssignedWithTerm("", 1234, 1234, ""); + Response response = client.GetEntitiesAssignedWithTerm("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("displayText").ToString()); @@ -5475,7 +5475,7 @@ public async Task Example_GetEntitiesAssignedWithTerm_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetEntitiesAssignedWithTermAsync(""); + Response response = await client.GetEntitiesAssignedWithTermAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -5489,7 +5489,7 @@ public async Task Example_GetEntitiesAssignedWithTerm_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetEntitiesAssignedWithTermAsync("", 1234, 1234, ""); + Response response = await client.GetEntitiesAssignedWithTermAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("displayText").ToString()); @@ -5897,7 +5897,7 @@ public void Example_GetRelatedTerms() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetRelatedTerms(""); + Response response = client.GetRelatedTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].ToString()); @@ -5911,7 +5911,7 @@ public void Example_GetRelatedTerms_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetRelatedTerms("", 1234, 1234, ""); + Response response = client.GetRelatedTerms("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("description").ToString()); @@ -5932,7 +5932,7 @@ public async Task Example_GetRelatedTerms_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetRelatedTermsAsync(""); + Response response = await client.GetRelatedTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].ToString()); @@ -5946,7 +5946,7 @@ public async Task Example_GetRelatedTerms_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetRelatedTermsAsync("", 1234, 1234, ""); + Response response = await client.GetRelatedTermsAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("")[0].GetProperty("description").ToString()); @@ -5967,7 +5967,7 @@ public void Example_GetGlossary() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossary(""); + Response response = client.GetGlossary("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -5981,7 +5981,7 @@ public void Example_GetGlossary_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossary(""); + Response response = client.GetGlossary("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -6026,7 +6026,7 @@ public async Task Example_GetGlossary_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryAsync(""); + Response response = await client.GetGlossaryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -6040,7 +6040,7 @@ public async Task Example_GetGlossary_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryAsync(""); + Response response = await client.GetGlossaryAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categories")[0].GetProperty("categoryGuid").ToString()); @@ -6661,7 +6661,7 @@ public void Example_GetGlossaryCategories() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategories(""); + Response response = client.GetGlossaryCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -6675,7 +6675,7 @@ public void Example_GetGlossaryCategories_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategories("", 1234, 1234, ""); + Response response = client.GetGlossaryCategories("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("anchor").GetProperty("displayText").ToString()); @@ -6726,7 +6726,7 @@ public async Task Example_GetGlossaryCategories_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoriesAsync(""); + Response response = await client.GetGlossaryCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -6740,7 +6740,7 @@ public async Task Example_GetGlossaryCategories_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoriesAsync("", 1234, 1234, ""); + Response response = await client.GetGlossaryCategoriesAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("anchor").GetProperty("displayText").ToString()); @@ -6791,7 +6791,7 @@ public void Example_GetGlossaryCategoriesHeaders() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategoriesHeaders(""); + Response response = client.GetGlossaryCategoriesHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -6805,7 +6805,7 @@ public void Example_GetGlossaryCategoriesHeaders_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryCategoriesHeaders("", 1234, 1234, ""); + Response response = client.GetGlossaryCategoriesHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categoryGuid").ToString()); @@ -6823,7 +6823,7 @@ public async Task Example_GetGlossaryCategoriesHeaders_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoriesHeadersAsync(""); + Response response = await client.GetGlossaryCategoriesHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -6837,7 +6837,7 @@ public async Task Example_GetGlossaryCategoriesHeaders_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryCategoriesHeadersAsync("", 1234, 1234, ""); + Response response = await client.GetGlossaryCategoriesHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("categoryGuid").ToString()); @@ -6855,7 +6855,7 @@ public void Example_GetDetailedGlossary() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetDetailedGlossary(""); + Response response = client.GetDetailedGlossary("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -6869,7 +6869,7 @@ public void Example_GetDetailedGlossary_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetDetailedGlossary("", true); + Response response = client.GetDetailedGlossary("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categoryInfo").GetProperty("").GetProperty("anchor").GetProperty("displayText").ToString()); @@ -7106,7 +7106,7 @@ public async Task Example_GetDetailedGlossary_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetDetailedGlossaryAsync(""); + Response response = await client.GetDetailedGlossaryAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -7120,7 +7120,7 @@ public async Task Example_GetDetailedGlossary_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetDetailedGlossaryAsync("", true); + Response response = await client.GetDetailedGlossaryAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("categoryInfo").GetProperty("").GetProperty("anchor").GetProperty("displayText").ToString()); @@ -7495,7 +7495,7 @@ public void Example_GetGlossaryTerms() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTerms(""); + Response response = client.GetGlossaryTerms("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -7509,7 +7509,7 @@ public void Example_GetGlossaryTerms_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTerms("", true, 1234, 1234, ""); + Response response = client.GetGlossaryTerms("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -7676,7 +7676,7 @@ public async Task Example_GetGlossaryTerms_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermsAsync(""); + Response response = await client.GetGlossaryTermsAsync("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -7690,7 +7690,7 @@ public async Task Example_GetGlossaryTerms_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermsAsync("", true, 1234, 1234, ""); + Response response = await client.GetGlossaryTermsAsync("", true, 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -7857,7 +7857,7 @@ public void Example_GetGlossaryTermHeaders() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTermHeaders(""); + Response response = client.GetGlossaryTermHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -7871,7 +7871,7 @@ public void Example_GetGlossaryTermHeaders_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetGlossaryTermHeaders("", 1234, 1234, ""); + Response response = client.GetGlossaryTermHeaders("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -7892,7 +7892,7 @@ public async Task Example_GetGlossaryTermHeaders_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermHeadersAsync(""); + Response response = await client.GetGlossaryTermHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -7906,7 +7906,7 @@ public async Task Example_GetGlossaryTermHeaders_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetGlossaryTermHeadersAsync("", 1234, 1234, ""); + Response response = await client.GetGlossaryTermHeadersAsync("", 1234, 1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("description").ToString()); @@ -7927,7 +7927,7 @@ public void Example_GetImportCsvOperationStatus() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetImportCsvOperationStatus(""); + Response response = client.GetImportCsvOperationStatus("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -7941,7 +7941,7 @@ public void Example_GetImportCsvOperationStatus_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetImportCsvOperationStatus(""); + Response response = client.GetImportCsvOperationStatus("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -7962,7 +7962,7 @@ public async Task Example_GetImportCsvOperationStatus_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetImportCsvOperationStatusAsync(""); + Response response = await client.GetImportCsvOperationStatusAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -7976,7 +7976,7 @@ public async Task Example_GetImportCsvOperationStatus_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetImportCsvOperationStatusAsync(""); + Response response = await client.GetImportCsvOperationStatusAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -8069,7 +8069,7 @@ public void Example_GetTermsByGlossaryName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetTermsByGlossaryName(""); + Response response = client.GetTermsByGlossaryName("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -8083,7 +8083,7 @@ public void Example_GetTermsByGlossaryName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = client.GetTermsByGlossaryName("", 1234, 1234, true); + Response response = client.GetTermsByGlossaryName("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); @@ -8250,7 +8250,7 @@ public async Task Example_GetTermsByGlossaryName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetTermsByGlossaryNameAsync(""); + Response response = await client.GetTermsByGlossaryNameAsync("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -8264,7 +8264,7 @@ public async Task Example_GetTermsByGlossaryName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewGlossariesClient(); - Response response = await client.GetTermsByGlossaryNameAsync("", 1234, 1234, true); + Response response = await client.GetTermsByGlossaryNameAsync("", 1234, 1234, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("abbreviation").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewLineages.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewLineages.cs index 8dc9a18475dd..6e4343c033cb 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewLineages.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewLineages.cs @@ -27,7 +27,7 @@ public void Example_GetLineageGraph() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.GetLineageGraph("", ""); + Response response = client.GetLineageGraph("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetLineageGraph_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.GetLineageGraph("", "", 1234, 1234, true, true); + Response response = client.GetLineageGraph("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -98,7 +98,7 @@ public async Task Example_GetLineageGraph_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.GetLineageGraphAsync("", ""); + Response response = await client.GetLineageGraphAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -112,7 +112,7 @@ public async Task Example_GetLineageGraph_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.GetLineageGraphAsync("", "", 1234, 1234, true, true); + Response response = await client.GetLineageGraphAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -169,7 +169,7 @@ public void Example_NextPageLineage() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.NextPageLineage("", ""); + Response response = client.NextPageLineage("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -183,7 +183,7 @@ public void Example_NextPageLineage_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.NextPageLineage("", "", true, 1234, 1234); + Response response = client.NextPageLineage("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -240,7 +240,7 @@ public async Task Example_NextPageLineage_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.NextPageLineageAsync("", ""); + Response response = await client.NextPageLineageAsync("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -254,7 +254,7 @@ public async Task Example_NextPageLineage_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.NextPageLineageAsync("", "", true, 1234, 1234); + Response response = await client.NextPageLineageAsync("", "", true, 1234, 1234, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -311,7 +311,7 @@ public void Example_GetLineageByUniqueAttribute() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.GetLineageByUniqueAttribute("", ""); + Response response = client.GetLineageByUniqueAttribute("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -325,7 +325,7 @@ public void Example_GetLineageByUniqueAttribute_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = client.GetLineageByUniqueAttribute("", "", 1234, 1234, true, true); + Response response = client.GetLineageByUniqueAttribute("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); @@ -382,7 +382,7 @@ public async Task Example_GetLineageByUniqueAttribute_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.GetLineageByUniqueAttributeAsync("", ""); + Response response = await client.GetLineageByUniqueAttributeAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -396,7 +396,7 @@ public async Task Example_GetLineageByUniqueAttribute_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewLineagesClient(); - Response response = await client.GetLineageByUniqueAttributeAsync("", "", 1234, 1234, true, true); + Response response = await client.GetLineageByUniqueAttributeAsync("", "", 1234, 1234, true, true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("baseEntityGuid").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs index 408cc303f801..88ddf2d8bdfe 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs @@ -507,7 +507,7 @@ public void Example_GetPurviewRelationship() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - Response response = client.GetPurviewRelationship(""); + Response response = client.GetPurviewRelationship("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -521,7 +521,7 @@ public void Example_GetPurviewRelationship_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - Response response = client.GetPurviewRelationship("", true); + Response response = client.GetPurviewRelationship("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("referredEntities").GetProperty("").GetProperty("classificationNames")[0].ToString()); @@ -584,7 +584,7 @@ public async Task Example_GetPurviewRelationship_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - Response response = await client.GetPurviewRelationshipAsync(""); + Response response = await client.GetPurviewRelationshipAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -598,7 +598,7 @@ public async Task Example_GetPurviewRelationship_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewRelationshipsClient(); - Response response = await client.GetPurviewRelationshipAsync("", true); + Response response = await client.GetPurviewRelationshipAsync("", true, new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("referredEntities").GetProperty("").GetProperty("classificationNames")[0].ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs index e40122ef3a4d..ca4d5f1cc22a 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs @@ -27,7 +27,7 @@ public void Example_GetBusinessMetadataDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetBusinessMetadataDefByGuid(""); + Response response = client.GetBusinessMetadataDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetBusinessMetadataDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetBusinessMetadataDefByGuid(""); + Response response = client.GetBusinessMetadataDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -98,7 +98,7 @@ public async Task Example_GetBusinessMetadataDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetBusinessMetadataDefByGuidAsync(""); + Response response = await client.GetBusinessMetadataDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -112,7 +112,7 @@ public async Task Example_GetBusinessMetadataDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetBusinessMetadataDefByGuidAsync(""); + Response response = await client.GetBusinessMetadataDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -169,7 +169,7 @@ public void Example_GetBusinessMetadataDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetBusinessMetadataDefByName(""); + Response response = client.GetBusinessMetadataDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -183,7 +183,7 @@ public void Example_GetBusinessMetadataDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetBusinessMetadataDefByName(""); + Response response = client.GetBusinessMetadataDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -240,7 +240,7 @@ public async Task Example_GetBusinessMetadataDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetBusinessMetadataDefByNameAsync(""); + Response response = await client.GetBusinessMetadataDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -254,7 +254,7 @@ public async Task Example_GetBusinessMetadataDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetBusinessMetadataDefByNameAsync(""); + Response response = await client.GetBusinessMetadataDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -311,7 +311,7 @@ public void Example_GetClassificationDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetClassificationDefByGuid(""); + Response response = client.GetClassificationDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -325,7 +325,7 @@ public void Example_GetClassificationDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetClassificationDefByGuid(""); + Response response = client.GetClassificationDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -385,7 +385,7 @@ public async Task Example_GetClassificationDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetClassificationDefByGuidAsync(""); + Response response = await client.GetClassificationDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -399,7 +399,7 @@ public async Task Example_GetClassificationDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetClassificationDefByGuidAsync(""); + Response response = await client.GetClassificationDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -459,7 +459,7 @@ public void Example_GetClassificationDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetClassificationDefByName(""); + Response response = client.GetClassificationDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -473,7 +473,7 @@ public void Example_GetClassificationDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetClassificationDefByName(""); + Response response = client.GetClassificationDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -533,7 +533,7 @@ public async Task Example_GetClassificationDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetClassificationDefByNameAsync(""); + Response response = await client.GetClassificationDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -547,7 +547,7 @@ public async Task Example_GetClassificationDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetClassificationDefByNameAsync(""); + Response response = await client.GetClassificationDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("entityTypes")[0].ToString()); @@ -607,7 +607,7 @@ public void Example_GetEntityDefinitionByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEntityDefinitionByGuid(""); + Response response = client.GetEntityDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -621,7 +621,7 @@ public void Example_GetEntityDefinitionByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEntityDefinitionByGuid(""); + Response response = client.GetEntityDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -696,7 +696,7 @@ public async Task Example_GetEntityDefinitionByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEntityDefinitionByGuidAsync(""); + Response response = await client.GetEntityDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -710,7 +710,7 @@ public async Task Example_GetEntityDefinitionByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEntityDefinitionByGuidAsync(""); + Response response = await client.GetEntityDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -785,7 +785,7 @@ public void Example_GetEntityDefinitionByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEntityDefinitionByName(""); + Response response = client.GetEntityDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -799,7 +799,7 @@ public void Example_GetEntityDefinitionByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEntityDefinitionByName(""); + Response response = client.GetEntityDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -874,7 +874,7 @@ public async Task Example_GetEntityDefinitionByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEntityDefinitionByNameAsync(""); + Response response = await client.GetEntityDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -888,7 +888,7 @@ public async Task Example_GetEntityDefinitionByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEntityDefinitionByNameAsync(""); + Response response = await client.GetEntityDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("subTypes")[0].ToString()); @@ -963,7 +963,7 @@ public void Example_GetEnumDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEnumDefByGuid(""); + Response response = client.GetEnumDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -977,7 +977,7 @@ public void Example_GetEnumDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEnumDefByGuid(""); + Response response = client.GetEnumDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -1024,7 +1024,7 @@ public async Task Example_GetEnumDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEnumDefByGuidAsync(""); + Response response = await client.GetEnumDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1038,7 +1038,7 @@ public async Task Example_GetEnumDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEnumDefByGuidAsync(""); + Response response = await client.GetEnumDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -1085,7 +1085,7 @@ public void Example_GetEnumDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEnumDefByName(""); + Response response = client.GetEnumDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1099,7 +1099,7 @@ public void Example_GetEnumDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetEnumDefByName(""); + Response response = client.GetEnumDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -1146,7 +1146,7 @@ public async Task Example_GetEnumDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEnumDefByNameAsync(""); + Response response = await client.GetEnumDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1160,7 +1160,7 @@ public async Task Example_GetEnumDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetEnumDefByNameAsync(""); + Response response = await client.GetEnumDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("defaultValue").ToString()); @@ -1207,7 +1207,7 @@ public void Example_GetRelationshipDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetRelationshipDefByGuid(""); + Response response = client.GetRelationshipDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1221,7 +1221,7 @@ public void Example_GetRelationshipDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetRelationshipDefByGuid(""); + Response response = client.GetRelationshipDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1292,7 +1292,7 @@ public async Task Example_GetRelationshipDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetRelationshipDefByGuidAsync(""); + Response response = await client.GetRelationshipDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1306,7 +1306,7 @@ public async Task Example_GetRelationshipDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetRelationshipDefByGuidAsync(""); + Response response = await client.GetRelationshipDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1377,7 +1377,7 @@ public void Example_GetRelationshipDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetRelationshipDefByName(""); + Response response = client.GetRelationshipDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1391,7 +1391,7 @@ public void Example_GetRelationshipDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetRelationshipDefByName(""); + Response response = client.GetRelationshipDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1462,7 +1462,7 @@ public async Task Example_GetRelationshipDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetRelationshipDefByNameAsync(""); + Response response = await client.GetRelationshipDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1476,7 +1476,7 @@ public async Task Example_GetRelationshipDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetRelationshipDefByNameAsync(""); + Response response = await client.GetRelationshipDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("endDef1").GetProperty("cardinality").ToString()); @@ -1547,7 +1547,7 @@ public void Example_GetStructDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetStructDefByGuid(""); + Response response = client.GetStructDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1561,7 +1561,7 @@ public void Example_GetStructDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetStructDefByGuid(""); + Response response = client.GetStructDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1618,7 +1618,7 @@ public async Task Example_GetStructDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetStructDefByGuidAsync(""); + Response response = await client.GetStructDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1632,7 +1632,7 @@ public async Task Example_GetStructDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetStructDefByGuidAsync(""); + Response response = await client.GetStructDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1689,7 +1689,7 @@ public void Example_GetStructDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetStructDefByName(""); + Response response = client.GetStructDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1703,7 +1703,7 @@ public void Example_GetStructDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetStructDefByName(""); + Response response = client.GetStructDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1760,7 +1760,7 @@ public async Task Example_GetStructDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetStructDefByNameAsync(""); + Response response = await client.GetStructDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1774,7 +1774,7 @@ public async Task Example_GetStructDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetStructDefByNameAsync(""); + Response response = await client.GetStructDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -1831,7 +1831,7 @@ public void Example_GetTypeDefinitionByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionByGuid(""); + Response response = client.GetTypeDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1845,7 +1845,7 @@ public void Example_GetTypeDefinitionByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionByGuid(""); + Response response = client.GetTypeDefinitionByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1888,7 +1888,7 @@ public async Task Example_GetTypeDefinitionByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionByGuidAsync(""); + Response response = await client.GetTypeDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1902,7 +1902,7 @@ public async Task Example_GetTypeDefinitionByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionByGuidAsync(""); + Response response = await client.GetTypeDefinitionByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -1945,7 +1945,7 @@ public void Example_GetTypeDefinitionByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionByName(""); + Response response = client.GetTypeDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1959,7 +1959,7 @@ public void Example_GetTypeDefinitionByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionByName(""); + Response response = client.GetTypeDefinitionByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -2002,7 +2002,7 @@ public async Task Example_GetTypeDefinitionByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionByNameAsync(""); + Response response = await client.GetTypeDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2016,7 +2016,7 @@ public async Task Example_GetTypeDefinitionByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionByNameAsync(""); + Response response = await client.GetTypeDefinitionByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("category").ToString()); @@ -2107,7 +2107,7 @@ public void Example_GetAllTypeDefinitions() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetAllTypeDefinitions(); + Response response = client.GetAllTypeDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2121,7 +2121,7 @@ public void Example_GetAllTypeDefinitions_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetAllTypeDefinitions(true, ""); + Response response = client.GetAllTypeDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("businessMetadataDefs")[0].GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -2467,7 +2467,7 @@ public async Task Example_GetAllTypeDefinitions_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetAllTypeDefinitionsAsync(); + Response response = await client.GetAllTypeDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2481,7 +2481,7 @@ public async Task Example_GetAllTypeDefinitions_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetAllTypeDefinitionsAsync(true, ""); + Response response = await client.GetAllTypeDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("businessMetadataDefs")[0].GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5857,7 +5857,7 @@ public void Example_GetTypeDefinitionHeaders() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionHeaders(); + Response response = client.GetTypeDefinitionHeaders(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -5871,7 +5871,7 @@ public void Example_GetTypeDefinitionHeaders_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTypeDefinitionHeaders(true, ""); + Response response = client.GetTypeDefinitionHeaders(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("category").ToString()); @@ -5887,7 +5887,7 @@ public async Task Example_GetTypeDefinitionHeaders_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionHeadersAsync(); + Response response = await client.GetTypeDefinitionHeadersAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -5901,7 +5901,7 @@ public async Task Example_GetTypeDefinitionHeaders_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTypeDefinitionHeadersAsync(true, ""); + Response response = await client.GetTypeDefinitionHeadersAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("category").ToString()); @@ -5917,7 +5917,7 @@ public void Example_GetTermTemplateDefByGuid() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTermTemplateDefByGuid(""); + Response response = client.GetTermTemplateDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -5931,7 +5931,7 @@ public void Example_GetTermTemplateDefByGuid_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTermTemplateDefByGuid(""); + Response response = client.GetTermTemplateDefByGuid("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -5988,7 +5988,7 @@ public async Task Example_GetTermTemplateDefByGuid_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTermTemplateDefByGuidAsync(""); + Response response = await client.GetTermTemplateDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -6002,7 +6002,7 @@ public async Task Example_GetTermTemplateDefByGuid_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTermTemplateDefByGuidAsync(""); + Response response = await client.GetTermTemplateDefByGuidAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -6059,7 +6059,7 @@ public void Example_GetTermTemplateDefByName() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTermTemplateDefByName(""); + Response response = client.GetTermTemplateDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -6073,7 +6073,7 @@ public void Example_GetTermTemplateDefByName_AllParameters() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = client.GetTermTemplateDefByName(""); + Response response = client.GetTermTemplateDefByName("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); @@ -6130,7 +6130,7 @@ public async Task Example_GetTermTemplateDefByName_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTermTemplateDefByNameAsync(""); + Response response = await client.GetTermTemplateDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -6144,7 +6144,7 @@ public async Task Example_GetTermTemplateDefByName_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - Response response = await client.GetTermTemplateDefByNameAsync(""); + Response response = await client.GetTermTemplateDefByNameAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("attributeDefs")[0].GetProperty("cardinality").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/GlossaryClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/GlossaryClientTest.cs index 9a2aae643df1..5ee623b9e57d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/GlossaryClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/GlossaryClientTest.cs @@ -22,7 +22,7 @@ public GlossaryClientTest(bool isAsync) : base(isAsync) public async Task GetGlossaryCategory() { var client = GetGlossariesClient(); - Response fetchResponse = await client.GetGlossariesAsync(); + Response fetchResponse = await client.GetGlossariesAsync(null, null, null, null, new()); Assert.AreEqual(200, fetchResponse.Status); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(fetchResponse)); JsonElement fetchBodyJson = jsonDocument.RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs index 1fa5a05fa7e1..465d1ab832ce 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs @@ -6,16 +6,16 @@ protected PurviewClassificationRuleClient() { } public PurviewClassificationRuleClient(System.Uri endpoint, string classificationRuleName, Azure.Core.TokenCredential credential) { } public PurviewClassificationRuleClient(System.Uri endpoint, string classificationRuleName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetVersions(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetVersionsAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response TagVersion(int classificationRuleVersion, string action, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task TagVersionAsync(int classificationRuleVersion, string action, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetVersions(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response TagVersion(int classificationRuleVersion, string action, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task TagVersionAsync(int classificationRuleVersion, string action, Azure.RequestContext context) { throw null; } } public partial class PurviewDataSourceClient { @@ -23,15 +23,15 @@ protected PurviewDataSourceClient() { } public PurviewDataSourceClient(System.Uri endpoint, string dataSourceName, Azure.Core.TokenCredential credential) { } public PurviewDataSourceClient(System.Uri endpoint, string dataSourceName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Scanning.PurviewScanClient GetScanClient(string scanName) { throw null; } - public virtual Azure.Pageable GetScans(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetScansAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetScans(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetScansAsync(Azure.RequestContext context) { throw null; } } public partial class PurviewScanClient { @@ -39,28 +39,28 @@ protected PurviewScanClient() { } public PurviewScanClient(System.Uri endpoint, string dataSourceName, string scanName, Azure.Core.TokenCredential credential) { } public PurviewScanClient(System.Uri endpoint, string dataSourceName, string scanName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CancelScan(string runId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CancelScanAsync(string runId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CancelScan(string runId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CancelScanAsync(string runId, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response CreateOrUpdateFilter(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateFilterAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdateFilter(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateFilterAsync(Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } public virtual Azure.Response CreateOrUpdateTrigger(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateTriggerAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteTrigger(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTriggerAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetFilter(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetFilterAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetRuns(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetRunsAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetTrigger(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTriggerAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RunScan(string runId, string scanLevel = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RunScanAsync(string runId, string scanLevel = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Delete(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteTrigger(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTriggerAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetFilter(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetFilterAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetRuns(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetRunsAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetTrigger(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetTriggerAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response RunScan(string runId, string scanLevel, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RunScanAsync(string runId, string scanLevel, Azure.RequestContext context) { throw null; } } public partial class PurviewScanningServiceClient { @@ -70,36 +70,36 @@ public PurviewScanningServiceClient(System.Uri endpoint, Azure.Core.TokenCredent public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response CreateOrUpdateKeyVaultReference(string keyVaultName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateKeyVaultReferenceAsync(string keyVaultName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response CreateOrUpdateScanRuleset(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateScanRulesetAsync(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteKeyVaultReference(string keyVaultName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKeyVaultReferenceAsync(string keyVaultName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteScanRuleset(string scanRulesetName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteScanRulesetAsync(string scanRulesetName, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response CreateOrUpdateScanRuleset(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateScanRulesetAsync(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteKeyVaultReference(string keyVaultName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKeyVaultReferenceAsync(string keyVaultName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteScanRuleset(string scanRulesetName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteScanRulesetAsync(string scanRulesetName, Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Scanning.PurviewClassificationRuleClient GetClassificationRuleClient(string classificationRuleName) { throw null; } - public virtual Azure.Pageable GetClassificationRules(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetClassificationRulesAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetClassificationRules(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetClassificationRulesAsync(Azure.RequestContext context) { throw null; } public virtual Azure.Analytics.Purview.Scanning.PurviewDataSourceClient GetDataSourceClient(string dataSourceName) { throw null; } - public virtual Azure.Pageable GetDataSources(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetDataSourcesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetKeyVaultReference(string keyVaultName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetKeyVaultReferenceAsync(string keyVaultName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetKeyVaultReferences(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetKeyVaultReferencesAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetLatestSystemRulesets(string dataSourceType = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLatestSystemRulesetsAsync(string dataSourceType = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetScanRuleset(string scanRulesetName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScanRulesetAsync(string scanRulesetName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetScanRulesets(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetScanRulesetsAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSystemRulesets(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSystemRulesetsAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSystemRulesetsForDataSource(string dataSourceType, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSystemRulesetsVersions(string dataSourceType = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSystemRulesetsVersionsAsync(string dataSourceType = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetDataSources(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDataSourcesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetKeyVaultReference(string keyVaultName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetKeyVaultReferenceAsync(string keyVaultName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetKeyVaultReferences(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetKeyVaultReferencesAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetLatestSystemRulesets(string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetLatestSystemRulesetsAsync(string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetScanRuleset(string scanRulesetName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetScanRulesetAsync(string scanRulesetName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetScanRulesets(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetScanRulesetsAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSystemRulesets(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSystemRulesetsAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSystemRulesetsForDataSource(string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSystemRulesetsForVersion(int version, string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSystemRulesetsVersions(string dataSourceType, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSystemRulesetsVersionsAsync(string dataSourceType, Azure.RequestContext context) { throw null; } } public partial class PurviewScanningServiceClientOptions : Azure.Core.ClientOptions { 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 1e79c3ba2f7d..0563624e240d 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 @@ -3,13 +3,13 @@ -This sample shows how to call GetPropertiesAsync and parse the result. +This sample shows how to call GetPropertiesAsync with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = await client.GetPropertiesAsync(); +Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -20,13 +20,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetProperties and parse the result. +This sample shows how to call GetProperties with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = client.GetProperties(); +Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -37,7 +37,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdateAsync with required request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with required parameters and 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)); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with all parameters and 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)); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with required parameters and request content, and how to parse the result. "); @@ -89,13 +89,13 @@ var data = new { kind = "System", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data)); +Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with all parameters and request content, and how to parse the result. "); @@ -110,7 +110,7 @@ var data = new { kind = "System", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data)); +Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -121,13 +121,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call DeleteAsync and parse the result. +This sample shows how to call DeleteAsync with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = await client.DeleteAsync(); +Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -138,13 +138,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call Delete and parse the result. +This sample shows how to call Delete with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = client.Delete(); +Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -161,7 +161,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = await client.TagVersionAsync(1234, ""); +Response response = await client.TagVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -185,7 +185,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -Response response = client.TagVersion(1234, ""); +Response response = client.TagVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -203,13 +203,13 @@ Console.WriteLine(result.GetProperty("error").GetProperty("details")[0].GetPrope -This sample shows how to call GetVersionsAsync and parse the result. +This sample shows how to call GetVersionsAsync with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -await foreach (var item in client.GetVersionsAsync()) +await foreach (var item in client.GetVersionsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -221,13 +221,13 @@ await foreach (var item in client.GetVersionsAsync()) -This sample shows how to call GetVersions and parse the result. +This sample shows how to call GetVersions with required parameters and parse the result. "); var client = new PurviewClassificationRuleClient(endpoint, "", credential); -foreach (var item in client.GetVersions()) +foreach (var item in client.GetVersions(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).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 c036e48dc655..feb9f844be8f 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with required parameters and 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)); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with all parameters and 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)); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with required parameters and request content, and how to parse the result. "); @@ -84,13 +84,13 @@ var data = new { kind = "AzureSubscription", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data)); +Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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 request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with all parameters and request content, and how to parse the result. "); @@ -106,7 +106,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data)); +Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -145,13 +145,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetPropertiesAsync and parse the result. +This sample shows how to call GetPropertiesAsync with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -Response response = await client.GetPropertiesAsync(); +Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -190,13 +190,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetProperties and parse the result. +This sample shows how to call GetProperties with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -Response response = client.GetProperties(); +Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -235,13 +235,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call DeleteAsync and parse the result. +This sample shows how to call DeleteAsync with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -Response response = await client.DeleteAsync(); +Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -280,13 +280,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call Delete and parse the result. +This sample shows how to call Delete with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -Response response = client.Delete(); +Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -325,13 +325,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetScansAsync and parse the result. +This sample shows how to call GetScansAsync with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -await foreach (var item in client.GetScansAsync()) +await foreach (var item in client.GetScansAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -368,13 +368,13 @@ await foreach (var item in client.GetScansAsync()) -This sample shows how to call GetScans and parse the result. +This sample shows how to call GetScans with required parameters and parse the result. "); var client = new PurviewDataSourceClient(endpoint, "", credential); -foreach (var item in client.GetScans()) +foreach (var item in client.GetScans(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).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 5526704dedf3..1fb02e63a7e7 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 @@ -3,13 +3,13 @@ -This sample shows how to call GetFilterAsync and parse the result. +This sample shows how to call GetFilterAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.GetFilterAsync(); +Response response = await client.GetFilterAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -21,13 +21,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetFilter and parse the result. +This sample shows how to call GetFilter with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.GetFilter(); +Response response = client.GetFilter(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -39,7 +39,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdateFilterAsync and parse the result. +This sample shows how to call CreateOrUpdateFilterAsync with required parameters 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)); +Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateFilterAsync with all request content, and how to parse the result. +This sample shows how to call CreateOrUpdateFilterAsync with all parameters and request content, and how to parse the result. "); @@ -69,7 +69,7 @@ var data = new { }, }; -Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); +Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); 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 and parse the result. +This sample shows how to call CreateOrUpdateFilter with required parameters and parse the result. "); @@ -89,12 +89,12 @@ var client = new PurviewScanClient(endpoint, "", "", c var data = new {}; -Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); +Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateFilter with all request content, and how to parse the result. +This sample shows how to call CreateOrUpdateFilter with all parameters and request content, and how to parse the result. "); @@ -111,7 +111,7 @@ var data = new { }, }; -Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); +Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -519,13 +519,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetPropertiesAsync and parse the result. +This sample shows how to call GetPropertiesAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.GetPropertiesAsync(); +Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -561,13 +561,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetProperties and parse the result. +This sample shows how to call GetProperties with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.GetProperties(); +Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -603,13 +603,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call DeleteAsync and parse the result. +This sample shows how to call DeleteAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.DeleteAsync(); +Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -645,13 +645,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call Delete and parse the result. +This sample shows how to call Delete with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.Delete(); +Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -693,18 +693,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.RunScanAsync(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RunScanAsync with all parameters, and how to parse the result. -"); -var client = new PurviewScanClient(endpoint, "", "", credential); - -Response response = await client.RunScanAsync("", ""); +Response response = await client.RunScanAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -728,18 +717,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.RunScan(""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RunScan with all parameters, and how to parse the result. -"); -var client = new PurviewScanClient(endpoint, "", "", credential); - -Response response = client.RunScan("", ""); +Response response = client.RunScan("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -763,7 +741,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.CancelScanAsync(""); +Response response = await client.CancelScanAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -787,7 +765,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.CancelScan(""); +Response response = client.CancelScan("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -805,13 +783,13 @@ Console.WriteLine(result.GetProperty("error").GetProperty("details")[0].GetPrope -This sample shows how to call GetTriggerAsync and parse the result. +This sample shows how to call GetTriggerAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.GetTriggerAsync(); +Response response = await client.GetTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -840,13 +818,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetTrigger and parse the result. +This sample shows how to call GetTrigger with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.GetTrigger(); +Response response = client.GetTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1053,13 +1031,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call DeleteTriggerAsync and parse the result. +This sample shows how to call DeleteTriggerAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = await client.DeleteTriggerAsync(); +Response response = await client.DeleteTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1088,13 +1066,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call DeleteTrigger and parse the result. +This sample shows how to call DeleteTrigger with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -Response response = client.DeleteTrigger(); +Response response = client.DeleteTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1123,13 +1101,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetRunsAsync and parse the result. +This sample shows how to call GetRunsAsync with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -await foreach (var item in client.GetRunsAsync()) +await foreach (var item in client.GetRunsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("parentId").ToString()); @@ -1163,13 +1141,13 @@ await foreach (var item in client.GetRunsAsync()) -This sample shows how to call GetRuns and parse the result. +This sample shows how to call GetRuns with required parameters and parse the result. "); var client = new PurviewScanClient(endpoint, "", "", credential); -foreach (var item in client.GetRuns()) +foreach (var item in client.GetRuns(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("parentId").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 25020ddf2026..871c6f3cc81d 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 @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.GetKeyVaultReferenceAsync(""); +Response response = await client.GetKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -27,7 +27,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.GetKeyVaultReference(""); +Response response = client.GetKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -121,7 +121,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.DeleteKeyVaultReferenceAsync(""); +Response response = await client.DeleteKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -139,7 +139,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.DeleteKeyVaultReference(""); +Response response = client.DeleteKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -157,7 +157,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.GetScanRulesetAsync(""); +Response response = await client.GetScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -177,7 +177,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.GetScanRuleset(""); +Response response = client.GetScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -201,7 +201,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data)); +Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); 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)); +Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -297,7 +297,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.DeleteScanRulesetAsync(""); +Response response = await client.DeleteScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -317,7 +317,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.DeleteScanRuleset(""); +Response response = client.DeleteScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -337,7 +337,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.GetSystemRulesetsForDataSourceAsync(""); +Response response = await client.GetSystemRulesetsForDataSourceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -357,7 +357,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.GetSystemRulesetsForDataSource(""); +Response response = client.GetSystemRulesetsForDataSource("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -377,19 +377,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.GetSystemRulesetsForVersionAsync(1234); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("kind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetSystemRulesetsForVersionAsync with all parameters, and how to parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -Response response = await client.GetSystemRulesetsForVersionAsync(1234, ""); +Response response = await client.GetSystemRulesetsForVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -409,19 +397,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.GetSystemRulesetsForVersion(1234); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("kind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetSystemRulesetsForVersion with all parameters, and how to parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -Response response = client.GetSystemRulesetsForVersion(1234, ""); +Response response = client.GetSystemRulesetsForVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -435,25 +411,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetLatestSystemRulesetsAsync and parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -Response response = await client.GetLatestSystemRulesetsAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("kind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLatestSystemRulesetsAsync with all parameters, and how to parse the result. +This sample shows how to call GetLatestSystemRulesetsAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = await client.GetLatestSystemRulesetsAsync(""); +Response response = await client.GetLatestSystemRulesetsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -467,25 +431,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetLatestSystemRulesets and parse the result. +This sample shows how to call GetLatestSystemRulesets with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -Response response = client.GetLatestSystemRulesets(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("kind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetLatestSystemRulesets with all parameters, and how to parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -Response response = client.GetLatestSystemRulesets(""); +Response response = client.GetLatestSystemRulesets("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -499,13 +451,13 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call GetKeyVaultReferencesAsync and parse the result. +This sample shows how to call GetKeyVaultReferencesAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetKeyVaultReferencesAsync()) +await foreach (var item in client.GetKeyVaultReferencesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -518,13 +470,13 @@ await foreach (var item in client.GetKeyVaultReferencesAsync()) -This sample shows how to call GetKeyVaultReferences and parse the result. +This sample shows how to call GetKeyVaultReferences with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetKeyVaultReferences()) +foreach (var item in client.GetKeyVaultReferences(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -537,13 +489,13 @@ foreach (var item in client.GetKeyVaultReferences()) -This sample shows how to call GetClassificationRulesAsync and parse the result. +This sample shows how to call GetClassificationRulesAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetClassificationRulesAsync()) +await foreach (var item in client.GetClassificationRulesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -555,13 +507,13 @@ await foreach (var item in client.GetClassificationRulesAsync()) -This sample shows how to call GetClassificationRules and parse the result. +This sample shows how to call GetClassificationRules with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetClassificationRules()) +foreach (var item in client.GetClassificationRules(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -573,13 +525,13 @@ foreach (var item in client.GetClassificationRules()) -This sample shows how to call GetDataSourcesAsync and parse the result. +This sample shows how to call GetDataSourcesAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetDataSourcesAsync()) +await foreach (var item in client.GetDataSourcesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -619,13 +571,13 @@ await foreach (var item in client.GetDataSourcesAsync()) -This sample shows how to call GetDataSources and parse the result. +This sample shows how to call GetDataSources with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetDataSources()) +foreach (var item in client.GetDataSources(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -665,13 +617,13 @@ foreach (var item in client.GetDataSources()) -This sample shows how to call GetScanRulesetsAsync and parse the result. +This sample shows how to call GetScanRulesetsAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetScanRulesetsAsync()) +await foreach (var item in client.GetScanRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -686,13 +638,13 @@ await foreach (var item in client.GetScanRulesetsAsync()) -This sample shows how to call GetScanRulesets and parse the result. +This sample shows how to call GetScanRulesets with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetScanRulesets()) +foreach (var item in client.GetScanRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -707,13 +659,13 @@ foreach (var item in client.GetScanRulesets()) -This sample shows how to call GetSystemRulesetsAsync and parse the result. +This sample shows how to call GetSystemRulesetsAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetSystemRulesetsAsync()) +await foreach (var item in client.GetSystemRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -728,13 +680,13 @@ await foreach (var item in client.GetSystemRulesetsAsync()) -This sample shows how to call GetSystemRulesets and parse the result. +This sample shows how to call GetSystemRulesets with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetSystemRulesets()) +foreach (var item in client.GetSystemRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -749,26 +701,13 @@ foreach (var item in client.GetSystemRulesets()) -This sample shows how to call GetSystemRulesetsVersionsAsync and parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -await foreach (var item in client.GetSystemRulesetsVersionsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSystemRulesetsVersionsAsync with all parameters, and how to parse the result. +This sample shows how to call GetSystemRulesetsVersionsAsync with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -await foreach (var item in client.GetSystemRulesetsVersionsAsync("")) +await foreach (var item in client.GetSystemRulesetsVersionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -783,26 +722,13 @@ await foreach (var item in client.GetSystemRulesetsVersionsAsync(" -This sample shows how to call GetSystemRulesetsVersions and parse the result. -"); -var client = new PurviewScanningServiceClient(endpoint, credential); - -foreach (var item in client.GetSystemRulesetsVersions()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSystemRulesetsVersions with all parameters, and how to parse the result. +This sample shows how to call GetSystemRulesetsVersions with required parameters and parse the result. "); var client = new PurviewScanningServiceClient(endpoint, credential); -foreach (var item in client.GetSystemRulesetsVersions("")) +foreach (var item in client.GetSystemRulesetsVersions("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).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 d61bd406bb44..38b40070b8ac 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs @@ -81,7 +81,7 @@ public PurviewClassificationRuleClient(Uri endpoint, string classificationRuleNa /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPropertiesAsync(RequestContext context = null) + public virtual async Task GetPropertiesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetProperties"); scope.Start(); @@ -111,7 +111,7 @@ public virtual async Task GetPropertiesAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetProperties(RequestContext context = null) + public virtual Response GetProperties(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetProperties"); scope.Start(); @@ -142,7 +142,7 @@ public virtual Response GetProperties(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.CreateOrUpdate"); scope.Start(); @@ -203,7 +203,7 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteAsync(RequestContext context = null) + public virtual async Task DeleteAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.Delete"); scope.Start(); @@ -233,7 +233,7 @@ public virtual async Task DeleteAsync(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Delete(RequestContext context = null) + public virtual Response Delete(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.Delete"); scope.Start(); @@ -266,7 +266,7 @@ public virtual Response Delete(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task TagVersionAsync(int classificationRuleVersion, string action, RequestContext context = null) + public virtual async Task TagVersionAsync(int classificationRuleVersion, string action, RequestContext context) { Argument.AssertNotNull(action, nameof(action)); @@ -301,7 +301,7 @@ public virtual async Task TagVersionAsync(int classificationRuleVersio /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response TagVersion(int classificationRuleVersion, string action, RequestContext context = null) + public virtual Response TagVersion(int classificationRuleVersion, string action, RequestContext context) { Argument.AssertNotNull(action, nameof(action)); @@ -333,7 +333,7 @@ public virtual Response TagVersion(int classificationRuleVersion, string action, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetVersionsAsync(RequestContext context = null) + public virtual AsyncPageable GetVersionsAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, context); @@ -354,7 +354,7 @@ public virtual AsyncPageable GetVersionsAsync(RequestContext context /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetVersions(RequestContext context = null) + public virtual Pageable GetVersions(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, context); 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 4341fd10a117..76c4796b17e0 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 = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.CreateOrUpdate"); scope.Start(); @@ -143,7 +143,7 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPropertiesAsync(RequestContext context = null) + public virtual async Task GetPropertiesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.GetProperties"); scope.Start(); @@ -173,7 +173,7 @@ public virtual async Task GetPropertiesAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetProperties(RequestContext context = null) + public virtual Response GetProperties(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.GetProperties"); scope.Start(); @@ -203,7 +203,7 @@ public virtual Response GetProperties(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteAsync(RequestContext context = null) + public virtual async Task DeleteAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.Delete"); scope.Start(); @@ -233,7 +233,7 @@ public virtual async Task DeleteAsync(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Delete(RequestContext context = null) + public virtual Response Delete(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.Delete"); scope.Start(); @@ -263,7 +263,7 @@ public virtual Response Delete(RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetScansAsync(RequestContext context = null) + public virtual AsyncPageable GetScansAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetScansRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetScansNextPageRequest(nextLink, context); @@ -284,7 +284,7 @@ public virtual AsyncPageable GetScansAsync(RequestContext context = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetScans(RequestContext context = null) + public virtual Pageable GetScans(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetScansRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetScansNextPageRequest(nextLink, context); 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 cc61f9398094..420f380ec606 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs @@ -86,7 +86,7 @@ public PurviewScanClient(Uri endpoint, string dataSourceName, string scanName, T /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetFilterAsync(RequestContext context = null) + public virtual async Task GetFilterAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetFilter"); scope.Start(); @@ -116,7 +116,7 @@ public virtual async Task GetFilterAsync(RequestContext context = null /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetFilter(RequestContext context = null) + public virtual Response GetFilter(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetFilter"); scope.Start(); @@ -147,7 +147,7 @@ public virtual Response GetFilter(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateFilterAsync(RequestContent content, RequestContext context = null) + public virtual async Task CreateOrUpdateFilterAsync(RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdateFilter(RequestContent content, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateFilter"); scope.Start(); @@ -276,7 +276,7 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPropertiesAsync(RequestContext context = null) + public virtual async Task GetPropertiesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetProperties"); scope.Start(); @@ -306,7 +306,7 @@ public virtual async Task GetPropertiesAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetProperties(RequestContext context = null) + public virtual Response GetProperties(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetProperties"); scope.Start(); @@ -336,7 +336,7 @@ public virtual Response GetProperties(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteAsync(RequestContext context = null) + public virtual async Task DeleteAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.Delete"); scope.Start(); @@ -366,7 +366,7 @@ public virtual async Task DeleteAsync(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Delete(RequestContext context = null) + public virtual Response Delete(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.Delete"); scope.Start(); @@ -400,7 +400,7 @@ public virtual Response Delete(RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task RunScanAsync(string runId, string scanLevel = null, RequestContext context = null) + public virtual async Task RunScanAsync(string runId, string scanLevel, RequestContext context) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); @@ -436,7 +436,7 @@ public virtual async Task RunScanAsync(string runId, string scanLevel /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response RunScan(string runId, string scanLevel = null, RequestContext context = null) + public virtual Response RunScan(string runId, string scanLevel, RequestContext context) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); @@ -471,7 +471,7 @@ public virtual Response RunScan(string runId, string scanLevel = null, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CancelScanAsync(string runId, RequestContext context = null) + public virtual async Task CancelScanAsync(string runId, RequestContext context) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); @@ -506,7 +506,7 @@ public virtual async Task CancelScanAsync(string runId, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CancelScan(string runId, RequestContext context = null) + public virtual Response CancelScan(string runId, RequestContext context) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); @@ -538,7 +538,7 @@ public virtual Response CancelScan(string runId, RequestContext context = null) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetTriggerAsync(RequestContext context = null) + public virtual async Task GetTriggerAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetTrigger"); scope.Start(); @@ -568,7 +568,7 @@ public virtual async Task GetTriggerAsync(RequestContext context = nul /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetTrigger(RequestContext context = null) + public virtual Response GetTrigger(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.GetTrigger"); scope.Start(); @@ -666,7 +666,7 @@ public virtual Response CreateOrUpdateTrigger(RequestContent content, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteTriggerAsync(RequestContext context = null) + public virtual async Task DeleteTriggerAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.DeleteTrigger"); scope.Start(); @@ -696,7 +696,7 @@ public virtual async Task DeleteTriggerAsync(RequestContext context = /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteTrigger(RequestContext context = null) + public virtual Response DeleteTrigger(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.DeleteTrigger"); scope.Start(); @@ -726,7 +726,7 @@ public virtual Response DeleteTrigger(RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetRunsAsync(RequestContext context = null) + public virtual AsyncPageable GetRunsAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetRunsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetRunsNextPageRequest(nextLink, context); @@ -747,7 +747,7 @@ public virtual AsyncPageable GetRunsAsync(RequestContext context = n /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetRuns(RequestContext context = null) + public virtual Pageable GetRuns(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetRunsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetRunsNextPageRequest(nextLink, context); 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 795ea3a7a919..472bafe23fd0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs @@ -77,7 +77,7 @@ public PurviewScanningServiceClient(Uri endpoint, TokenCredential credential, Pu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetKeyVaultReferenceAsync(string keyVaultName, RequestContext context = null) + public virtual async Task GetKeyVaultReferenceAsync(string keyVaultName, RequestContext context) { Argument.AssertNotNullOrEmpty(keyVaultName, nameof(keyVaultName)); @@ -112,7 +112,7 @@ public virtual async Task GetKeyVaultReferenceAsync(string keyVaultNam /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetKeyVaultReference(string keyVaultName, RequestContext context = null) + public virtual Response GetKeyVaultReference(string keyVaultName, RequestContext context) { Argument.AssertNotNullOrEmpty(keyVaultName, nameof(keyVaultName)); @@ -221,7 +221,7 @@ public virtual Response CreateOrUpdateKeyVaultReference(string keyVaultName, Req /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteKeyVaultReferenceAsync(string keyVaultName, RequestContext context = null) + public virtual async Task DeleteKeyVaultReferenceAsync(string keyVaultName, RequestContext context) { Argument.AssertNotNullOrEmpty(keyVaultName, nameof(keyVaultName)); @@ -256,7 +256,7 @@ public virtual async Task DeleteKeyVaultReferenceAsync(string keyVault /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteKeyVaultReference(string keyVaultName, RequestContext context = null) + public virtual Response DeleteKeyVaultReference(string keyVaultName, RequestContext context) { Argument.AssertNotNullOrEmpty(keyVaultName, nameof(keyVaultName)); @@ -291,7 +291,7 @@ public virtual Response DeleteKeyVaultReference(string keyVaultName, RequestCont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetScanRulesetAsync(string scanRulesetName, RequestContext context = null) + public virtual async Task GetScanRulesetAsync(string scanRulesetName, RequestContext context) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -326,7 +326,7 @@ public virtual async Task GetScanRulesetAsync(string scanRulesetName, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetScanRuleset(string scanRulesetName, RequestContext context = null) + public virtual Response GetScanRuleset(string scanRulesetName, RequestContext context) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -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 = null) + public virtual async Task CreateOrUpdateScanRulesetAsync(string scanRulesetName, RequestContent content, RequestContext context) { 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 = null) + public virtual Response CreateOrUpdateScanRuleset(string scanRulesetName, RequestContent content, RequestContext context) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -433,7 +433,7 @@ public virtual Response CreateOrUpdateScanRuleset(string scanRulesetName, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteScanRulesetAsync(string scanRulesetName, RequestContext context = null) + public virtual async Task DeleteScanRulesetAsync(string scanRulesetName, RequestContext context) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -468,7 +468,7 @@ public virtual async Task DeleteScanRulesetAsync(string scanRulesetNam /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteScanRuleset(string scanRulesetName, RequestContext context = null) + public virtual Response DeleteScanRuleset(string scanRulesetName, RequestContext context) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -503,7 +503,7 @@ public virtual Response DeleteScanRuleset(string scanRulesetName, RequestContext /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, RequestContext context = null) + public virtual async Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, RequestContext context) { Argument.AssertNotNullOrEmpty(dataSourceType, nameof(dataSourceType)); @@ -538,7 +538,7 @@ public virtual async Task GetSystemRulesetsForDataSourceAsync(string d /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, RequestContext context = null) + public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, RequestContext context) { Argument.AssertNotNullOrEmpty(dataSourceType, nameof(dataSourceType)); @@ -572,7 +572,7 @@ public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, Re /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, RequestContext context = null) + public virtual async Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForVersion"); scope.Start(); @@ -604,7 +604,7 @@ public virtual async Task GetSystemRulesetsForVersionAsync(int version /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, RequestContext context = null) + public virtual Response GetSystemRulesetsForVersion(int version, string dataSourceType, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForVersion"); scope.Start(); @@ -635,7 +635,7 @@ public virtual Response GetSystemRulesetsForVersion(int version, string dataSour /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetLatestSystemRulesetsAsync(string dataSourceType = null, RequestContext context = null) + public virtual async Task GetLatestSystemRulesetsAsync(string dataSourceType, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanningServiceClient.GetLatestSystemRulesets"); scope.Start(); @@ -666,7 +666,7 @@ public virtual async Task GetLatestSystemRulesetsAsync(string dataSour /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetLatestSystemRulesets(string dataSourceType = null, RequestContext context = null) + public virtual Response GetLatestSystemRulesets(string dataSourceType, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewScanningServiceClient.GetLatestSystemRulesets"); scope.Start(); @@ -696,7 +696,7 @@ public virtual Response GetLatestSystemRulesets(string dataSourceType = null, Re /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetKeyVaultReferencesAsync(RequestContext context = null) + public virtual AsyncPageable GetKeyVaultReferencesAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetKeyVaultReferencesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetKeyVaultReferencesNextPageRequest(nextLink, context); @@ -717,7 +717,7 @@ public virtual AsyncPageable GetKeyVaultReferencesAsync(RequestConte /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetKeyVaultReferences(RequestContext context = null) + public virtual Pageable GetKeyVaultReferences(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetKeyVaultReferencesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetKeyVaultReferencesNextPageRequest(nextLink, context); @@ -738,7 +738,7 @@ public virtual Pageable GetKeyVaultReferences(RequestContext context /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetClassificationRulesAsync(RequestContext context = null) + public virtual AsyncPageable GetClassificationRulesAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationRulesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetClassificationRulesNextPageRequest(nextLink, context); @@ -759,7 +759,7 @@ public virtual AsyncPageable GetClassificationRulesAsync(RequestCont /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetClassificationRules(RequestContext context = null) + public virtual Pageable GetClassificationRules(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationRulesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetClassificationRulesNextPageRequest(nextLink, context); @@ -780,7 +780,7 @@ public virtual Pageable GetClassificationRules(RequestContext contex /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetDataSourcesAsync(RequestContext context = null) + public virtual AsyncPageable GetDataSourcesAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDataSourcesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDataSourcesNextPageRequest(nextLink, context); @@ -801,7 +801,7 @@ public virtual AsyncPageable GetDataSourcesAsync(RequestContext cont /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetDataSources(RequestContext context = null) + public virtual Pageable GetDataSources(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDataSourcesRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDataSourcesNextPageRequest(nextLink, context); @@ -822,7 +822,7 @@ public virtual Pageable GetDataSources(RequestContext context = null /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetScanRulesetsAsync(RequestContext context = null) + public virtual AsyncPageable GetScanRulesetsAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetScanRulesetsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetScanRulesetsNextPageRequest(nextLink, context); @@ -843,7 +843,7 @@ public virtual AsyncPageable GetScanRulesetsAsync(RequestContext con /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetScanRulesets(RequestContext context = null) + public virtual Pageable GetScanRulesets(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetScanRulesetsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetScanRulesetsNextPageRequest(nextLink, context); @@ -864,7 +864,7 @@ public virtual Pageable GetScanRulesets(RequestContext context = nul /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSystemRulesetsAsync(RequestContext context = null) + public virtual AsyncPageable GetSystemRulesetsAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSystemRulesetsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSystemRulesetsNextPageRequest(nextLink, context); @@ -885,7 +885,7 @@ public virtual AsyncPageable GetSystemRulesetsAsync(RequestContext c /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSystemRulesets(RequestContext context = null) + public virtual Pageable GetSystemRulesets(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSystemRulesetsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSystemRulesetsNextPageRequest(nextLink, context); @@ -907,7 +907,7 @@ public virtual Pageable GetSystemRulesets(RequestContext context = n /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSystemRulesetsVersionsAsync(string dataSourceType = null, RequestContext context = null) + public virtual AsyncPageable GetSystemRulesetsVersionsAsync(string dataSourceType, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSystemRulesetsVersionsRequest(dataSourceType, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSystemRulesetsVersionsNextPageRequest(nextLink, dataSourceType, context); @@ -929,7 +929,7 @@ public virtual AsyncPageable GetSystemRulesetsVersionsAsync(string d /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSystemRulesetsVersions(string dataSourceType = null, RequestContext context = null) + public virtual Pageable GetSystemRulesetsVersions(string dataSourceType, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSystemRulesetsVersionsRequest(dataSourceType, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSystemRulesetsVersionsNextPageRequest(nextLink, dataSourceType, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..00a46f8e98e0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ClassificationRuleClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ClassificationRuleClientTest.cs index 4474f1677153..307833d21910 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ClassificationRuleClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ClassificationRuleClientTest.cs @@ -41,7 +41,7 @@ public async Task ClassificationRuleOperations() }, ruleStatus = "Enabled" }; - Response createResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data)); + Response createResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data), new()); Assert.AreEqual(201, createResponse.Status); //Update (version 2 will be generated) data = new @@ -61,7 +61,7 @@ public async Task ClassificationRuleOperations() }, ruleStatus = "Enabled" }; - Response updateResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data)); + Response updateResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data), new()); Assert.AreEqual(200, updateResponse.Status); //Get Response getResponse = await client.GetPropertiesAsync(new()); @@ -84,7 +84,7 @@ public async Task ClassificationRuleOperations() Response TagVersionResponse = await client.TagVersionAsync(2, "Keep", new()); Assert.AreEqual(202, TagVersionResponse.Status); //Delete - Response deleteresponse = await client.DeleteAsync(); + Response deleteresponse = await client.DeleteAsync(new()); Assert.AreEqual(200, deleteresponse.Status); } private static BinaryData GetContentFromResponse(Response r) diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/DataSourceClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/DataSourceClientTest.cs index f68135a11855..780e8077b824 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/DataSourceClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/DataSourceClientTest.cs @@ -37,7 +37,7 @@ public async Task DataSourceOperations() } }; //Create - Response createResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data)); + Response createResponse = await client.CreateOrUpdateAsync(RequestContent.Create(data), new()); Assert.AreEqual(201, createResponse.Status); //Get Response getResponse = await client.GetPropertiesAsync(new()); @@ -46,7 +46,7 @@ public async Task DataSourceOperations() JsonElement getBodyJson = jsonDocument.RootElement; Assert.AreEqual("datasources/test-datasources3", getBodyJson.GetProperty("id").GetString()); //Delete - Response deleteResponse = await client.DeleteAsync(); + Response deleteResponse = await client.DeleteAsync(new()); Assert.AreEqual(200, deleteResponse.Status); } [RecordedTest] 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 5468cefeb196..160f9145ef6b 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 @@ -27,7 +27,7 @@ public void Example_GetProperties() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -42,7 +42,7 @@ public void Example_GetProperties_AllParameters() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetProperties_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -73,7 +73,7 @@ public async Task Example_GetProperties_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -94,7 +94,7 @@ public void Example_CreateOrUpdate() kind = "System", }; - Response response = client.CreateOrUpdate(RequestContent.Create(data)); + Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -183,7 +183,7 @@ public void Example_Delete() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -198,7 +198,7 @@ public void Example_Delete_AllParameters() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -214,7 +214,7 @@ public async Task Example_Delete_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -229,7 +229,7 @@ public async Task Example_Delete_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -245,7 +245,7 @@ public void Example_TagVersion() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.TagVersion(1234, ""); + Response response = client.TagVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -259,7 +259,7 @@ public void Example_TagVersion_AllParameters() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = client.TagVersion(1234, ""); + Response response = client.TagVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -282,7 +282,7 @@ public async Task Example_TagVersion_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.TagVersionAsync(1234, ""); + Response response = await client.TagVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -296,7 +296,7 @@ public async Task Example_TagVersion_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - Response response = await client.TagVersionAsync(1234, ""); + Response response = await client.TagVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -319,7 +319,7 @@ public void Example_GetVersions() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - foreach (var item in client.GetVersions()) + foreach (var item in client.GetVersions(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -335,7 +335,7 @@ public void Example_GetVersions_AllParameters() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - foreach (var item in client.GetVersions()) + foreach (var item in client.GetVersions(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -352,7 +352,7 @@ public async Task Example_GetVersions_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - await foreach (var item in client.GetVersionsAsync()) + await foreach (var item in client.GetVersionsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -368,7 +368,7 @@ public async Task Example_GetVersions_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewClassificationRuleClient(endpoint, "", credential); - await foreach (var item in client.GetVersionsAsync()) + await foreach (var item in client.GetVersionsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).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 2b0cdfa83ef2..ef5f8a217082 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)); + Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -181,7 +181,7 @@ public void Example_GetProperties() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -196,7 +196,7 @@ public void Example_GetProperties_AllParameters() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -240,7 +240,7 @@ public async Task Example_GetProperties_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -255,7 +255,7 @@ public async Task Example_GetProperties_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -299,7 +299,7 @@ public void Example_Delete() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -314,7 +314,7 @@ public void Example_Delete_AllParameters() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -358,7 +358,7 @@ public async Task Example_Delete_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -373,7 +373,7 @@ public async Task Example_Delete_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -417,7 +417,7 @@ public void Example_GetScans() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - foreach (var item in client.GetScans()) + foreach (var item in client.GetScans(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -433,7 +433,7 @@ public void Example_GetScans_AllParameters() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - foreach (var item in client.GetScans()) + foreach (var item in client.GetScans(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -475,7 +475,7 @@ public async Task Example_GetScans_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - await foreach (var item in client.GetScansAsync()) + await foreach (var item in client.GetScansAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -491,7 +491,7 @@ public async Task Example_GetScans_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewDataSourceClient(endpoint, "", credential); - await foreach (var item in client.GetScansAsync()) + await foreach (var item in client.GetScansAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).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 b1616933dabc..d28a30e49571 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 @@ -27,7 +27,7 @@ public void Example_GetFilter() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetFilter(); + Response response = client.GetFilter(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetFilter_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetFilter(); + Response response = client.GetFilter(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetFilter_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetFilterAsync(); + Response response = await client.GetFilterAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -72,7 +72,7 @@ public async Task Example_GetFilter_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetFilterAsync(); + Response response = await client.GetFilterAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -91,7 +91,7 @@ public void Example_CreateOrUpdateFilter() var data = new { }; - Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); + Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -651,7 +651,7 @@ public void Example_GetProperties() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -666,7 +666,7 @@ public void Example_GetProperties_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetProperties(); + Response response = client.GetProperties(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -707,7 +707,7 @@ public async Task Example_GetProperties_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -722,7 +722,7 @@ public async Task Example_GetProperties_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetPropertiesAsync(); + Response response = await client.GetPropertiesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -763,7 +763,7 @@ public void Example_Delete() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -778,7 +778,7 @@ public void Example_Delete_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.Delete(); + Response response = client.Delete(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -819,7 +819,7 @@ public async Task Example_Delete_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -834,7 +834,7 @@ public async Task Example_Delete_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.DeleteAsync(); + Response response = await client.DeleteAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -875,7 +875,7 @@ public void Example_RunScan() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.RunScan(""); + Response response = client.RunScan("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -889,7 +889,7 @@ public void Example_RunScan_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.RunScan("", ""); + Response response = client.RunScan("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -912,7 +912,7 @@ public async Task Example_RunScan_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.RunScanAsync(""); + Response response = await client.RunScanAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -926,7 +926,7 @@ public async Task Example_RunScan_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.RunScanAsync("", ""); + Response response = await client.RunScanAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -949,7 +949,7 @@ public void Example_CancelScan() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.CancelScan(""); + Response response = client.CancelScan("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -963,7 +963,7 @@ public void Example_CancelScan_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.CancelScan(""); + Response response = client.CancelScan("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -986,7 +986,7 @@ public async Task Example_CancelScan_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.CancelScanAsync(""); + Response response = await client.CancelScanAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1000,7 +1000,7 @@ public async Task Example_CancelScan_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.CancelScanAsync(""); + Response response = await client.CancelScanAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("scanResultId").ToString()); @@ -1023,7 +1023,7 @@ public void Example_GetTrigger() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetTrigger(); + Response response = client.GetTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1037,7 +1037,7 @@ public void Example_GetTrigger_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.GetTrigger(); + Response response = client.GetTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1071,7 +1071,7 @@ public async Task Example_GetTrigger_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetTriggerAsync(); + Response response = await client.GetTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1085,7 +1085,7 @@ public async Task Example_GetTrigger_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.GetTriggerAsync(); + Response response = await client.GetTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1311,7 +1311,7 @@ public void Example_DeleteTrigger() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.DeleteTrigger(); + Response response = client.DeleteTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1325,7 +1325,7 @@ public void Example_DeleteTrigger_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = client.DeleteTrigger(); + Response response = client.DeleteTrigger(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1359,7 +1359,7 @@ public async Task Example_DeleteTrigger_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.DeleteTriggerAsync(); + Response response = await client.DeleteTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1373,7 +1373,7 @@ public async Task Example_DeleteTrigger_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - Response response = await client.DeleteTriggerAsync(); + Response response = await client.DeleteTriggerAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("recurrence").GetProperty("frequency").ToString()); @@ -1407,7 +1407,7 @@ public void Example_GetRuns() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - foreach (var item in client.GetRuns()) + foreach (var item in client.GetRuns(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -1422,7 +1422,7 @@ public void Example_GetRuns_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - foreach (var item in client.GetRuns()) + foreach (var item in client.GetRuns(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("parentId").ToString()); @@ -1461,7 +1461,7 @@ public async Task Example_GetRuns_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - await foreach (var item in client.GetRunsAsync()) + await foreach (var item in client.GetRunsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -1476,7 +1476,7 @@ public async Task Example_GetRuns_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanClient(endpoint, "", "", credential); - await foreach (var item in client.GetRunsAsync()) + await foreach (var item in client.GetRunsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("parentId").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 94187ae2cdcb..dde32bbc0456 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 @@ -27,7 +27,7 @@ public void Example_GetKeyVaultReference() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetKeyVaultReference(""); + Response response = client.GetKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -41,7 +41,7 @@ public void Example_GetKeyVaultReference_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetKeyVaultReference(""); + Response response = client.GetKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetKeyVaultReference_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetKeyVaultReferenceAsync(""); + Response response = await client.GetKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -72,7 +72,7 @@ public async Task Example_GetKeyVaultReference_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetKeyVaultReferenceAsync(""); + Response response = await client.GetKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -173,7 +173,7 @@ public void Example_DeleteKeyVaultReference() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.DeleteKeyVaultReference(""); + Response response = client.DeleteKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -187,7 +187,7 @@ public void Example_DeleteKeyVaultReference_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.DeleteKeyVaultReference(""); + Response response = client.DeleteKeyVaultReference("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -204,7 +204,7 @@ public async Task Example_DeleteKeyVaultReference_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.DeleteKeyVaultReferenceAsync(""); + Response response = await client.DeleteKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -218,7 +218,7 @@ public async Task Example_DeleteKeyVaultReference_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.DeleteKeyVaultReferenceAsync(""); + Response response = await client.DeleteKeyVaultReferenceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -235,7 +235,7 @@ public void Example_GetScanRuleset() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetScanRuleset(""); + Response response = client.GetScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -250,7 +250,7 @@ public void Example_GetScanRuleset_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetScanRuleset(""); + Response response = client.GetScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -269,7 +269,7 @@ public async Task Example_GetScanRuleset_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetScanRulesetAsync(""); + Response response = await client.GetScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -284,7 +284,7 @@ public async Task Example_GetScanRuleset_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetScanRulesetAsync(""); + Response response = await client.GetScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -308,7 +308,7 @@ public void Example_CreateOrUpdateScanRuleset() kind = "AzureSubscription", }; - Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data)); + Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); 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)); + Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -413,7 +413,7 @@ public void Example_DeleteScanRuleset() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.DeleteScanRuleset(""); + Response response = client.DeleteScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -428,7 +428,7 @@ public void Example_DeleteScanRuleset_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.DeleteScanRuleset(""); + Response response = client.DeleteScanRuleset("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -447,7 +447,7 @@ public async Task Example_DeleteScanRuleset_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.DeleteScanRulesetAsync(""); + Response response = await client.DeleteScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -462,7 +462,7 @@ public async Task Example_DeleteScanRuleset_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.DeleteScanRulesetAsync(""); + Response response = await client.DeleteScanRulesetAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -481,7 +481,7 @@ public void Example_GetSystemRulesetsForDataSource() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetSystemRulesetsForDataSource(""); + Response response = client.GetSystemRulesetsForDataSource("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -496,7 +496,7 @@ public void Example_GetSystemRulesetsForDataSource_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetSystemRulesetsForDataSource(""); + Response response = client.GetSystemRulesetsForDataSource("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -515,7 +515,7 @@ public async Task Example_GetSystemRulesetsForDataSource_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetSystemRulesetsForDataSourceAsync(""); + Response response = await client.GetSystemRulesetsForDataSourceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -530,7 +530,7 @@ public async Task Example_GetSystemRulesetsForDataSource_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetSystemRulesetsForDataSourceAsync(""); + Response response = await client.GetSystemRulesetsForDataSourceAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -549,7 +549,7 @@ public void Example_GetSystemRulesetsForVersion() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetSystemRulesetsForVersion(1234); + Response response = client.GetSystemRulesetsForVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -564,7 +564,7 @@ public void Example_GetSystemRulesetsForVersion_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetSystemRulesetsForVersion(1234, ""); + Response response = client.GetSystemRulesetsForVersion(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -583,7 +583,7 @@ public async Task Example_GetSystemRulesetsForVersion_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetSystemRulesetsForVersionAsync(1234); + Response response = await client.GetSystemRulesetsForVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -598,7 +598,7 @@ public async Task Example_GetSystemRulesetsForVersion_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetSystemRulesetsForVersionAsync(1234, ""); + Response response = await client.GetSystemRulesetsForVersionAsync(1234, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -617,7 +617,7 @@ public void Example_GetLatestSystemRulesets() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetLatestSystemRulesets(); + Response response = client.GetLatestSystemRulesets("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -632,7 +632,7 @@ public void Example_GetLatestSystemRulesets_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = client.GetLatestSystemRulesets(""); + Response response = client.GetLatestSystemRulesets("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -651,7 +651,7 @@ public async Task Example_GetLatestSystemRulesets_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetLatestSystemRulesetsAsync(); + Response response = await client.GetLatestSystemRulesetsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -666,7 +666,7 @@ public async Task Example_GetLatestSystemRulesets_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - Response response = await client.GetLatestSystemRulesetsAsync(""); + Response response = await client.GetLatestSystemRulesetsAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -685,7 +685,7 @@ public void Example_GetKeyVaultReferences() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetKeyVaultReferences()) + foreach (var item in client.GetKeyVaultReferences(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -700,7 +700,7 @@ public void Example_GetKeyVaultReferences_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetKeyVaultReferences()) + foreach (var item in client.GetKeyVaultReferences(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -718,7 +718,7 @@ public async Task Example_GetKeyVaultReferences_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetKeyVaultReferencesAsync()) + await foreach (var item in client.GetKeyVaultReferencesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -733,7 +733,7 @@ public async Task Example_GetKeyVaultReferences_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetKeyVaultReferencesAsync()) + await foreach (var item in client.GetKeyVaultReferencesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("baseUrl").ToString()); @@ -751,7 +751,7 @@ public void Example_GetClassificationRules() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetClassificationRules()) + foreach (var item in client.GetClassificationRules(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -767,7 +767,7 @@ public void Example_GetClassificationRules_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetClassificationRules()) + foreach (var item in client.GetClassificationRules(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -784,7 +784,7 @@ public async Task Example_GetClassificationRules_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetClassificationRulesAsync()) + await foreach (var item in client.GetClassificationRulesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -800,7 +800,7 @@ public async Task Example_GetClassificationRules_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetClassificationRulesAsync()) + await foreach (var item in client.GetClassificationRulesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -817,7 +817,7 @@ public void Example_GetDataSources() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetDataSources()) + foreach (var item in client.GetDataSources(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -833,7 +833,7 @@ public void Example_GetDataSources_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetDataSources()) + foreach (var item in client.GetDataSources(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -878,7 +878,7 @@ public async Task Example_GetDataSources_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetDataSourcesAsync()) + await foreach (var item in client.GetDataSourcesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -894,7 +894,7 @@ public async Task Example_GetDataSources_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetDataSourcesAsync()) + await foreach (var item in client.GetDataSourcesAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -939,7 +939,7 @@ public void Example_GetScanRulesets() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetScanRulesets()) + foreach (var item in client.GetScanRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -955,7 +955,7 @@ public void Example_GetScanRulesets_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetScanRulesets()) + foreach (var item in client.GetScanRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -975,7 +975,7 @@ public async Task Example_GetScanRulesets_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetScanRulesetsAsync()) + await foreach (var item in client.GetScanRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -991,7 +991,7 @@ public async Task Example_GetScanRulesets_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetScanRulesetsAsync()) + await foreach (var item in client.GetScanRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1011,7 +1011,7 @@ public void Example_GetSystemRulesets() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetSystemRulesets()) + foreach (var item in client.GetSystemRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1027,7 +1027,7 @@ public void Example_GetSystemRulesets_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetSystemRulesets()) + foreach (var item in client.GetSystemRulesets(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1047,7 +1047,7 @@ public async Task Example_GetSystemRulesets_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetSystemRulesetsAsync()) + await foreach (var item in client.GetSystemRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1063,7 +1063,7 @@ public async Task Example_GetSystemRulesets_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetSystemRulesetsAsync()) + await foreach (var item in client.GetSystemRulesetsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1083,7 +1083,7 @@ public void Example_GetSystemRulesetsVersions() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetSystemRulesetsVersions()) + foreach (var item in client.GetSystemRulesetsVersions("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1099,7 +1099,7 @@ public void Example_GetSystemRulesetsVersions_AllParameters() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - foreach (var item in client.GetSystemRulesetsVersions("")) + foreach (var item in client.GetSystemRulesetsVersions("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1119,7 +1119,7 @@ public async Task Example_GetSystemRulesetsVersions_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetSystemRulesetsVersionsAsync()) + await foreach (var item in client.GetSystemRulesetsVersionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -1135,7 +1135,7 @@ public async Task Example_GetSystemRulesetsVersions_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewScanningServiceClient(endpoint, credential); - await foreach (var item in client.GetSystemRulesetsVersionsAsync("")) + await foreach (var item in client.GetSystemRulesetsVersionsAsync("", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanClientTest.cs index 8d1f154ff387..abdda97cb5fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanClientTest.cs @@ -39,7 +39,7 @@ public async Task FliterOperations() } } }; - Response createResponse = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); + Response createResponse = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new()); Assert.AreEqual(200, createResponse.Status); //Get Response getResponse = await client.GetFilterAsync(new()); @@ -54,7 +54,7 @@ public async Task ScanRunOperations() var client = GetPurviewScanClient("test-datasource1014", "test-scan1014"); string runUUID = "32767c50-ccd7-c3fd-5aea-94abe54044de"; //Run - Response runScanResponse = await client.RunScanAsync(runUUID); + Response runScanResponse = await client.RunScanAsync(runUUID, null, new()); Assert.AreEqual(202, runScanResponse.Status); //Get list var getScanRunListResponseList = client.GetRunsAsync(new()).GetAsyncEnumerator(); @@ -96,7 +96,7 @@ public async Task ScanTriggerOperations() Response createResponse = await client.CreateOrUpdateTriggerAsync(RequestContent.Create(data)); Assert.AreEqual(201, createResponse.Status); //Delete - Response deleteResponse = await client.DeleteTriggerAsync(); + Response deleteResponse = await client.DeleteTriggerAsync(new()); Assert.AreEqual(200, deleteResponse.Status); } [RecordedTest] @@ -133,7 +133,7 @@ public async Task ScanOperations() JsonElement getBodyJson = jsonDocument.RootElement; Assert.AreEqual("datasources/test-datasource1009/scans/test-scan1009-2", getBodyJson.GetProperty("id").GetString()); //Delete - Response deleteResponse = await client.DeleteAsync(); + Response deleteResponse = await client.DeleteAsync(new()); Assert.AreEqual(200, deleteResponse.Status); } diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanningServiceClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanningServiceClientTest.cs index 3dc06f1765e9..43576bdfd282 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanningServiceClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/ScanningServiceClientTest.cs @@ -39,19 +39,19 @@ public async Task SystemRulesetsDataSourceOperations() JsonElement fetchWithTypeBodyJson = jsonDocumentWithType.RootElement; Assert.AreEqual("systemscanrulesets/AzureFileService", fetchWithTypeBodyJson.GetProperty("id").GetString()); //Get with type and version - Response fetchWithTypeVersionResponse = await client.GetSystemRulesetsForVersionAsync(1, "AzureFileService"); + Response fetchWithTypeVersionResponse = await client.GetSystemRulesetsForVersionAsync(1, "AzureFileService", new()); Assert.AreEqual(200, fetchWithTypeVersionResponse.Status); using var jsonDocumentWithTypeVersion = JsonDocument.Parse(GetContentFromResponse(fetchWithTypeVersionResponse)); JsonElement fetchWithTypeVersionBodyJson = jsonDocumentWithTypeVersion.RootElement; Assert.AreEqual("systemscanrulesets/AzureFileService", fetchWithTypeVersionBodyJson.GetProperty("id").GetString()); //Get with type for latest version - Response fetchWithTypeLatestVerResponse = await client.GetLatestSystemRulesetsAsync("AzureFileService"); + Response fetchWithTypeLatestVerResponse = await client.GetLatestSystemRulesetsAsync("AzureFileService", new()); Assert.AreEqual(200, fetchWithTypeLatestVerResponse.Status); using var jsonDocumentWithTypeLatestVer = JsonDocument.Parse(GetContentFromResponse(fetchWithTypeLatestVerResponse)); JsonElement fetchWithTypeLatestVerBodyJson = jsonDocumentWithTypeLatestVer.RootElement; Assert.AreEqual("systemscanrulesets/AzureFileService", fetchWithTypeLatestVerBodyJson.GetProperty("id").GetString()); //Get with type for list of versions - var fetchWithTypeforListResponseList = client.GetSystemRulesetsVersionsAsync("AzureFileService").GetAsyncEnumerator(); + var fetchWithTypeforListResponseList = client.GetSystemRulesetsVersionsAsync("AzureFileService", new()).GetAsyncEnumerator(); await fetchWithTypeforListResponseList.MoveNextAsync(); using var jsonDocumentWithTypeForList = JsonDocument.Parse(fetchWithTypeforListResponseList.Current); JsonElement fetchWithTypeforListBodyJson = jsonDocumentWithTypeForList.RootElement; @@ -81,7 +81,7 @@ public async Task KeyVaultReferenceOperations() JsonElement getBodyJson = jsonDocument.RootElement; Assert.AreEqual("https://test-keyvault0908.vault.azure.net/", getBodyJson.GetProperty("properties").GetProperty("baseUrl").GetString()); //Delete - Response deleteResponse = await client.DeleteKeyVaultReferenceAsync("default-keyvault"); + Response deleteResponse = await client.DeleteKeyVaultReferenceAsync("default-keyvault", new()); Assert.AreEqual(200, deleteResponse.Status); } [RecordedTest] @@ -123,7 +123,7 @@ public async Task ScanRulesOperations() includedCustomClassificationRuleNames = new string[] { "test_rule1008" } } }; - Response createReponse = await client.CreateOrUpdateScanRulesetAsync("test-scanrule1008", RequestContent.Create(data)); + Response createReponse = await client.CreateOrUpdateScanRulesetAsync("test-scanrule1008", RequestContent.Create(data), new()); Assert.AreEqual(201, createReponse.Status); //Update var updateData = new @@ -136,7 +136,7 @@ public async Task ScanRulesOperations() description = "test-description" } }; - Response updateReponse = await client.CreateOrUpdateScanRulesetAsync("test-scanrule1008", RequestContent.Create(updateData)); + Response updateReponse = await client.CreateOrUpdateScanRulesetAsync("test-scanrule1008", RequestContent.Create(updateData), new()); Assert.AreEqual(200, updateReponse.Status); //Get Response getResponse = await client.GetScanRulesetAsync("test-scanrule1008", new()); @@ -145,7 +145,7 @@ public async Task ScanRulesOperations() JsonElement getBodyJson = jsonDocument.RootElement; Assert.AreEqual("scanrulesets/test-scanrule1008", getBodyJson.GetProperty("id").GetString()); //delete - Response deleteResponse = await client.DeleteScanRulesetAsync("test-scanrule1008"); + Response deleteResponse = await client.DeleteScanRulesetAsync("test-scanrule1008", new()); Assert.AreEqual(200, deleteResponse.Status); } private static BinaryData GetContentFromResponse(Response r) diff --git a/sdk/purview/Azure.Analytics.Purview.Share/README.md b/sdk/purview/Azure.Analytics.Purview.Share/README.md index 07aeff82c534..d52567ac8872 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/README.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/README.md @@ -170,7 +170,7 @@ var endPoint = "https://.purview.azure.com/share"; var sentShareInvitationsClient = new SentShareInvitationsClient(endPoint, credential); // View sent share invitations. (Pending/Rejected) -var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName).ToEnumerableAsync(); +var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName, null, null, null, new()).ToEnumerableAsync(); var responseInvitation = sentShareInvitations.FirstOrDefault(); if (responseInvitation == null) @@ -191,7 +191,7 @@ var endPoint = "https://.purview.azure.com/share"; var receivedInvitationsClient = new ReceivedInvitationsClient(endPoint, credential); // View received invitations -var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); +var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); ``` ### Create a received share @@ -202,7 +202,7 @@ var endPoint = "https://.purview.azure.com/share"; var receivedInvitationsClient = new ReceivedInvitationsClient(endPoint, credential); // Create received share -var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); +var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); var receivedShareName = "fabrikam-received-share"; var receivedInvitation = receivedInvitations.LastOrDefault(); @@ -245,7 +245,7 @@ var endPoint = "https://.purview.azure.com/share"; var acceptedSentSharesClient = new AcceptedSentSharesClient(endPoint, credential); // View accepted shares -var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName).ToEnumerableAsync(); +var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName, null, new()).ToEnumerableAsync(); var acceptedSentShare = acceptedSentShares.FirstOrDefault(); @@ -267,7 +267,7 @@ var endPoint = "https://.purview.azure.com/share"; var receivedAssetsClient = new ReceivedAssetsClient(endPoint, credential); // Get received assets -var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName).ToEnumerableAsync(); +var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName, null, new()).ToEnumerableAsync(); using var jsonDocument = JsonDocument.Parse(receivedAssets.First()); var receivedAssetName = jsonDocument.RootElement.GetProperty("name").GetString(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs index 94333d052e61..5d693321a9bb 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs @@ -6,14 +6,14 @@ protected AcceptedSentSharesClient() { } public AcceptedSentSharesClient(string endpoint, Azure.Core.TokenCredential credential) { } public AcceptedSentSharesClient(string endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Share.PurviewShareClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetAcceptedSentShare(string sentShareName, string acceptedSentShareName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAcceptedSentShareAsync(string sentShareName, string acceptedSentShareName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAcceptedSentShares(string sentShareName, string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAcceptedSentSharesAsync(string sentShareName, string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAcceptedSentShare(string sentShareName, string acceptedSentShareName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAcceptedSentShareAsync(string sentShareName, string acceptedSentShareName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAcceptedSentShares(string sentShareName, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAcceptedSentSharesAsync(string sentShareName, string skipToken, Azure.RequestContext context) { throw null; } public virtual Azure.Operation Reinstate(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> ReinstateAsync(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation Revoke(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> RevokeAsync(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation Revoke(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> RevokeAsync(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId, Azure.RequestContext context) { throw null; } public virtual Azure.Operation UpdateExpiration(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> UpdateExpirationAsync(Azure.WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } } @@ -27,10 +27,10 @@ public AssetMappingsClient(string endpoint, Azure.Core.TokenCredential credentia public virtual System.Threading.Tasks.Task> CreateAsync(Azure.WaitUntil waitUntil, string receivedShareName, string assetMappingName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation Delete(Azure.WaitUntil waitUntil, string receivedShareName, string assetMappingName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string receivedShareName, string assetMappingName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAssetMapping(string receivedShareName, string assetMappingName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAssetMappingAsync(string receivedShareName, string assetMappingName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAssetMappings(string receivedShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAssetMappingsAsync(string receivedShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAssetMapping(string receivedShareName, string assetMappingName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAssetMappingAsync(string receivedShareName, string assetMappingName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAssetMappings(string receivedShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAssetMappingsAsync(string receivedShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } } public partial class AssetsClient { @@ -42,10 +42,10 @@ public AssetsClient(string endpoint, Azure.Core.TokenCredential credential, Azur public virtual System.Threading.Tasks.Task> CreateAsync(Azure.WaitUntil waitUntil, string sentShareName, string assetName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation Delete(Azure.WaitUntil waitUntil, string sentShareName, string assetName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string sentShareName, string assetName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAsset(string sentShareName, string assetName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAssetAsync(string sentShareName, string assetName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAssets(string sentShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAssetsAsync(string sentShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetAsset(string sentShareName, string assetName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetAssetAsync(string sentShareName, string assetName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAssets(string sentShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAssetsAsync(string sentShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } } public partial class EmailRegistrationClient { @@ -55,8 +55,8 @@ public EmailRegistrationClient(string endpoint, Azure.Core.TokenCredential crede public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Activate(Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task ActivateAsync(Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Register(string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RegisterAsync(string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Register(string repeatabilityRequestId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RegisterAsync(string repeatabilityRequestId, Azure.RequestContext context) { throw null; } } public partial class PurviewShareClientOptions : Azure.Core.ClientOptions { @@ -72,8 +72,8 @@ protected ReceivedAssetsClient() { } public ReceivedAssetsClient(string endpoint, Azure.Core.TokenCredential credential) { } public ReceivedAssetsClient(string endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Share.PurviewShareClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Pageable GetReceivedAssets(string receivedShareName, string skipToken = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetReceivedAssetsAsync(string receivedShareName, string skipToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetReceivedAssets(string receivedShareName, string skipToken, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetReceivedAssetsAsync(string receivedShareName, string skipToken, Azure.RequestContext context) { throw null; } } public partial class ReceivedInvitationsClient { @@ -81,10 +81,10 @@ protected ReceivedInvitationsClient() { } public ReceivedInvitationsClient(string endpoint, Azure.Core.TokenCredential credential) { } public ReceivedInvitationsClient(string endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Share.PurviewShareClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetReceivedInvitation(string receivedInvitationName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetReceivedInvitationAsync(string receivedInvitationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetReceivedInvitations(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetReceivedInvitationsAsync(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetReceivedInvitation(string receivedInvitationName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetReceivedInvitationAsync(string receivedInvitationName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetReceivedInvitations(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetReceivedInvitationsAsync(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } public virtual Azure.Response Reject(string receivedInvitationName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RejectAsync(string receivedInvitationName, Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } } @@ -98,10 +98,10 @@ public ReceivedSharesClient(string endpoint, Azure.Core.TokenCredential credenti public virtual System.Threading.Tasks.Task CreateAsync(string receivedShareName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation Delete(Azure.WaitUntil waitUntil, string receivedShareName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string receivedShareName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetReceivedShare(string receivedShareName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetReceivedShareAsync(string receivedShareName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetReceivedShares(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetReceivedSharesAsync(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetReceivedShare(string receivedShareName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetReceivedShareAsync(string receivedShareName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetReceivedShares(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetReceivedSharesAsync(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } } public partial class SentShareInvitationsClient { @@ -113,10 +113,10 @@ public SentShareInvitationsClient(string endpoint, Azure.Core.TokenCredential cr public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sentShareName, string sentShareInvitationName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response Delete(string sentShareName, string sentShareInvitationName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(string sentShareName, string sentShareInvitationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSentShareInvitation(string sentShareName, string sentShareInvitationName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSentShareInvitationAsync(string sentShareName, string sentShareInvitationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSentShareInvitations(string sentShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSentShareInvitationsAsync(string sentShareName, string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSentShareInvitation(string sentShareName, string sentShareInvitationName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSentShareInvitationAsync(string sentShareName, string sentShareInvitationName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSentShareInvitations(string sentShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSentShareInvitationsAsync(string sentShareName, string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } } public partial class SentSharesClient { @@ -128,10 +128,10 @@ public SentSharesClient(string endpoint, Azure.Core.TokenCredential credential, public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string sentShareName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation Delete(Azure.WaitUntil waitUntil, string sentShareName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string sentShareName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSentShare(string sentShareName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSentShareAsync(string sentShareName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSentShares(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSentSharesAsync(string skipToken = null, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSentShare(string sentShareName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSentShareAsync(string sentShareName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSentShares(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSentSharesAsync(string skipToken, string filter, string orderby, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AcceptedSentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AcceptedSentSharesClient.cs index 4e26bee0392f..3395af9999ba 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AcceptedSentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AcceptedSentSharesClient.cs @@ -78,7 +78,7 @@ public AcceptedSentSharesClient(string endpoint, TokenCredential credential, Pur /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAcceptedSentShareAsync(string sentShareName, string acceptedSentShareName, RequestContext context = null) + public virtual async Task GetAcceptedSentShareAsync(string sentShareName, string acceptedSentShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(acceptedSentShareName, nameof(acceptedSentShareName)); @@ -115,7 +115,7 @@ public virtual async Task GetAcceptedSentShareAsync(string sentShareNa /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAcceptedSentShare(string sentShareName, string acceptedSentShareName, RequestContext context = null) + public virtual Response GetAcceptedSentShare(string sentShareName, string acceptedSentShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(acceptedSentShareName, nameof(acceptedSentShareName)); @@ -152,7 +152,7 @@ public virtual Response GetAcceptedSentShare(string sentShareName, string accept /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAcceptedSentSharesAsync(string sentShareName, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetAcceptedSentSharesAsync(string sentShareName, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -179,7 +179,7 @@ public virtual AsyncPageable GetAcceptedSentSharesAsync(string sentS /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAcceptedSentShares(string sentShareName, string skipToken = null, RequestContext context = null) + public virtual Pageable GetAcceptedSentShares(string sentShareName, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -290,7 +290,7 @@ public virtual Operation Reinstate(WaitUntil waitUntil, string sentS /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> RevokeAsync(WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId = null, RequestContext context = null) + public virtual async Task> RevokeAsync(WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(acceptedSentShareName, nameof(acceptedSentShareName)); @@ -329,7 +329,7 @@ public virtual async Task> RevokeAsync(WaitUntil waitUntil /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation Revoke(WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId = null, RequestContext context = null) + public virtual Operation Revoke(WaitUntil waitUntil, string sentShareName, string acceptedSentShareName, string repeatabilityRequestId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(acceptedSentShareName, nameof(acceptedSentShareName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetMappingsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetMappingsClient.cs index c8ff3efe475b..bfead6a5ec20 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetMappingsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetMappingsClient.cs @@ -78,7 +78,7 @@ public AssetMappingsClient(string endpoint, TokenCredential credential, PurviewS /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAssetMappingAsync(string receivedShareName, string assetMappingName, RequestContext context = null) + public virtual async Task GetAssetMappingAsync(string receivedShareName, string assetMappingName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); Argument.AssertNotNullOrEmpty(assetMappingName, nameof(assetMappingName)); @@ -115,7 +115,7 @@ public virtual async Task GetAssetMappingAsync(string receivedShareNam /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAssetMapping(string receivedShareName, string assetMappingName, RequestContext context = null) + public virtual Response GetAssetMapping(string receivedShareName, string assetMappingName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); Argument.AssertNotNullOrEmpty(assetMappingName, nameof(assetMappingName)); @@ -154,7 +154,7 @@ public virtual Response GetAssetMapping(string receivedShareName, string assetMa /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAssetMappingsAsync(string receivedShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAssetMappingsAsync(string receivedShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); @@ -183,7 +183,7 @@ public virtual AsyncPageable GetAssetMappingsAsync(string receivedSh /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAssetMappings(string receivedShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAssetMappings(string receivedShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetsClient.cs index b9ca59f253e3..0db8259151f7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AssetsClient.cs @@ -78,7 +78,7 @@ public AssetsClient(string endpoint, TokenCredential credential, PurviewShareCli /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetAssetAsync(string sentShareName, string assetName, RequestContext context = null) + public virtual async Task GetAssetAsync(string sentShareName, string assetName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(assetName, nameof(assetName)); @@ -115,7 +115,7 @@ public virtual async Task GetAssetAsync(string sentShareName, string a /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetAsset(string sentShareName, string assetName, RequestContext context = null) + public virtual Response GetAsset(string sentShareName, string assetName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(assetName, nameof(assetName)); @@ -154,7 +154,7 @@ public virtual Response GetAsset(string sentShareName, string assetName, Request /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAssetsAsync(string sentShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAssetsAsync(string sentShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -183,7 +183,7 @@ public virtual AsyncPageable GetAssetsAsync(string sentShareName, st /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAssets(string sentShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAssets(string sentShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AcceptedSentSharesClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AcceptedSentSharesClient.xml index 935789a62980..bb16cb0f9cf7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AcceptedSentSharesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AcceptedSentSharesClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetAcceptedSentShareAsync with required parameters var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -Response response = await client.GetAcceptedSentShareAsync("", ""); +Response response = await client.GetAcceptedSentShareAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetAcceptedSentShare with required parameters and var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -Response response = client.GetAcceptedSentShare("", ""); +Response response = client.GetAcceptedSentShare("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -42,19 +42,7 @@ This sample shows how to call GetAcceptedSentSharesAsync with required parameter var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -await foreach (var item in client.GetAcceptedSentSharesAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAcceptedSentSharesAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetAcceptedSentSharesAsync("", "")) +await foreach (var item in client.GetAcceptedSentSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -72,19 +60,7 @@ This sample shows how to call GetAcceptedSentShares with required parameters and var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -foreach (var item in client.GetAcceptedSentShares("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAcceptedSentShares with all parameters, and how to parse the result. -", credential); - -foreach (var item in client.GetAcceptedSentShares("", "")) +foreach (var item in client.GetAcceptedSentShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -186,19 +162,7 @@ This sample shows how to call RevokeAsync with required parameters and parse the var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -var operation = await client.RevokeAsync(WaitUntil.Completed, "", ""); - -BinaryData responseData = operation.Value; -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("shareKind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RevokeAsync with all parameters, and how to parse the result. -", credential); - -var operation = await client.RevokeAsync(WaitUntil.Completed, "", "", ""); +var operation = await client.RevokeAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -216,19 +180,7 @@ This sample shows how to call Revoke with required parameters and parse the resu var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); -var operation = client.Revoke(WaitUntil.Completed, "", ""); - -BinaryData responseData = operation.Value; -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("shareKind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Revoke with all parameters, and how to parse the result. -", credential); - -var operation = client.Revoke(WaitUntil.Completed, "", "", ""); +var operation = client.Revoke(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetMappingsClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetMappingsClient.xml index 7505314bf0ac..d0e6d9eece2e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetMappingsClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetMappingsClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetAssetMappingAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); -Response response = await client.GetAssetMappingAsync("", ""); +Response response = await client.GetAssetMappingAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetAssetMapping with required parameters and parse var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); -Response response = client.GetAssetMapping("", ""); +Response response = client.GetAssetMapping("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -42,19 +42,7 @@ This sample shows how to call GetAssetMappingsAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); -await foreach (var item in client.GetAssetMappingsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAssetMappingsAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetAssetMappingsAsync("", "", "", "")) +await foreach (var item in client.GetAssetMappingsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -72,19 +60,7 @@ This sample shows how to call GetAssetMappings with required parameters and pars var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); -foreach (var item in client.GetAssetMappings("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAssetMappings with all parameters, and how to parse the result. -", credential); - -foreach (var item in client.GetAssetMappings("", "", "", "")) +foreach (var item in client.GetAssetMappings("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetsClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetsClient.xml index 2389b9d9c753..cae2f9694879 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetsClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/AssetsClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetAssetAsync with required parameters and parse t var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); -Response response = await client.GetAssetAsync("", ""); +Response response = await client.GetAssetAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetAsset with required parameters and parse the re var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); -Response response = client.GetAsset("", ""); +Response response = client.GetAsset("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -42,19 +42,7 @@ This sample shows how to call GetAssetsAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); -await foreach (var item in client.GetAssetsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAssetsAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetAssetsAsync("", "", "", "")) +await foreach (var item in client.GetAssetsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -72,19 +60,7 @@ This sample shows how to call GetAssets with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); -foreach (var item in client.GetAssets("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAssets with all parameters, and how to parse the result. -", credential); - -foreach (var item in client.GetAssets("", "", "", "")) +foreach (var item in client.GetAssets("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/EmailRegistrationClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/EmailRegistrationClient.xml index 11b93d5bd92b..fbc52667222c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/EmailRegistrationClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/EmailRegistrationClient.xml @@ -81,22 +81,12 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call RegisterAsync and parse the result. +This sample shows how to call RegisterAsync with required parameters and parse the result. ", credential); -Response response = await client.RegisterAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RegisterAsync with all parameters, and how to parse the result. -", credential); - -Response response = await client.RegisterAsync(""); +Response response = await client.RegisterAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -112,22 +102,12 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call Register and parse the result. -", credential); - -Response response = client.Register(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Register with all parameters, and how to parse the result. +This sample shows how to call Register with required parameters and parse the result. ", credential); -Response response = client.Register(""); +Response response = client.Register("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedAssetsClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedAssetsClient.xml index 6933898fa580..c8aa88fcfc14 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedAssetsClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedAssetsClient.xml @@ -8,19 +8,7 @@ This sample shows how to call GetReceivedAssetsAsync with required parameters an var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); -await foreach (var item in client.GetReceivedAssetsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedAssetsAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetReceivedAssetsAsync("", "")) +await foreach (var item in client.GetReceivedAssetsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -38,19 +26,7 @@ This sample shows how to call GetReceivedAssets with required parameters and par var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); -foreach (var item in client.GetReceivedAssets("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("kind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedAssets with all parameters, and how to parse the result. -", credential); - -foreach (var item in client.GetReceivedAssets("", "")) +foreach (var item in client.GetReceivedAssets("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedInvitationsClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedInvitationsClient.xml index 93a8993c3c26..f7a21dedbfd1 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedInvitationsClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedInvitationsClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetReceivedInvitationAsync with required parameter var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); -Response response = await client.GetReceivedInvitationAsync(""); +Response response = await client.GetReceivedInvitationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetReceivedInvitation with required parameters and var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); -Response response = client.GetReceivedInvitation(""); +Response response = client.GetReceivedInvitation("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -127,24 +127,12 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetReceivedInvitationsAsync and parse the result. +This sample shows how to call GetReceivedInvitationsAsync with required parameters and parse the result. ", credential); -await foreach (var item in client.GetReceivedInvitationsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedInvitationsAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetReceivedInvitationsAsync("", "", "")) +await foreach (var item in client.GetReceivedInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -157,24 +145,12 @@ await foreach (var item in client.GetReceivedInvitationsAsync("", " -This sample shows how to call GetReceivedInvitations and parse the result. -", credential); - -foreach (var item in client.GetReceivedInvitations()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedInvitations with all parameters, and how to parse the result. +This sample shows how to call GetReceivedInvitations with required parameters and parse the result. ", credential); -foreach (var item in client.GetReceivedInvitations("", "", "")) +foreach (var item in client.GetReceivedInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedSharesClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedSharesClient.xml index b0a15ec47e6b..c23f44cd23c0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedSharesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/ReceivedSharesClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetReceivedShareAsync with required parameters and var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); -Response response = await client.GetReceivedShareAsync(""); +Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetReceivedShare with required parameters and pars var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); -Response response = client.GetReceivedShare(""); +Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -145,24 +145,12 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetReceivedSharesAsync and parse the result. +This sample shows how to call GetReceivedSharesAsync with required parameters and parse the result. ", credential); -await foreach (var item in client.GetReceivedSharesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedSharesAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetReceivedSharesAsync("", "", "")) +await foreach (var item in client.GetReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -175,24 +163,12 @@ await foreach (var item in client.GetReceivedSharesAsync("", " -This sample shows how to call GetReceivedShares and parse the result. -", credential); - -foreach (var item in client.GetReceivedShares()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetReceivedShares with all parameters, and how to parse the result. +This sample shows how to call GetReceivedShares with required parameters and parse the result. ", credential); -foreach (var item in client.GetReceivedShares("", "", "")) +foreach (var item in client.GetReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentShareInvitationsClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentShareInvitationsClient.xml index 851b02f45e77..e2d14f6443ca 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentShareInvitationsClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentShareInvitationsClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetSentShareInvitationAsync with required paramete var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); -Response response = await client.GetSentShareInvitationAsync("", ""); +Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetSentShareInvitation with required parameters an var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); -Response response = client.GetSentShareInvitation("", ""); +Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -158,19 +158,7 @@ This sample shows how to call GetSentShareInvitationsAsync with required paramet var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); -await foreach (var item in client.GetSentShareInvitationsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSentShareInvitationsAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetSentShareInvitationsAsync("", "", "", "")) +await foreach (var item in client.GetSentShareInvitationsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -188,19 +176,7 @@ This sample shows how to call GetSentShareInvitations with required parameters a var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); -foreach (var item in client.GetSentShareInvitations("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSentShareInvitations with all parameters, and how to parse the result. -", credential); - -foreach (var item in client.GetSentShareInvitations("", "", "", "")) +foreach (var item in client.GetSentShareInvitations("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentSharesClient.xml b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentSharesClient.xml index 5bced68bf606..21651c7e90eb 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentSharesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/Docs/SentSharesClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetSentShareAsync with required parameters and par var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); -Response response = await client.GetSentShareAsync(""); +Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -25,7 +25,7 @@ This sample shows how to call GetSentShare with required parameters and parse th var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); -Response response = client.GetSentShare(""); +Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -135,24 +135,12 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call GetSentSharesAsync and parse the result. +This sample shows how to call GetSentSharesAsync with required parameters and parse the result. ", credential); -await foreach (var item in client.GetSentSharesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSentSharesAsync with all parameters, and how to parse the result. -", credential); - -await foreach (var item in client.GetSentSharesAsync("", "", "")) +await foreach (var item in client.GetSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -165,24 +153,12 @@ await foreach (var item in client.GetSentSharesAsync("", "", -This sample shows how to call GetSentShares and parse the result. -", credential); - -foreach (var item in client.GetSentShares()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetSentShares with all parameters, and how to parse the result. +This sample shows how to call GetSentShares with required parameters and parse the result. ", credential); -foreach (var item in client.GetSentShares("", "", "")) +foreach (var item in client.GetSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/EmailRegistrationClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/EmailRegistrationClient.cs index e2c5bb4269df..67030a28036c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/EmailRegistrationClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/EmailRegistrationClient.cs @@ -145,7 +145,7 @@ public virtual Response Activate(RequestContent content, string repeatabilityReq /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task RegisterAsync(string repeatabilityRequestId = null, RequestContext context = null) + public virtual async Task RegisterAsync(string repeatabilityRequestId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("EmailRegistrationClient.Register"); scope.Start(); @@ -176,7 +176,7 @@ public virtual async Task RegisterAsync(string repeatabilityRequestId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response Register(string repeatabilityRequestId = null, RequestContext context = null) + public virtual Response Register(string repeatabilityRequestId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("EmailRegistrationClient.Register"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedAssetsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedAssetsClient.cs index b6a6dac288c7..479b5a9db1c5 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedAssetsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedAssetsClient.cs @@ -77,7 +77,7 @@ public ReceivedAssetsClient(string endpoint, TokenCredential credential, Purview /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetReceivedAssetsAsync(string receivedShareName, string skipToken = null, RequestContext context = null) + public virtual AsyncPageable GetReceivedAssetsAsync(string receivedShareName, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); @@ -104,7 +104,7 @@ public virtual AsyncPageable GetReceivedAssetsAsync(string receivedS /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetReceivedAssets(string receivedShareName, string skipToken = null, RequestContext context = null) + public virtual Pageable GetReceivedAssets(string receivedShareName, string skipToken, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedInvitationsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedInvitationsClient.cs index c1fd7dc95bd0..78f7ed178fea 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedInvitationsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedInvitationsClient.cs @@ -77,7 +77,7 @@ public ReceivedInvitationsClient(string endpoint, TokenCredential credential, Pu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetReceivedInvitationAsync(string receivedInvitationName, RequestContext context = null) + public virtual async Task GetReceivedInvitationAsync(string receivedInvitationName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedInvitationName, nameof(receivedInvitationName)); @@ -112,7 +112,7 @@ public virtual async Task GetReceivedInvitationAsync(string receivedIn /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetReceivedInvitation(string receivedInvitationName, RequestContext context = null) + public virtual Response GetReceivedInvitation(string receivedInvitationName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedInvitationName, nameof(receivedInvitationName)); @@ -223,7 +223,7 @@ public virtual Response Reject(string receivedInvitationName, RequestContent con /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetReceivedInvitationsAsync(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetReceivedInvitationsAsync(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetReceivedInvitationsRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetReceivedInvitationsNextPageRequest(nextLink, skipToken, filter, orderby, context); @@ -247,7 +247,7 @@ public virtual AsyncPageable GetReceivedInvitationsAsync(string skip /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetReceivedInvitations(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetReceivedInvitations(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetReceivedInvitationsRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetReceivedInvitationsNextPageRequest(nextLink, skipToken, filter, orderby, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedSharesClient.cs index a5033ccc910a..d168d169f673 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/ReceivedSharesClient.cs @@ -77,7 +77,7 @@ public ReceivedSharesClient(string endpoint, TokenCredential credential, Purview /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetReceivedShareAsync(string receivedShareName, RequestContext context = null) + public virtual async Task GetReceivedShareAsync(string receivedShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); @@ -112,7 +112,7 @@ public virtual async Task GetReceivedShareAsync(string receivedShareNa /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetReceivedShare(string receivedShareName, RequestContext context = null) + public virtual Response GetReceivedShare(string receivedShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareName, nameof(receivedShareName)); @@ -221,7 +221,7 @@ public virtual Response Create(string receivedShareName, RequestContent content, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetReceivedSharesAsync(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetReceivedSharesAsync(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetReceivedSharesRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetReceivedSharesNextPageRequest(nextLink, skipToken, filter, orderby, context); @@ -245,7 +245,7 @@ public virtual AsyncPageable GetReceivedSharesAsync(string skipToken /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetReceivedShares(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetReceivedShares(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetReceivedSharesRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetReceivedSharesNextPageRequest(nextLink, skipToken, filter, orderby, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentShareInvitationsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentShareInvitationsClient.cs index f65817fd6f9c..6e0655189936 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentShareInvitationsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentShareInvitationsClient.cs @@ -78,7 +78,7 @@ public SentShareInvitationsClient(string endpoint, TokenCredential credential, P /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSentShareInvitationAsync(string sentShareName, string sentShareInvitationName, RequestContext context = null) + public virtual async Task GetSentShareInvitationAsync(string sentShareName, string sentShareInvitationName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(sentShareInvitationName, nameof(sentShareInvitationName)); @@ -115,7 +115,7 @@ public virtual async Task GetSentShareInvitationAsync(string sentShare /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSentShareInvitation(string sentShareName, string sentShareInvitationName, RequestContext context = null) + public virtual Response GetSentShareInvitation(string sentShareName, string sentShareInvitationName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); Argument.AssertNotNullOrEmpty(sentShareInvitationName, nameof(sentShareInvitationName)); @@ -306,7 +306,7 @@ public virtual Response Delete(string sentShareName, string sentShareInvitationN /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSentShareInvitationsAsync(string sentShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetSentShareInvitationsAsync(string sentShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -335,7 +335,7 @@ public virtual AsyncPageable GetSentShareInvitationsAsync(string sen /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSentShareInvitations(string sentShareName, string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetSentShareInvitations(string sentShareName, string skipToken, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentSharesClient.cs index c9b9f652ea1e..23a28ce2da82 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/SentSharesClient.cs @@ -77,7 +77,7 @@ public SentSharesClient(string endpoint, TokenCredential credential, PurviewShar /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSentShareAsync(string sentShareName, RequestContext context = null) + public virtual async Task GetSentShareAsync(string sentShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -112,7 +112,7 @@ public virtual async Task GetSentShareAsync(string sentShareName, Requ /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSentShare(string sentShareName, RequestContext context = null) + public virtual Response GetSentShare(string sentShareName, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareName, nameof(sentShareName)); @@ -221,7 +221,7 @@ public virtual Response CreateOrUpdate(string sentShareName, RequestContent cont /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSentSharesAsync(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetSentSharesAsync(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSentSharesRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSentSharesNextPageRequest(nextLink, skipToken, filter, orderby, context); @@ -245,7 +245,7 @@ public virtual AsyncPageable GetSentSharesAsync(string skipToken = n /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSentShares(string skipToken = null, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetSentShares(string skipToken, string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSentSharesRequest(skipToken, filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSentSharesNextPageRequest(nextLink, skipToken, filter, orderby, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AcceptedSentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AcceptedSentSharesClient.cs index 568dc10ebfdd..b199f82d6084 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AcceptedSentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AcceptedSentSharesClient.cs @@ -26,7 +26,7 @@ public void Example_GetAcceptedSentShare() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - Response response = client.GetAcceptedSentShare("", ""); + Response response = client.GetAcceptedSentShare("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetAcceptedSentShare_AllParameters() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - Response response = client.GetAcceptedSentShare("", ""); + Response response = client.GetAcceptedSentShare("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetAcceptedSentShare_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - Response response = await client.GetAcceptedSentShareAsync("", ""); + Response response = await client.GetAcceptedSentShareAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetAcceptedSentShare_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - Response response = await client.GetAcceptedSentShareAsync("", ""); + Response response = await client.GetAcceptedSentShareAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -86,7 +86,7 @@ public void Example_GetAcceptedSentShares() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - foreach (var item in client.GetAcceptedSentShares("")) + foreach (var item in client.GetAcceptedSentShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -101,7 +101,7 @@ public void Example_GetAcceptedSentShares_AllParameters() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - foreach (var item in client.GetAcceptedSentShares("", "")) + foreach (var item in client.GetAcceptedSentShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -118,7 +118,7 @@ public async Task Example_GetAcceptedSentShares_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - await foreach (var item in client.GetAcceptedSentSharesAsync("")) + await foreach (var item in client.GetAcceptedSentSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -133,7 +133,7 @@ public async Task Example_GetAcceptedSentShares_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - await foreach (var item in client.GetAcceptedSentSharesAsync("", "")) + await foreach (var item in client.GetAcceptedSentSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -244,7 +244,7 @@ public void Example_Revoke() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - var operation = client.Revoke(WaitUntil.Completed, "", ""); + var operation = client.Revoke(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -259,7 +259,7 @@ public void Example_Revoke_AllParameters() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - var operation = client.Revoke(WaitUntil.Completed, "", "", ""); + var operation = client.Revoke(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -276,7 +276,7 @@ public async Task Example_Revoke_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - var operation = await client.RevokeAsync(WaitUntil.Completed, "", ""); + var operation = await client.RevokeAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -291,7 +291,7 @@ public async Task Example_Revoke_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AcceptedSentSharesClient("", credential); - var operation = await client.RevokeAsync(WaitUntil.Completed, "", "", ""); + var operation = await client.RevokeAsync(WaitUntil.Completed, "", "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetMappingsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetMappingsClient.cs index 0faa1e7a1706..233cc9fb16fc 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetMappingsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetMappingsClient.cs @@ -26,7 +26,7 @@ public void Example_GetAssetMapping() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - Response response = client.GetAssetMapping("", ""); + Response response = client.GetAssetMapping("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetAssetMapping_AllParameters() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - Response response = client.GetAssetMapping("", ""); + Response response = client.GetAssetMapping("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetAssetMapping_Async() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - Response response = await client.GetAssetMappingAsync("", ""); + Response response = await client.GetAssetMappingAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetAssetMapping_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - Response response = await client.GetAssetMappingAsync("", ""); + Response response = await client.GetAssetMappingAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -86,7 +86,7 @@ public void Example_GetAssetMappings() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - foreach (var item in client.GetAssetMappings("")) + foreach (var item in client.GetAssetMappings("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -101,7 +101,7 @@ public void Example_GetAssetMappings_AllParameters() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - foreach (var item in client.GetAssetMappings("", "", "", "")) + foreach (var item in client.GetAssetMappings("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -118,7 +118,7 @@ public async Task Example_GetAssetMappings_Async() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - await foreach (var item in client.GetAssetMappingsAsync("")) + await foreach (var item in client.GetAssetMappingsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -133,7 +133,7 @@ public async Task Example_GetAssetMappings_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AssetMappingsClient("", credential); - await foreach (var item in client.GetAssetMappingsAsync("", "", "", "")) + await foreach (var item in client.GetAssetMappingsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetsClient.cs index 026934418b4d..d2ff5d8731c4 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_AssetsClient.cs @@ -26,7 +26,7 @@ public void Example_GetAsset() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - Response response = client.GetAsset("", ""); + Response response = client.GetAsset("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetAsset_AllParameters() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - Response response = client.GetAsset("", ""); + Response response = client.GetAsset("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetAsset_Async() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - Response response = await client.GetAssetAsync("", ""); + Response response = await client.GetAssetAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetAsset_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - Response response = await client.GetAssetAsync("", ""); + Response response = await client.GetAssetAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -86,7 +86,7 @@ public void Example_GetAssets() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - foreach (var item in client.GetAssets("")) + foreach (var item in client.GetAssets("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -101,7 +101,7 @@ public void Example_GetAssets_AllParameters() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - foreach (var item in client.GetAssets("", "", "", "")) + foreach (var item in client.GetAssets("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -118,7 +118,7 @@ public async Task Example_GetAssets_Async() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - await foreach (var item in client.GetAssetsAsync("")) + await foreach (var item in client.GetAssetsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -133,7 +133,7 @@ public async Task Example_GetAssets_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new AssetsClient("", credential); - await foreach (var item in client.GetAssetsAsync("", "", "", "")) + await foreach (var item in client.GetAssetsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_EmailRegistrationClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_EmailRegistrationClient.cs index 29de13592667..e8815ca85e4a 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_EmailRegistrationClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_EmailRegistrationClient.cs @@ -112,7 +112,7 @@ public void Example_Register() var credential = new DefaultAzureCredential(); var client = new EmailRegistrationClient("", credential); - Response response = client.Register(); + Response response = client.Register("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -125,7 +125,7 @@ public void Example_Register_AllParameters() var credential = new DefaultAzureCredential(); var client = new EmailRegistrationClient("", credential); - Response response = client.Register(""); + Response response = client.Register("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -145,7 +145,7 @@ public async Task Example_Register_Async() var credential = new DefaultAzureCredential(); var client = new EmailRegistrationClient("", credential); - Response response = await client.RegisterAsync(); + Response response = await client.RegisterAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -158,7 +158,7 @@ public async Task Example_Register_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new EmailRegistrationClient("", credential); - Response response = await client.RegisterAsync(""); + Response response = await client.RegisterAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedAssetsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedAssetsClient.cs index 8743c323322a..4987788569ca 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedAssetsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedAssetsClient.cs @@ -26,7 +26,7 @@ public void Example_GetReceivedAssets() var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); - foreach (var item in client.GetReceivedAssets("")) + foreach (var item in client.GetReceivedAssets("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -41,7 +41,7 @@ public void Example_GetReceivedAssets_AllParameters() var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); - foreach (var item in client.GetReceivedAssets("", "")) + foreach (var item in client.GetReceivedAssets("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetReceivedAssets_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); - await foreach (var item in client.GetReceivedAssetsAsync("")) + await foreach (var item in client.GetReceivedAssetsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -73,7 +73,7 @@ public async Task Example_GetReceivedAssets_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedAssetsClient("", credential); - await foreach (var item in client.GetReceivedAssetsAsync("", "")) + await foreach (var item in client.GetReceivedAssetsAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedInvitationsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedInvitationsClient.cs index aab40ccc3896..34345f6c4478 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedInvitationsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedInvitationsClient.cs @@ -26,7 +26,7 @@ public void Example_GetReceivedInvitation() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - Response response = client.GetReceivedInvitation(""); + Response response = client.GetReceivedInvitation("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetReceivedInvitation_AllParameters() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - Response response = client.GetReceivedInvitation(""); + Response response = client.GetReceivedInvitation("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetReceivedInvitation_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - Response response = await client.GetReceivedInvitationAsync(""); + Response response = await client.GetReceivedInvitationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetReceivedInvitation_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - Response response = await client.GetReceivedInvitationAsync(""); + Response response = await client.GetReceivedInvitationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -188,7 +188,7 @@ public void Example_GetReceivedInvitations() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - foreach (var item in client.GetReceivedInvitations()) + foreach (var item in client.GetReceivedInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -203,7 +203,7 @@ public void Example_GetReceivedInvitations_AllParameters() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - foreach (var item in client.GetReceivedInvitations("", "", "")) + foreach (var item in client.GetReceivedInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -220,7 +220,7 @@ public async Task Example_GetReceivedInvitations_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - await foreach (var item in client.GetReceivedInvitationsAsync()) + await foreach (var item in client.GetReceivedInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -235,7 +235,7 @@ public async Task Example_GetReceivedInvitations_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedInvitationsClient("", credential); - await foreach (var item in client.GetReceivedInvitationsAsync("", "", "")) + await foreach (var item in client.GetReceivedInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedSharesClient.cs index 252ffe7ea438..d67087d21015 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_ReceivedSharesClient.cs @@ -26,7 +26,7 @@ public void Example_GetReceivedShare() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - Response response = client.GetReceivedShare(""); + Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetReceivedShare_AllParameters() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - Response response = client.GetReceivedShare(""); + Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetReceivedShare_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - Response response = await client.GetReceivedShareAsync(""); + Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetReceivedShare_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - Response response = await client.GetReceivedShareAsync(""); + Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -210,7 +210,7 @@ public void Example_GetReceivedShares() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - foreach (var item in client.GetReceivedShares()) + foreach (var item in client.GetReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -225,7 +225,7 @@ public void Example_GetReceivedShares_AllParameters() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - foreach (var item in client.GetReceivedShares("", "", "")) + foreach (var item in client.GetReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -242,7 +242,7 @@ public async Task Example_GetReceivedShares_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - await foreach (var item in client.GetReceivedSharesAsync()) + await foreach (var item in client.GetReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -257,7 +257,7 @@ public async Task Example_GetReceivedShares_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new ReceivedSharesClient("", credential); - await foreach (var item in client.GetReceivedSharesAsync("", "", "")) + await foreach (var item in client.GetReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentShareInvitationsClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentShareInvitationsClient.cs index 455da313d422..7a6a056ec5b9 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentShareInvitationsClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentShareInvitationsClient.cs @@ -26,7 +26,7 @@ public void Example_GetSentShareInvitation() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - Response response = client.GetSentShareInvitation("", ""); + Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetSentShareInvitation_AllParameters() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - Response response = client.GetSentShareInvitation("", ""); + Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetSentShareInvitation_Async() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - Response response = await client.GetSentShareInvitationAsync("", ""); + Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetSentShareInvitation_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - Response response = await client.GetSentShareInvitationAsync("", ""); + Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -234,7 +234,7 @@ public void Example_GetSentShareInvitations() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - foreach (var item in client.GetSentShareInvitations("")) + foreach (var item in client.GetSentShareInvitations("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -249,7 +249,7 @@ public void Example_GetSentShareInvitations_AllParameters() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - foreach (var item in client.GetSentShareInvitations("", "", "", "")) + foreach (var item in client.GetSentShareInvitations("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -266,7 +266,7 @@ public async Task Example_GetSentShareInvitations_Async() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - await foreach (var item in client.GetSentShareInvitationsAsync("")) + await foreach (var item in client.GetSentShareInvitationsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -281,7 +281,7 @@ public async Task Example_GetSentShareInvitations_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new SentShareInvitationsClient("", credential); - await foreach (var item in client.GetSentShareInvitationsAsync("", "", "", "")) + await foreach (var item in client.GetSentShareInvitationsAsync("", "", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentSharesClient.cs index 2b9b71312f29..7099d68e3596 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Generated/Samples/Samples_SentSharesClient.cs @@ -26,7 +26,7 @@ public void Example_GetSentShare() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - Response response = client.GetSentShare(""); + Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -40,7 +40,7 @@ public void Example_GetSentShare_AllParameters() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - Response response = client.GetSentShare(""); + Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -56,7 +56,7 @@ public async Task Example_GetSentShare_Async() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - Response response = await client.GetSentShareAsync(""); + Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetSentShare_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - Response response = await client.GetSentShareAsync(""); + Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -200,7 +200,7 @@ public void Example_GetSentShares() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - foreach (var item in client.GetSentShares()) + foreach (var item in client.GetSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -215,7 +215,7 @@ public void Example_GetSentShares_AllParameters() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - foreach (var item in client.GetSentShares("", "", "")) + foreach (var item in client.GetSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -232,7 +232,7 @@ public async Task Example_GetSentShares_Async() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - await foreach (var item in client.GetSentSharesAsync()) + await foreach (var item in client.GetSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -247,7 +247,7 @@ public async Task Example_GetSentShares_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new SentSharesClient("", credential); - await foreach (var item in client.GetSentSharesAsync("", "", "")) + await foreach (var item in client.GetSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.cs index 410504f5846c..fb49a9dea46e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.cs @@ -36,7 +36,7 @@ public async Task ViewSentShareInvitations() #endif // View sent share invitations. (Pending/Rejected) - var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName).ToEnumerableAsync(); + var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName, null, null, null, new()).ToEnumerableAsync(); var responseInvitation = sentShareInvitations.FirstOrDefault(); if (responseInvitation == null) diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.md b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.md index af56c4105e0f..bc6ea9725f5c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample04_ViewSentShareInvitations.md @@ -18,7 +18,7 @@ var endPoint = "https://.purview.azure.com/share"; var sentShareInvitationsClient = new SentShareInvitationsClient(endPoint, credential); // View sent share invitations. (Pending/Rejected) -var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName).ToEnumerableAsync(); +var sentShareInvitations = await sentShareInvitationsClient.GetSentShareInvitationsAsync(sentShareName, null, null, null, new()).ToEnumerableAsync(); var responseInvitation = sentShareInvitations.FirstOrDefault(); if (responseInvitation == null) diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.cs index 81d7eff465ba..ec5acbe274d2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.cs @@ -34,7 +34,7 @@ public async Task ViewReceivedInvitations() #endif // View received invitations - var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); + var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); #endregion Snippet:Azure_Analytics_Purview_Share_Samples_ViewReceivedInvitations } } diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.md b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.md index 7a3ed7dd7288..f5739ed199d2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample05_ViewReceivedInvitations.md @@ -16,5 +16,5 @@ var endPoint = "https://.purview.azure.com/share"; var receivedInvitationsClient = new ReceivedInvitationsClient(endPoint, credential); // View received invitations -var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); +var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.cs index 2c4ee10f6d99..6e2ff7194911 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.cs @@ -36,7 +36,7 @@ public async Task CreateAReceivedShare() #endif // Create received share - var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); + var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); var receivedShareName = "fabrikam-received-share"; var receivedInvitation = receivedInvitations.LastOrDefault(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.md b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.md index 92682b8401c5..f2283df2b507 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample06_CreateAReceivedShare.md @@ -16,7 +16,7 @@ var endPoint = "https://.purview.azure.com/share"; var receivedInvitationsClient = new ReceivedInvitationsClient(endPoint, credential); // Create received share -var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); +var receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); var receivedShareName = "fabrikam-received-share"; var receivedInvitation = receivedInvitations.LastOrDefault(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.cs index 942bc1585bea..58727acf4a64 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.cs @@ -36,7 +36,7 @@ public async Task ViewAcceptedShares() #endif // View accepted shares - var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName).ToEnumerableAsync(); + var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName, null, new()).ToEnumerableAsync(); var acceptedSentShare = acceptedSentShares.FirstOrDefault(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.md b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.md index 7c0603fd4297..1c69fccc62ef 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample07_ViewAcceptedShares.md @@ -18,7 +18,7 @@ var endPoint = "https://.purview.azure.com/share"; var acceptedSentSharesClient = new AcceptedSentSharesClient(endPoint, credential); // View accepted shares -var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName).ToEnumerableAsync(); +var acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync(sentShareName, null, new()).ToEnumerableAsync(); var acceptedSentShare = acceptedSentShares.FirstOrDefault(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.cs index 37a02bd80b6e..d66f70978813 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.cs @@ -38,7 +38,7 @@ public async Task GetReceivedShares() #endif // Get received assets - var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName).ToEnumerableAsync(); + var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName, null, new()).ToEnumerableAsync(); using var jsonDocument = JsonDocument.Parse(receivedAssets.First()); var receivedAssetName = jsonDocument.RootElement.GetProperty("name").GetString(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.md b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.md index c2f6463e1c5b..229a05b5d80c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.md +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/Samples/Sample08_GetReceivedAssets.md @@ -19,7 +19,7 @@ var endPoint = "https://.purview.azure.com/share"; var receivedAssetsClient = new ReceivedAssetsClient(endPoint, credential); // Get received assets -var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName).ToEnumerableAsync(); +var receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync(receivedShareName, null, new()).ToEnumerableAsync(); using var jsonDocument = JsonDocument.Parse(receivedAssets.First()); var receivedAssetName = jsonDocument.RootElement.GetProperty("name").GetString(); diff --git a/sdk/purview/Azure.Analytics.Purview.Share/tests/ShareClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Share/tests/ShareClientTest.cs index 633d4dc4265a..0b78c6d595d7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/tests/ShareClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/tests/ShareClientTest.cs @@ -52,7 +52,7 @@ public async Task SentShareTests() Assert.AreEqual("/sentShares/sentShare1", getBodyJson.GetProperty("id").GetString()); //List sent shares - List listSentSharesResponse = await client.GetSentSharesAsync().ToEnumerableAsync(); + List listSentSharesResponse = await client.GetSentSharesAsync(null, null, null, new()).ToEnumerableAsync(); Assert.IsTrue(listSentSharesResponse.Count > 0); Assert.IsTrue(listSentSharesResponse[0] != null); @@ -89,7 +89,7 @@ public async Task AssetsTests() await assetsClient.CreateAsync(WaitUntil.Started, "sentShare1", "asset1", RequestContent.Create(assetData)); //Get newly created asset - Response getAssetResponse = await assetsClient.GetAssetAsync("sentShare1", "asset1"); + Response getAssetResponse = await assetsClient.GetAssetAsync("sentShare1", "asset1", new()); Assert.AreEqual(200, getAssetResponse.Status); using var jsonDocumentGetAsset = JsonDocument.Parse(GetContentFromResponse(getAssetResponse)); @@ -97,7 +97,7 @@ public async Task AssetsTests() Assert.AreEqual("/sentShares/sentShare1/assets/asset1", getAssetResponseJson.GetProperty("id").GetString()); //List all assets - List listAssetsResponse = await assetsClient.GetAssetsAsync("sentShare1").ToEnumerableAsync(); + List listAssetsResponse = await assetsClient.GetAssetsAsync("sentShare1", null, null, null, new()).ToEnumerableAsync(); using var jsonDocumentListAssets = JsonDocument.Parse(listAssetsResponse[0]); JsonElement listAssetsResponseJson = jsonDocumentListAssets.RootElement; @@ -113,7 +113,7 @@ public async Task DeleteAsset() await assetsClient.DeleteAsync(WaitUntil.Completed, "sentShare1", "asset1"); //List all assets - List listAssetsResponseAfter = await assetsClient.GetAssetsAsync("sentShare1").ToEnumerableAsync(); + List listAssetsResponseAfter = await assetsClient.GetAssetsAsync("sentShare1", null, null, null, new()).ToEnumerableAsync(); Assert.AreEqual(0, listAssetsResponseAfter.Count); } @@ -145,7 +145,7 @@ public async Task SentShareInvitationsTest() string invitationName = sentShareInvitationResponseJson.GetProperty("name").GetString(); //Get sent share invitation - Response getSentShareInvitationResponse = await sentShareInvitationsClient.GetSentShareInvitationAsync("sentShare1", invitationName); + Response getSentShareInvitationResponse = await sentShareInvitationsClient.GetSentShareInvitationAsync("sentShare1", invitationName, new()); Assert.AreEqual(200, getSentShareInvitationResponse.Status); using var jsonDocumentGetSentShareInvitation = JsonDocument.Parse(GetContentFromResponse(getSentShareInvitationResponse)); @@ -153,7 +153,7 @@ public async Task SentShareInvitationsTest() Assert.AreEqual(invitationName, getSentShareInvitationResponseJson.GetProperty("name").GetString()); //List sent share invitations - List listSentShareInvitationResponse = await sentShareInvitationsClient.GetSentShareInvitationsAsync("sentShare1").ToEnumerableAsync(); + List listSentShareInvitationResponse = await sentShareInvitationsClient.GetSentShareInvitationsAsync("sentShare1", null, null, null, new()).ToEnumerableAsync(); Assert.AreEqual(1, listSentShareInvitationResponse.Count); using var jsonDocumentListSentShareInvitation = JsonDocument.Parse(listSentShareInvitationResponse[0]); @@ -194,7 +194,7 @@ public async Task ReceivedShareTests() Assert.AreEqual(201, createResponse.Status); //Get the newly created received share - Response getReceivedShareResponse = await receivedSharesClient.GetReceivedShareAsync("receivedShare1"); + Response getReceivedShareResponse = await receivedSharesClient.GetReceivedShareAsync("receivedShare1", new()); Assert.AreEqual(200, getReceivedShareResponse.Status); using var jsonDocumentGetReceivedShare = JsonDocument.Parse(GetContentFromResponse(getReceivedShareResponse)); @@ -202,7 +202,7 @@ public async Task ReceivedShareTests() Assert.AreEqual("/receivedShares/receivedShare1", getReceivedShareBodyJson.GetProperty("id").GetString()); //List received shares - List listReceivedSharesResponse = await receivedSharesClient.GetReceivedSharesAsync().ToEnumerableAsync(); + List listReceivedSharesResponse = await receivedSharesClient.GetReceivedSharesAsync(null, null, null, new()).ToEnumerableAsync(); Assert.IsTrue(listReceivedSharesResponse.Count > 0); Assert.IsTrue(listReceivedSharesResponse[0] != null); @@ -222,7 +222,7 @@ public async Task ReceivedAssetsTest() ReceivedAssetsClient receivedAssetsClient = GetReceivedAssetsClient(); //List received assets - List receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync("sentShare1").ToEnumerableAsync(); + List receivedAssets = await receivedAssetsClient.GetReceivedAssetsAsync("sentShare1", null, new()).ToEnumerableAsync(); Assert.IsTrue(receivedAssets.Count == 1); Assert.IsTrue(receivedAssets[0] != null); @@ -236,7 +236,7 @@ public async Task ReceivedInvitationTest() { ReceivedInvitationsClient receivedInvitationsClient = GetReceivedInvitationsClient(); - List receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync().ToEnumerableAsync(); + List receivedInvitations = await receivedInvitationsClient.GetReceivedInvitationsAsync(null, null, null, new()).ToEnumerableAsync(); Assert.AreEqual(1, receivedInvitations.Count); } @@ -251,10 +251,10 @@ public async Task RevokeTest() AcceptedSentSharesClient acceptedSentSharesClient = GetAcceptedSentSharesClient(); //Revoke - await acceptedSentSharesClient.RevokeAsync(WaitUntil.Completed, sentShareName, acceptedSentShareName); + await acceptedSentSharesClient.RevokeAsync(WaitUntil.Completed, sentShareName, acceptedSentShareName, null, new()); //Get Accepted Sent Share - Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName); + Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName, new()); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(getResponse)); JsonElement getResponseJson = jsonDocument.RootElement; @@ -285,7 +285,7 @@ public async Task UpdateExpirationTest() //Check Expiration Date //Get Accepted Sent Share - Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName); + Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName, new()); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(getResponse)); JsonElement getResponseJson = jsonDocument.RootElement; @@ -299,7 +299,7 @@ public async Task AcceptedSentSharesTests() { AcceptedSentSharesClient acceptedSentSharesClient = GetAcceptedSentSharesClient(); - List acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync("ft-testShare-3").ToEnumerableAsync(); + List acceptedSentShares = await acceptedSentSharesClient.GetAcceptedSentSharesAsync("ft-testShare-3", null, new()).ToEnumerableAsync(); Assert.IsTrue(acceptedSentShares.Count == 1); using var jsonDocument = JsonDocument.Parse(acceptedSentShares[0]); @@ -312,7 +312,7 @@ public async Task AcceptedSentShareTests() { AcceptedSentSharesClient acceptedSentSharesClient = GetAcceptedSentSharesClient(); - Response acceptedSentShare = await acceptedSentSharesClient.GetAcceptedSentShareAsync("ft-testShare-3", "d5d52fdb-6aef-45a2-9271-3aa1becfceb3"); + Response acceptedSentShare = await acceptedSentSharesClient.GetAcceptedSentShareAsync("ft-testShare-3", "d5d52fdb-6aef-45a2-9271-3aa1becfceb3", new()); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(acceptedSentShare)); JsonElement acceptedSentShareJson = jsonDocument.RootElement; @@ -339,7 +339,7 @@ public async Task ReinstateTest() await acceptedSentSharesClient.ReinstateAsync(WaitUntil.Completed, sentShareName, acceptedSentShareName, RequestContent.Create(data)); //Get Accepted Sent Share - Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName); + Response getResponse = await acceptedSentSharesClient.GetAcceptedSentShareAsync(sentShareName, acceptedSentShareName, new()); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(getResponse)); JsonElement getResponseJson = jsonDocument.RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/README.md b/sdk/purview/Azure.Analytics.Purview.Sharing/README.md index b04c50f6db37..ea8ec0f4ef72 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/README.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/README.md @@ -130,7 +130,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Response response = await sentShareClient.GetSentShareAsync("sentShareId"); +Response response = await sentShareClient.GetSentShareAsync("sentShareId", new()); ``` #### List Sent Shares @@ -142,7 +142,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -List response = await sentShareClient.GetAllSentSharesAsync("referenceName").ToEnumerableAsync(); +List response = await sentShareClient.GetAllSentSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); ``` #### Create a Share Invitation to a User @@ -198,7 +198,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId"); +Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId", new()); ``` #### List sent share invitations @@ -210,7 +210,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId").ToEnumerableAsync(); +List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId", null, null, new()).ToEnumerableAsync(); ``` #### Delete a sent share invitation @@ -222,7 +222,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId"); +Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId", new()); ``` #### Delete a sent share @@ -234,7 +234,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId"); +Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId", new()); ``` ### Data Consumer Examples @@ -257,7 +257,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync().ToEnumerableAsync(); +List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync(null, null, new()).ToEnumerableAsync(); ``` #### Attach a received share @@ -306,7 +306,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId"); +Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId", new()); ``` #### List attached received shares @@ -318,7 +318,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName").ToEnumerableAsync(); +List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); ``` #### Delete a received share @@ -330,7 +330,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId"); +Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId", new()); ``` ### Share Resouce Examples @@ -346,7 +346,7 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var shareResourcesClient = new ShareResourcesClient(endPoint, credential); -List createResponse = await shareResourcesClient.GetAllShareResourcesAsync().ToEnumerableAsync(); +List createResponse = await shareResourcesClient.GetAllShareResourcesAsync(null, null, null).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs index ff9d430d0579..c2e52005a5d5 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs @@ -18,16 +18,16 @@ public ReceivedSharesClient(System.Uri endpoint, Azure.Core.TokenCredential cred public virtual System.Threading.Tasks.Task ActivateTenantEmailRegistrationAsync(Azure.Core.RequestContent content, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation CreateOrReplaceReceivedShare(Azure.WaitUntil waitUntil, string receivedShareId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrReplaceReceivedShareAsync(Azure.WaitUntil waitUntil, string receivedShareId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation DeleteReceivedShare(Azure.WaitUntil waitUntil, string receivedShareId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteReceivedShareAsync(Azure.WaitUntil waitUntil, string receivedShareId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllAttachedReceivedShares(string referenceName, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllAttachedReceivedSharesAsync(string referenceName, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllDetachedReceivedShares(string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllDetachedReceivedSharesAsync(string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetReceivedShare(string receivedShareId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetReceivedShareAsync(string receivedShareId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RegisterTenantEmailRegistration(string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RegisterTenantEmailRegistrationAsync(string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation DeleteReceivedShare(Azure.WaitUntil waitUntil, string receivedShareId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteReceivedShareAsync(Azure.WaitUntil waitUntil, string receivedShareId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllAttachedReceivedShares(string referenceName, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllAttachedReceivedSharesAsync(string referenceName, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllDetachedReceivedShares(string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllDetachedReceivedSharesAsync(string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetReceivedShare(string receivedShareId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetReceivedShareAsync(string receivedShareId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response RegisterTenantEmailRegistration(string repeatabilityRequestId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RegisterTenantEmailRegistrationAsync(string repeatabilityRequestId, Azure.RequestContext context) { throw null; } } public partial class SentSharesClient { @@ -39,20 +39,20 @@ public SentSharesClient(System.Uri endpoint, Azure.Core.TokenCredential credenti public virtual System.Threading.Tasks.Task> CreateOrReplaceSentShareAsync(Azure.WaitUntil waitUntil, string sentShareId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response CreateSentShareInvitation(string sentShareId, string sentShareInvitationId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation DeleteSentShare(Azure.WaitUntil waitUntil, string sentShareId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteSentShareAsync(Azure.WaitUntil waitUntil, string sentShareId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation DeleteSentShareInvitation(Azure.WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteSentShareInvitationAsync(Azure.WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllSentShareInvitations(string sentShareId, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllSentShareInvitationsAsync(string sentShareId, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllSentShares(string referenceName, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllSentSharesAsync(string referenceName, string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSentShare(string sentShareId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSentShareAsync(string sentShareId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSentShareInvitation(string sentShareId, string sentShareInvitationId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response NotifyUserSentShareInvitation(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task NotifyUserSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation DeleteSentShare(Azure.WaitUntil waitUntil, string sentShareId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteSentShareAsync(Azure.WaitUntil waitUntil, string sentShareId, Azure.RequestContext context) { throw null; } + public virtual Azure.Operation DeleteSentShareInvitation(Azure.WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteSentShareInvitationAsync(Azure.WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllSentShareInvitations(string sentShareId, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllSentShareInvitationsAsync(string sentShareId, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllSentShares(string referenceName, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllSentSharesAsync(string referenceName, string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSentShare(string sentShareId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSentShareAsync(string sentShareId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSentShareInvitation(string sentShareId, string sentShareInvitationId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response NotifyUserSentShareInvitation(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task NotifyUserSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId, Azure.RequestContext context) { throw null; } } public partial class ShareResourcesClient { @@ -60,8 +60,8 @@ protected ShareResourcesClient() { } public ShareResourcesClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public ShareResourcesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Sharing.PurviewShareClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Pageable GetAllShareResources(string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllShareResourcesAsync(string filter = null, string orderby = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllShareResources(string filter, string orderby, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllShareResourcesAsync(string filter, string orderby, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample10_ListDetachedReceivedShares.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample10_ListDetachedReceivedShares.md index e780a678d4ad..792b1762d548 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample10_ListDetachedReceivedShares.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample10_ListDetachedReceivedShares.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync().ToEnumerableAsync(); +List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync(null, null, new()).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample11_ListAttachedReceivedShares.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample11_ListAttachedReceivedShares.md index 195a58e0f913..c05d8b62859b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample11_ListAttachedReceivedShares.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample11_ListAttachedReceivedShares.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName").ToEnumerableAsync(); +List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample12_DeleteReceivedShare.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample12_DeleteReceivedShare.md index e44ed5b8d061..323fc0ff2671 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample12_DeleteReceivedShare.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample12_DeleteReceivedShare.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId"); +Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample13_GetReceivedShare.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample13_GetReceivedShare.md index c4a125220e7e..484de7d9f152 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample13_GetReceivedShare.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample13_GetReceivedShare.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); -Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId"); +Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample3_GetSentShareInvitation.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample3_GetSentShareInvitation.md index c6a9d70c6623..e4183ec3e1da 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample3_GetSentShareInvitation.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample3_GetSentShareInvitation.md @@ -18,6 +18,6 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId"); +Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample4_ListSentShareInvitations.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample4_ListSentShareInvitations.md index d75a0eab709a..48264b6ae3e2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample4_ListSentShareInvitations.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample4_ListSentShareInvitations.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId").ToEnumerableAsync(); +List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId", null, null, new()).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample5_DeleteSentShareInvitation.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample5_DeleteSentShareInvitation.md index 37376cc01475..15a3c18b42d0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample5_DeleteSentShareInvitation.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample5_DeleteSentShareInvitation.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId"); +Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample6_DeleteSentShare.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample6_DeleteSentShare.md index 815b31513170..fe4484c7b26c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample6_DeleteSentShare.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample6_DeleteSentShare.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId"); +Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample7_GetSentShare.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample7_GetSentShare.md index 935811b06fe9..2b01b320e367 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample7_GetSentShare.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample7_GetSentShare.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -Response response = await sentShareClient.GetSentShareAsync("sentShareId"); +Response response = await sentShareClient.GetSentShareAsync("sentShareId", new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample8_ListSentShares.md b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample8_ListSentShares.md index cde00ed9f9a0..114430243ca4 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample8_ListSentShares.md +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/samples/Sample8_ListSentShares.md @@ -18,5 +18,5 @@ var credential = new DefaultAzureCredential(); var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); -List response = await sentShareClient.GetAllSentSharesAsync("referenceName").ToEnumerableAsync(); +List response = await sentShareClient.GetAllSentSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ReceivedSharesClient.xml b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ReceivedSharesClient.xml index 92e3bb506740..51ee9a2e0536 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ReceivedSharesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ReceivedSharesClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -Response response = await client.GetReceivedShareAsync(""); +Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -26,7 +26,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -Response response = client.GetReceivedShare(""); +Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -119,24 +119,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call RegisterTenantEmailRegistrationAsync and parse the result. +This sample shows how to call RegisterTenantEmailRegistrationAsync with required parameters and parse the result. "); var client = new ReceivedSharesClient(endpoint, credential); -Response response = await client.RegisterTenantEmailRegistrationAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RegisterTenantEmailRegistrationAsync with all parameters, and how to parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -Response response = await client.RegisterTenantEmailRegistrationAsync(""); +Response response = await client.RegisterTenantEmailRegistrationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -152,24 +141,13 @@ Console.WriteLine(result.GetProperty("type").ToString()); -This sample shows how to call RegisterTenantEmailRegistration and parse the result. +This sample shows how to call RegisterTenantEmailRegistration with required parameters and parse the result. "); var client = new ReceivedSharesClient(endpoint, credential); -Response response = client.RegisterTenantEmailRegistration(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call RegisterTenantEmailRegistration with all parameters, and how to parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -Response response = client.RegisterTenantEmailRegistration(""); +Response response = client.RegisterTenantEmailRegistration("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -191,20 +169,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -await foreach (var item in client.GetAllAttachedReceivedSharesAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllAttachedReceivedSharesAsync with all parameters, and how to parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -await foreach (var item in client.GetAllAttachedReceivedSharesAsync("", "", "")) +await foreach (var item in client.GetAllAttachedReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -222,20 +187,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -foreach (var item in client.GetAllAttachedReceivedShares("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllAttachedReceivedShares with all parameters, and how to parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -foreach (var item in client.GetAllAttachedReceivedShares("", "", "")) +foreach (var item in client.GetAllAttachedReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -247,26 +199,13 @@ foreach (var item in client.GetAllAttachedReceivedShares("", " -This sample shows how to call GetAllDetachedReceivedSharesAsync and parse the result. +This sample shows how to call GetAllDetachedReceivedSharesAsync with required parameters and parse the result. "); var client = new ReceivedSharesClient(endpoint, credential); -await foreach (var item in client.GetAllDetachedReceivedSharesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllDetachedReceivedSharesAsync with all parameters, and how to parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", "")) +await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -278,26 +217,13 @@ await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", -This sample shows how to call GetAllDetachedReceivedShares and parse the result. -"); -var client = new ReceivedSharesClient(endpoint, credential); - -foreach (var item in client.GetAllDetachedReceivedShares()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllDetachedReceivedShares with all parameters, and how to parse the result. +This sample shows how to call GetAllDetachedReceivedShares with required parameters and parse the result. "); var client = new ReceivedSharesClient(endpoint, credential); -foreach (var item in client.GetAllDetachedReceivedShares("", "")) +foreach (var item in client.GetAllDetachedReceivedShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -429,7 +355,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, ""); +var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -451,7 +377,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); -var operation = client.DeleteReceivedShare(WaitUntil.Completed, ""); +var operation = client.DeleteReceivedShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/SentSharesClient.xml b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/SentSharesClient.xml index 343e9c54bbf6..94364ee5e2f6 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/SentSharesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/SentSharesClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = await client.GetSentShareAsync(""); +Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -26,7 +26,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = client.GetSentShare(""); +Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -43,7 +43,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = await client.GetSentShareInvitationAsync("", ""); +Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -60,7 +60,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = client.GetSentShareInvitation("", ""); +Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -171,19 +171,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = await client.NotifyUserSentShareInvitationAsync("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("invitationKind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call NotifyUserSentShareInvitationAsync with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -Response response = await client.NotifyUserSentShareInvitationAsync("", "", ""); +Response response = await client.NotifyUserSentShareInvitationAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -200,19 +188,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -Response response = client.NotifyUserSentShareInvitation("", ""); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("invitationKind").ToString()); -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call NotifyUserSentShareInvitation with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -Response response = client.NotifyUserSentShareInvitation("", "", ""); +Response response = client.NotifyUserSentShareInvitation("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -229,20 +205,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -await foreach (var item in client.GetAllSentSharesAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllSentSharesAsync with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -await foreach (var item in client.GetAllSentSharesAsync("", "", "")) +await foreach (var item in client.GetAllSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -260,20 +223,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -foreach (var item in client.GetAllSentShares("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("shareKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllSentShares with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -foreach (var item in client.GetAllSentShares("", "", "")) +foreach (var item in client.GetAllSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -291,20 +241,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -await foreach (var item in client.GetAllSentShareInvitationsAsync("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllSentShareInvitationsAsync with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -await foreach (var item in client.GetAllSentShareInvitationsAsync("", "", "")) +await foreach (var item in client.GetAllSentShareInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -322,20 +259,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -foreach (var item in client.GetAllSentShareInvitations("")) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("invitationKind").ToString()); - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllSentShareInvitations with all parameters, and how to parse the result. -"); -var client = new SentSharesClient(endpoint, credential); - -foreach (var item in client.GetAllSentShareInvitations("", "", "")) +foreach (var item in client.GetAllSentShareInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -499,7 +423,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, ""); +var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -521,7 +445,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -var operation = client.DeleteSentShare(WaitUntil.Completed, ""); +var operation = client.DeleteSentShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -543,7 +467,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", ""); +var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -565,7 +489,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); -var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", ""); +var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ShareResourcesClient.xml b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ShareResourcesClient.xml index de6f29a3da0c..d85acffd3cc6 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ShareResourcesClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/Docs/ShareResourcesClient.xml @@ -3,25 +3,13 @@ -This sample shows how to call GetAllShareResourcesAsync and parse the result. +This sample shows how to call GetAllShareResourcesAsync with required parameters and parse the result. "); var client = new ShareResourcesClient(endpoint, credential); -await foreach (var item in client.GetAllShareResourcesAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllShareResourcesAsync with all parameters, and how to parse the result. -"); -var client = new ShareResourcesClient(endpoint, credential); - -await foreach (var item in client.GetAllShareResourcesAsync("", "")) +await foreach (var item in client.GetAllShareResourcesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("receivedSharesCount").ToString()); @@ -37,25 +25,13 @@ await foreach (var item in client.GetAllShareResourcesAsync("", " -This sample shows how to call GetAllShareResources and parse the result. -"); -var client = new ShareResourcesClient(endpoint, credential); - -foreach (var item in client.GetAllShareResources()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.ToString()); -} -]]> -This sample shows how to call GetAllShareResources with all parameters, and how to parse the result. +This sample shows how to call GetAllShareResources with required parameters and parse the result. "); var client = new ShareResourcesClient(endpoint, credential); -foreach (var item in client.GetAllShareResources("", "")) +foreach (var item in client.GetAllShareResources("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("receivedSharesCount").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ReceivedSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ReceivedSharesClient.cs index ccb1836648a1..942d74fc720b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ReceivedSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ReceivedSharesClient.cs @@ -77,7 +77,7 @@ public ReceivedSharesClient(Uri endpoint, TokenCredential credential, PurviewSha /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetReceivedShareAsync(string receivedShareId, RequestContext context = null) + public virtual async Task GetReceivedShareAsync(string receivedShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareId, nameof(receivedShareId)); @@ -112,7 +112,7 @@ public virtual async Task GetReceivedShareAsync(string receivedShareId /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetReceivedShare(string receivedShareId, RequestContext context = null) + public virtual Response GetReceivedShare(string receivedShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareId, nameof(receivedShareId)); @@ -215,7 +215,7 @@ public virtual Response ActivateTenantEmailRegistration(RequestContent content, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task RegisterTenantEmailRegistrationAsync(string repeatabilityRequestId = null, RequestContext context = null) + public virtual async Task RegisterTenantEmailRegistrationAsync(string repeatabilityRequestId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("ReceivedSharesClient.RegisterTenantEmailRegistration"); scope.Start(); @@ -246,7 +246,7 @@ public virtual async Task RegisterTenantEmailRegistrationAsync(string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response RegisterTenantEmailRegistration(string repeatabilityRequestId = null, RequestContext context = null) + public virtual Response RegisterTenantEmailRegistration(string repeatabilityRequestId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("ReceivedSharesClient.RegisterTenantEmailRegistration"); scope.Start(); @@ -280,7 +280,7 @@ public virtual Response RegisterTenantEmailRegistration(string repeatabilityRequ /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllAttachedReceivedSharesAsync(string referenceName, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAllAttachedReceivedSharesAsync(string referenceName, string filter, string orderby, RequestContext context) { Argument.AssertNotNull(referenceName, nameof(referenceName)); @@ -307,7 +307,7 @@ public virtual AsyncPageable GetAllAttachedReceivedSharesAsync(strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllAttachedReceivedShares(string referenceName, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAllAttachedReceivedShares(string referenceName, string filter, string orderby, RequestContext context) { Argument.AssertNotNull(referenceName, nameof(referenceName)); @@ -332,7 +332,7 @@ public virtual Pageable GetAllAttachedReceivedShares(string referenc /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllDetachedReceivedSharesAsync(string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAllDetachedReceivedSharesAsync(string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDetachedReceivedSharesRequest(filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDetachedReceivedSharesNextPageRequest(nextLink, filter, orderby, context); @@ -355,7 +355,7 @@ public virtual AsyncPageable GetAllDetachedReceivedSharesAsync(strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllDetachedReceivedShares(string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAllDetachedReceivedShares(string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDetachedReceivedSharesRequest(filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDetachedReceivedSharesNextPageRequest(nextLink, filter, orderby, context); @@ -456,7 +456,7 @@ public virtual Operation CreateOrReplaceReceivedShare(WaitUntil wait /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> DeleteReceivedShareAsync(WaitUntil waitUntil, string receivedShareId, RequestContext context = null) + public virtual async Task> DeleteReceivedShareAsync(WaitUntil waitUntil, string receivedShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareId, nameof(receivedShareId)); @@ -492,7 +492,7 @@ public virtual async Task> DeleteReceivedShareAsync(WaitUn /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation DeleteReceivedShare(WaitUntil waitUntil, string receivedShareId, RequestContext context = null) + public virtual Operation DeleteReceivedShare(WaitUntil waitUntil, string receivedShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(receivedShareId, nameof(receivedShareId)); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/SentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/SentSharesClient.cs index f098d96d37a4..6d630ac1cdf0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/SentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/SentSharesClient.cs @@ -77,7 +77,7 @@ public SentSharesClient(Uri endpoint, TokenCredential credential, PurviewShareCl /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSentShareAsync(string sentShareId, RequestContext context = null) + public virtual async Task GetSentShareAsync(string sentShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -112,7 +112,7 @@ public virtual async Task GetSentShareAsync(string sentShareId, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSentShare(string sentShareId, RequestContext context = null) + public virtual Response GetSentShare(string sentShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -148,7 +148,7 @@ public virtual Response GetSentShare(string sentShareId, RequestContext context /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, RequestContext context = null) + public virtual async Task GetSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); @@ -185,7 +185,7 @@ public virtual async Task GetSentShareInvitationAsync(string sentShare /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSentShareInvitation(string sentShareId, string sentShareInvitationId, RequestContext context = null) + public virtual Response GetSentShareInvitation(string sentShareId, string sentShareInvitationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); @@ -301,7 +301,7 @@ public virtual Response CreateSentShareInvitation(string sentShareId, string sen /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task NotifyUserSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId = null, RequestContext context = null) + public virtual async Task NotifyUserSentShareInvitationAsync(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); @@ -339,7 +339,7 @@ public virtual async Task NotifyUserSentShareInvitationAsync(string se /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response NotifyUserSentShareInvitation(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId = null, RequestContext context = null) + public virtual Response NotifyUserSentShareInvitation(string sentShareId, string sentShareInvitationId, string repeatabilityRequestId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); @@ -376,7 +376,7 @@ public virtual Response NotifyUserSentShareInvitation(string sentShareId, string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllSentSharesAsync(string referenceName, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAllSentSharesAsync(string referenceName, string filter, string orderby, RequestContext context) { Argument.AssertNotNull(referenceName, nameof(referenceName)); @@ -403,7 +403,7 @@ public virtual AsyncPageable GetAllSentSharesAsync(string referenceN /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllSentShares(string referenceName, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAllSentShares(string referenceName, string filter, string orderby, RequestContext context) { Argument.AssertNotNull(referenceName, nameof(referenceName)); @@ -431,7 +431,7 @@ public virtual Pageable GetAllSentShares(string referenceName, strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllSentShareInvitationsAsync(string sentShareId, string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAllSentShareInvitationsAsync(string sentShareId, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -459,7 +459,7 @@ public virtual AsyncPageable GetAllSentShareInvitationsAsync(string /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllSentShareInvitations(string sentShareId, string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAllSentShareInvitations(string sentShareId, string filter, string orderby, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -562,7 +562,7 @@ public virtual Operation CreateOrReplaceSentShare(WaitUntil waitUnti /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> DeleteSentShareAsync(WaitUntil waitUntil, string sentShareId, RequestContext context = null) + public virtual async Task> DeleteSentShareAsync(WaitUntil waitUntil, string sentShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -598,7 +598,7 @@ public virtual async Task> DeleteSentShareAsync(WaitUntil /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation DeleteSentShare(WaitUntil waitUntil, string sentShareId, RequestContext context = null) + public virtual Operation DeleteSentShare(WaitUntil waitUntil, string sentShareId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); @@ -635,7 +635,7 @@ public virtual Operation DeleteSentShare(WaitUntil waitUntil, string /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> DeleteSentShareInvitationAsync(WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, RequestContext context = null) + public virtual async Task> DeleteSentShareInvitationAsync(WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); @@ -673,7 +673,7 @@ public virtual async Task> DeleteSentShareInvitationAsync( /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation DeleteSentShareInvitation(WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, RequestContext context = null) + public virtual Operation DeleteSentShareInvitation(WaitUntil waitUntil, string sentShareId, string sentShareInvitationId, RequestContext context) { Argument.AssertNotNullOrEmpty(sentShareId, nameof(sentShareId)); Argument.AssertNotNullOrEmpty(sentShareInvitationId, nameof(sentShareInvitationId)); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ShareResourcesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ShareResourcesClient.cs index 63371ac35093..85888c9c48d4 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ShareResourcesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/ShareResourcesClient.cs @@ -75,7 +75,7 @@ public ShareResourcesClient(Uri endpoint, TokenCredential credential, PurviewSha /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllShareResourcesAsync(string filter = null, string orderby = null, RequestContext context = null) + public virtual AsyncPageable GetAllShareResourcesAsync(string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllShareResourcesRequest(filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllShareResourcesNextPageRequest(nextLink, filter, orderby, context); @@ -98,7 +98,7 @@ public virtual AsyncPageable GetAllShareResourcesAsync(string filter /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllShareResources(string filter = null, string orderby = null, RequestContext context = null) + public virtual Pageable GetAllShareResources(string filter, string orderby, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllShareResourcesRequest(filter, orderby, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllShareResourcesNextPageRequest(nextLink, filter, orderby, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..00a46f8e98e0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ReceivedSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ReceivedSharesClient.cs index 49f3d63fcb2e..3e28921952df 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ReceivedSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ReceivedSharesClient.cs @@ -27,7 +27,7 @@ public void Example_GetReceivedShare() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = client.GetReceivedShare(""); + Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -42,7 +42,7 @@ public void Example_GetReceivedShare_AllParameters() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = client.GetReceivedShare(""); + Response response = client.GetReceivedShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetReceivedShare_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = await client.GetReceivedShareAsync(""); + Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -73,7 +73,7 @@ public async Task Example_GetReceivedShare_AllParameters_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = await client.GetReceivedShareAsync(""); + Response response = await client.GetReceivedShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -179,7 +179,7 @@ public void Example_RegisterTenantEmailRegistration() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = client.RegisterTenantEmailRegistration(); + Response response = client.RegisterTenantEmailRegistration("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -193,7 +193,7 @@ public void Example_RegisterTenantEmailRegistration_AllParameters() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = client.RegisterTenantEmailRegistration(""); + Response response = client.RegisterTenantEmailRegistration("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -214,7 +214,7 @@ public async Task Example_RegisterTenantEmailRegistration_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = await client.RegisterTenantEmailRegistrationAsync(); + Response response = await client.RegisterTenantEmailRegistrationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -228,7 +228,7 @@ public async Task Example_RegisterTenantEmailRegistration_AllParameters_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - Response response = await client.RegisterTenantEmailRegistrationAsync(""); + Response response = await client.RegisterTenantEmailRegistrationAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("activationCode").ToString()); @@ -249,7 +249,7 @@ public void Example_GetAllAttachedReceivedShares() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - foreach (var item in client.GetAllAttachedReceivedShares("")) + foreach (var item in client.GetAllAttachedReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -265,7 +265,7 @@ public void Example_GetAllAttachedReceivedShares_AllParameters() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - foreach (var item in client.GetAllAttachedReceivedShares("", "", "")) + foreach (var item in client.GetAllAttachedReceivedShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -282,7 +282,7 @@ public async Task Example_GetAllAttachedReceivedShares_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - await foreach (var item in client.GetAllAttachedReceivedSharesAsync("")) + await foreach (var item in client.GetAllAttachedReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -298,7 +298,7 @@ public async Task Example_GetAllAttachedReceivedShares_AllParameters_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - await foreach (var item in client.GetAllAttachedReceivedSharesAsync("", "", "")) + await foreach (var item in client.GetAllAttachedReceivedSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -315,7 +315,7 @@ public void Example_GetAllDetachedReceivedShares() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - foreach (var item in client.GetAllDetachedReceivedShares()) + foreach (var item in client.GetAllDetachedReceivedShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -331,7 +331,7 @@ public void Example_GetAllDetachedReceivedShares_AllParameters() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - foreach (var item in client.GetAllDetachedReceivedShares("", "")) + foreach (var item in client.GetAllDetachedReceivedShares("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -348,7 +348,7 @@ public async Task Example_GetAllDetachedReceivedShares_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - await foreach (var item in client.GetAllDetachedReceivedSharesAsync()) + await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -364,7 +364,7 @@ public async Task Example_GetAllDetachedReceivedShares_AllParameters_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", "")) + await foreach (var item in client.GetAllDetachedReceivedSharesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -511,7 +511,7 @@ public void Example_DeleteReceivedShare() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - var operation = client.DeleteReceivedShare(WaitUntil.Completed, ""); + var operation = client.DeleteReceivedShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -526,7 +526,7 @@ public void Example_DeleteReceivedShare_AllParameters() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - var operation = client.DeleteReceivedShare(WaitUntil.Completed, ""); + var operation = client.DeleteReceivedShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -547,7 +547,7 @@ public async Task Example_DeleteReceivedShare_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, ""); + var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -562,7 +562,7 @@ public async Task Example_DeleteReceivedShare_AllParameters_Async() var endpoint = new Uri(""); var client = new ReceivedSharesClient(endpoint, credential); - var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, ""); + var operation = await client.DeleteReceivedShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_SentSharesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_SentSharesClient.cs index e3b4f073f545..7ddcdf1666fa 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_SentSharesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_SentSharesClient.cs @@ -27,7 +27,7 @@ public void Example_GetSentShare() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.GetSentShare(""); + Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -42,7 +42,7 @@ public void Example_GetSentShare_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.GetSentShare(""); + Response response = client.GetSentShare("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -58,7 +58,7 @@ public async Task Example_GetSentShare_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.GetSentShareAsync(""); + Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -73,7 +73,7 @@ public async Task Example_GetSentShare_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.GetSentShareAsync(""); + Response response = await client.GetSentShareAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -89,7 +89,7 @@ public void Example_GetSentShareInvitation() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.GetSentShareInvitation("", ""); + Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -104,7 +104,7 @@ public void Example_GetSentShareInvitation_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.GetSentShareInvitation("", ""); + Response response = client.GetSentShareInvitation("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -120,7 +120,7 @@ public async Task Example_GetSentShareInvitation_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.GetSentShareInvitationAsync("", ""); + Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -135,7 +135,7 @@ public async Task Example_GetSentShareInvitation_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.GetSentShareInvitationAsync("", ""); + Response response = await client.GetSentShareInvitationAsync("", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -257,7 +257,7 @@ public void Example_NotifyUserSentShareInvitation() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.NotifyUserSentShareInvitation("", ""); + Response response = client.NotifyUserSentShareInvitation("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -272,7 +272,7 @@ public void Example_NotifyUserSentShareInvitation_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = client.NotifyUserSentShareInvitation("", "", ""); + Response response = client.NotifyUserSentShareInvitation("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -288,7 +288,7 @@ public async Task Example_NotifyUserSentShareInvitation_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.NotifyUserSentShareInvitationAsync("", ""); + Response response = await client.NotifyUserSentShareInvitationAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -303,7 +303,7 @@ public async Task Example_NotifyUserSentShareInvitation_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - Response response = await client.NotifyUserSentShareInvitationAsync("", "", ""); + Response response = await client.NotifyUserSentShareInvitationAsync("", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -319,7 +319,7 @@ public void Example_GetAllSentShares() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - foreach (var item in client.GetAllSentShares("")) + foreach (var item in client.GetAllSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -335,7 +335,7 @@ public void Example_GetAllSentShares_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - foreach (var item in client.GetAllSentShares("", "", "")) + foreach (var item in client.GetAllSentShares("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -352,7 +352,7 @@ public async Task Example_GetAllSentShares_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - await foreach (var item in client.GetAllSentSharesAsync("")) + await foreach (var item in client.GetAllSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -368,7 +368,7 @@ public async Task Example_GetAllSentShares_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - await foreach (var item in client.GetAllSentSharesAsync("", "", "")) + await foreach (var item in client.GetAllSentSharesAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("shareKind").ToString()); @@ -385,7 +385,7 @@ public void Example_GetAllSentShareInvitations() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - foreach (var item in client.GetAllSentShareInvitations("")) + foreach (var item in client.GetAllSentShareInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -401,7 +401,7 @@ public void Example_GetAllSentShareInvitations_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - foreach (var item in client.GetAllSentShareInvitations("", "", "")) + foreach (var item in client.GetAllSentShareInvitations("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -418,7 +418,7 @@ public async Task Example_GetAllSentShareInvitations_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - await foreach (var item in client.GetAllSentShareInvitationsAsync("")) + await foreach (var item in client.GetAllSentShareInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -434,7 +434,7 @@ public async Task Example_GetAllSentShareInvitations_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - await foreach (var item in client.GetAllSentShareInvitationsAsync("", "", "")) + await foreach (var item in client.GetAllSentShareInvitationsAsync("", "", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("invitationKind").ToString()); @@ -619,7 +619,7 @@ public void Example_DeleteSentShare() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = client.DeleteSentShare(WaitUntil.Completed, ""); + var operation = client.DeleteSentShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -634,7 +634,7 @@ public void Example_DeleteSentShare_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = client.DeleteSentShare(WaitUntil.Completed, ""); + var operation = client.DeleteSentShare(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -655,7 +655,7 @@ public async Task Example_DeleteSentShare_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, ""); + var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -670,7 +670,7 @@ public async Task Example_DeleteSentShare_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, ""); + var operation = await client.DeleteSentShareAsync(WaitUntil.Completed, "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -691,7 +691,7 @@ public void Example_DeleteSentShareInvitation() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", ""); + var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -706,7 +706,7 @@ public void Example_DeleteSentShareInvitation_AllParameters() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", ""); + var operation = client.DeleteSentShareInvitation(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -727,7 +727,7 @@ public async Task Example_DeleteSentShareInvitation_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", ""); + var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -742,7 +742,7 @@ public async Task Example_DeleteSentShareInvitation_AllParameters_Async() var endpoint = new Uri(""); var client = new SentSharesClient(endpoint, credential); - var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", ""); + var operation = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, "", "", new RequestContext()); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ShareResourcesClient.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ShareResourcesClient.cs index 660475b9a97f..46c8a77140b1 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ShareResourcesClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Generated/Samples/Samples_ShareResourcesClient.cs @@ -27,7 +27,7 @@ public void Example_GetAllShareResources() var endpoint = new Uri(""); var client = new ShareResourcesClient(endpoint, credential); - foreach (var item in client.GetAllShareResources()) + foreach (var item in client.GetAllShareResources("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -42,7 +42,7 @@ public void Example_GetAllShareResources_AllParameters() var endpoint = new Uri(""); var client = new ShareResourcesClient(endpoint, credential); - foreach (var item in client.GetAllShareResources("", "")) + foreach (var item in client.GetAllShareResources("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("receivedSharesCount").ToString()); @@ -63,7 +63,7 @@ public async Task Example_GetAllShareResources_Async() var endpoint = new Uri(""); var client = new ShareResourcesClient(endpoint, credential); - await foreach (var item in client.GetAllShareResourcesAsync()) + await foreach (var item in client.GetAllShareResourcesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.ToString()); @@ -78,7 +78,7 @@ public async Task Example_GetAllShareResources_AllParameters_Async() var endpoint = new Uri(""); var client = new ShareResourcesClient(endpoint, credential); - await foreach (var item in client.GetAllShareResourcesAsync("", "")) + await foreach (var item in client.GetAllShareResourcesAsync("", "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("receivedSharesCount").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ReceivedSharesClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ReceivedSharesClientTest.cs index 9a1ed2def71e..14d4aa516dfc 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ReceivedSharesClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ReceivedSharesClientTest.cs @@ -71,7 +71,7 @@ public async Task GetReceivedShareTest() { ReceivedSharesClient client = GetReceivedSharesClient(); - Response response = await client.GetReceivedShareAsync(receivedShareId); + Response response = await client.GetReceivedShareAsync(receivedShareId, new()); var jsonDocument = JsonDocument.Parse(GetContentFromResponse(response)); JsonElement getBodyJson = jsonDocument.RootElement; @@ -84,7 +84,7 @@ public async Task DeleteReceivedShareTest() { ReceivedSharesClient client = GetReceivedSharesClient(); - Operation response = await client.DeleteReceivedShareAsync(WaitUntil.Completed, receivedShareId); + Operation response = await client.DeleteReceivedShareAsync(WaitUntil.Completed, receivedShareId, new()); Assert.IsTrue(response.HasCompleted); } @@ -94,7 +94,7 @@ public async Task GetDetachedReceivedSharesTest() { ReceivedSharesClient client = GetReceivedSharesClient(); - List detachedReceivedShares = await client.GetAllDetachedReceivedSharesAsync().ToEnumerableAsync(); + List detachedReceivedShares = await client.GetAllDetachedReceivedSharesAsync(null, null, new()).ToEnumerableAsync(); Assert.Greater(detachedReceivedShares.Count, 0); @@ -112,7 +112,7 @@ public async Task GetAttachedReceivedSharesTest() { ReceivedSharesClient client = GetReceivedSharesClient(); - List attachedReceivedShares = await client.GetAllAttachedReceivedSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/consumeraccount").ToEnumerableAsync(); + List attachedReceivedShares = await client.GetAllAttachedReceivedSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/consumeraccount", null, null, new()).ToEnumerableAsync(); Assert.Greater(attachedReceivedShares.Count, 0); diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample10_ListDetachedReceivedShares.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample10_ListDetachedReceivedShares.cs index 889badb74ea7..d7c500bf3ae0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample10_ListDetachedReceivedShares.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample10_ListDetachedReceivedShares.cs @@ -29,7 +29,7 @@ public async Task ListDetachedReceivedShares() var receivedSharesClient = GetReceivedSharesClient(); #endif - List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync().ToEnumerableAsync(); + List createResponse = await receivedSharesClient.GetAllDetachedReceivedSharesAsync(null, null, new()).ToEnumerableAsync(); #endregion } diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample11_ListAttachedReceivedShares.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample11_ListAttachedReceivedShares.cs index 95a2ad043ce0..69fe6a914499 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample11_ListAttachedReceivedShares.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample11_ListAttachedReceivedShares.cs @@ -26,11 +26,11 @@ public async Task ListAttachedReceivedShares() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var receivedSharesClient = new ReceivedSharesClient(endPoint, credential); - List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName").ToEnumerableAsync(); + List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); #else var receivedSharesClient = GetReceivedSharesClient(); - List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/consumeraccount").ToEnumerableAsync(); + List createResponse = await receivedSharesClient.GetAllAttachedReceivedSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/consumeraccount", null, null, new()).ToEnumerableAsync(); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample12_DeleteReceivedShare.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample12_DeleteReceivedShare.cs index adcc8538c1dc..fafc33e4044b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample12_DeleteReceivedShare.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample12_DeleteReceivedShare.cs @@ -28,9 +28,9 @@ public async Task DeleteReceivedShareTest() #endif #if SNIPPET - Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId"); + Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "receivedShareId", new()); #else - Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "c2da55e1-c80c-4925-91fc-37c82a925ff0"); + Operation operation = await receivedSharesClient.DeleteReceivedShareAsync(WaitUntil.Completed, "c2da55e1-c80c-4925-91fc-37c82a925ff0", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample13_GetReceivedShare.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample13_GetReceivedShare.cs index ff71077a58dc..b700d3475213 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample13_GetReceivedShare.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample13_GetReceivedShare.cs @@ -28,9 +28,9 @@ public async Task GetReceivedShareTest() #endif #if SNIPPET - Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId"); + Response operation = await receivedSharesClient.GetReceivedShareAsync("receivedShareId", new()); #else - Response operation = await receivedSharesClient.GetReceivedShareAsync("11726395-c265-4d91-acc8-7bb2cc650f5c"); + Response operation = await receivedSharesClient.GetReceivedShareAsync("11726395-c265-4d91-acc8-7bb2cc650f5c", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample14_ListShareResources.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample14_ListShareResources.cs index b4dbf407dffa..f8135421c322 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample14_ListShareResources.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample14_ListShareResources.cs @@ -31,9 +31,9 @@ public async Task ListShareResourcesTest() #endif #if SNIPPET - List createResponse = await shareResourcesClient.GetAllShareResourcesAsync().ToEnumerableAsync(); + List createResponse = await shareResourcesClient.GetAllShareResourcesAsync(null, null, null).ToEnumerableAsync(); #else - List shareResources = await shareResourcesClient.GetAllShareResourcesAsync().ToEnumerableAsync(); + List shareResources = await shareResourcesClient.GetAllShareResourcesAsync(null, null, null).ToEnumerableAsync(); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample3_GetSentShareInvitation.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample3_GetSentShareInvitation.cs index c8aaf19293ee..068b3ab25e21 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample3_GetSentShareInvitation.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample3_GetSentShareInvitation.cs @@ -25,11 +25,11 @@ public async Task GetSentShareInvitationTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId"); + Response response = await sentShareClient.GetSentShareInvitationAsync("sentShareId", "sentShareInvitationId", new()); #else var sentShareClient = GetSentSharesClient(); - Response response = await sentShareClient.GetSentShareInvitationAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96", "4ae8a8dc-0662-4027-960e-92b4778fc5ff"); + Response response = await sentShareClient.GetSentShareInvitationAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96", "4ae8a8dc-0662-4027-960e-92b4778fc5ff", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample4_ListSentShareInvitations.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample4_ListSentShareInvitations.cs index 55249fae8b18..12efc9dc72e1 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample4_ListSentShareInvitations.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample4_ListSentShareInvitations.cs @@ -25,11 +25,11 @@ public async Task ListSentShareInvitationsTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId").ToEnumerableAsync(); + List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("sentShareId", null, null, new()).ToEnumerableAsync(); #else var sentShareClient = GetSentSharesClient(); - List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96").ToEnumerableAsync(); + List sentShareInvitations = await sentShareClient.GetAllSentShareInvitationsAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96", null, null, new()).ToEnumerableAsync(); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample5_DeleteSentShareInvitation.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample5_DeleteSentShareInvitation.cs index 129b03b291dc..5e4634deab32 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample5_DeleteSentShareInvitation.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample5_DeleteSentShareInvitation.cs @@ -24,11 +24,11 @@ public async Task DeleteSentShareInvitationTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId"); + Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "sentShareId", "sentShareInvitationId", new()); #else var sentShareClient = GetSentSharesClient(); - Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "016eb068-ddaa-41be-8804-8bef566663a5", "4ae8a8dc-0662-4027-960e-92b4778fc5ff"); + Operation operation = await sentShareClient.DeleteSentShareInvitationAsync(WaitUntil.Completed, "016eb068-ddaa-41be-8804-8bef566663a5", "4ae8a8dc-0662-4027-960e-92b4778fc5ff", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample6_DeleteSentShare.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample6_DeleteSentShare.cs index 367ad9842a54..2bc9d26421c7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample6_DeleteSentShare.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample6_DeleteSentShare.cs @@ -24,11 +24,11 @@ public async Task DeleteSentShareTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId"); + Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "sentShareId", new()); #else var sentShareClient = GetSentSharesClient(); - Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "016eb068-ddaa-41be-8804-8bef566663a5"); + Operation operation = await sentShareClient.DeleteSentShareAsync(WaitUntil.Completed, "016eb068-ddaa-41be-8804-8bef566663a5", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample7_GetSentShare.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample7_GetSentShare.cs index 1c4c2abac5ae..a1c8edc80061 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample7_GetSentShare.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample7_GetSentShare.cs @@ -24,11 +24,11 @@ public async Task GetSentShareTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - Response response = await sentShareClient.GetSentShareAsync("sentShareId"); + Response response = await sentShareClient.GetSentShareAsync("sentShareId", new()); #else var sentShareClient = GetSentSharesClient(); - Response response = await sentShareClient.GetSentShareAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96"); + Response response = await sentShareClient.GetSentShareAsync("fe11781e-9a7d-488d-bd22-cc2c95536e96", new()); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample8_ListSentShares.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample8_ListSentShares.cs index 0e0b3fcd00c5..a61c0574d1d7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample8_ListSentShares.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/Samples/Sample8_ListSentShares.cs @@ -25,11 +25,11 @@ public async Task ListSentSharesTest() var endPoint = new Uri("https://my-account-name.purview.azure.com/share"); var sentShareClient = new SentSharesClient(endPoint, credential); - List response = await sentShareClient.GetAllSentSharesAsync("referenceName").ToEnumerableAsync(); + List response = await sentShareClient.GetAllSentSharesAsync("referenceName", null, null, new()).ToEnumerableAsync(); #else var sentShareClient = GetSentSharesClient(); - List response = await sentShareClient.GetAllSentSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/provideraccount").ToEnumerableAsync(); + List response = await sentShareClient.GetAllSentSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/provideraccount", null, null, new()).ToEnumerableAsync(); #endif #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/SentSharesClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/SentSharesClientTest.cs index 3b81369784f2..03ccccafb5bd 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/SentSharesClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/SentSharesClientTest.cs @@ -76,7 +76,7 @@ public async Task GetListSentSharesTest() { SentSharesClient client = GetSentSharesClient(); - Response response = await client.GetSentShareAsync(sentShareId); + Response response = await client.GetSentShareAsync(sentShareId, new()); using var jsonDocumentGet = JsonDocument.Parse(GetContentFromResponse(response)); JsonElement getBodyJson = jsonDocumentGet.RootElement; @@ -89,7 +89,7 @@ public async Task GetListSentSharesTest() var expectedDisplayName = "testDisplayName1"; Assert.AreEqual(expectedDisplayName, actualDisplayName); - List listResponse = await client.GetAllSentSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/provideraccount").ToEnumerableAsync(); + List listResponse = await client.GetAllSentSharesAsync("/subscriptions/d941aad1-e4af-44a5-a70e-0381a9f702f1/resourcegroups/dev-rg/providers/Microsoft.Storage/storageAccounts/provideraccount", null, null, new()).ToEnumerableAsync(); Assert.Greater(listResponse.Count, 0); } @@ -99,7 +99,7 @@ public async Task DeleteSentShareTest() { SentSharesClient client = GetSentSharesClient(); - Operation response = await client.DeleteSentShareAsync(WaitUntil.Completed, sentShareId); + Operation response = await client.DeleteSentShareAsync(WaitUntil.Completed, sentShareId, new()); Assert.IsTrue(response.HasCompleted); } @@ -148,11 +148,11 @@ public async Task GetListSentShareInvitationsTest() { SentSharesClient client = GetSentSharesClient(); - Response testing = await client.GetSentShareInvitationAsync(sentShareId, sentShareInvitationId); + Response testing = await client.GetSentShareInvitationAsync(sentShareId, sentShareInvitationId, new()); Assert.AreEqual(200, testing.Status); - List invitations = await client.GetAllSentShareInvitationsAsync(sentShareId).ToEnumerableAsync(); + List invitations = await client.GetAllSentShareInvitationsAsync(sentShareId, null, null, new()).ToEnumerableAsync(); Assert.GreaterOrEqual(invitations.Count, 0); } @@ -162,7 +162,7 @@ public async Task DeleteSentShareInvitationTest() { SentSharesClient client = GetSentSharesClient(); - Operation response = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, sentShareId, sentShareInvitationId); + Operation response = await client.DeleteSentShareInvitationAsync(WaitUntil.Completed, sentShareId, sentShareInvitationId, new()); Assert.IsTrue(response.HasCompleted); } diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ShareResourcesClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ShareResourcesClientTest.cs index 9690ecf78d9e..4258c89b6b86 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ShareResourcesClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/tests/ShareResourcesClientTest.cs @@ -24,7 +24,7 @@ public async Task GetListShareResourcesTest() { ShareResourcesClient client = GetShareResourcesClient(); - List listResponse = await client.GetAllShareResourcesAsync().ToEnumerableAsync(); + List listResponse = await client.GetAllShareResourcesAsync(null, null, null).ToEnumerableAsync(); Assert.Greater(listResponse.Count, 0); } diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs index c3f38a013b8d..dc7bba69721c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs @@ -14,18 +14,18 @@ public PurviewWorkflowServiceClient(System.Uri endpoint, Azure.Core.TokenCredent public virtual System.Threading.Tasks.Task CreateOrReplaceWorkflowAsync(System.Guid workflowId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteWorkflow(System.Guid workflowId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteWorkflowAsync(System.Guid workflowId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetWorkflow(System.Guid workflowId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetWorkflowAsync(System.Guid workflowId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetWorkflowRun(System.Guid workflowRunId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetWorkflowRunAsync(System.Guid workflowRunId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetWorkflowRuns(string timeWindow = null, string orderby = null, System.Collections.Generic.IEnumerable runStatuses = null, System.Collections.Generic.IEnumerable workflowIds = null, int? maxpagesize = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetWorkflowRunsAsync(string timeWindow = null, string orderby = null, System.Collections.Generic.IEnumerable runStatuses = null, System.Collections.Generic.IEnumerable workflowIds = null, int? maxpagesize = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetWorkflows(Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetWorkflowsAsync(Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetWorkflowTask(System.Guid taskId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetWorkflowTaskAsync(System.Guid taskId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetWorkflowTasks(string viewMode = null, System.Collections.Generic.IEnumerable workflowIds = null, string timeWindow = null, int? maxpagesize = default(int?), string orderby = null, System.Collections.Generic.IEnumerable taskTypes = null, System.Collections.Generic.IEnumerable taskStatuses = null, string workflowNameKeyword = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetWorkflowTasksAsync(string viewMode = null, System.Collections.Generic.IEnumerable workflowIds = null, string timeWindow = null, int? maxpagesize = default(int?), string orderby = null, System.Collections.Generic.IEnumerable taskTypes = null, System.Collections.Generic.IEnumerable taskStatuses = null, string workflowNameKeyword = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetWorkflow(System.Guid workflowId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetWorkflowAsync(System.Guid workflowId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetWorkflowRun(System.Guid workflowRunId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetWorkflowRunAsync(System.Guid workflowRunId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetWorkflowRuns(string timeWindow, string orderby, System.Collections.Generic.IEnumerable runStatuses, System.Collections.Generic.IEnumerable workflowIds, int? maxpagesize, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetWorkflowRunsAsync(string timeWindow, string orderby, System.Collections.Generic.IEnumerable runStatuses, System.Collections.Generic.IEnumerable workflowIds, int? maxpagesize, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetWorkflows(Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetWorkflowsAsync(Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetWorkflowTask(System.Guid taskId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetWorkflowTaskAsync(System.Guid taskId, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetWorkflowTasks(string viewMode, System.Collections.Generic.IEnumerable workflowIds, string timeWindow, int? maxpagesize, string orderby, System.Collections.Generic.IEnumerable taskTypes, System.Collections.Generic.IEnumerable taskStatuses, string workflowNameKeyword, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetWorkflowTasksAsync(string viewMode, System.Collections.Generic.IEnumerable workflowIds, string timeWindow, int? maxpagesize, string orderby, System.Collections.Generic.IEnumerable taskTypes, System.Collections.Generic.IEnumerable taskStatuses, string workflowNameKeyword, Azure.RequestContext context) { throw null; } public virtual Azure.Response ReassignWorkflowTask(System.Guid taskId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task ReassignWorkflowTaskAsync(System.Guid taskId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response RejectApprovalTask(System.Guid taskId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/samples/Sample1_Workflows.md b/sdk/purview/Azure.Analytics.Purview.Workflows/samples/Sample1_Workflows.md index 28df3aa43256..318be06d6ab2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/samples/Sample1_Workflows.md +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/samples/Sample1_Workflows.md @@ -34,6 +34,6 @@ Response createResult = await client.CreateOrReplaceWorkflowAsync(workflowId, Re // This workflowId represents an existing workflow. The id can be obtained by calling CreateOrReplaceWorkflowAsync API or list workflows by calling GetWorkflowsAsync API. Guid workflowId = new Guid("8af1ecae-16ee-4b2d-8972-00d611dd2f99"); -Response getResult = await client.GetWorkflowAsync(workflowId); +Response getResult = await client.GetWorkflowAsync(workflowId, new()); ``` diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Docs/PurviewWorkflowServiceClient.xml b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Docs/PurviewWorkflowServiceClient.xml index edda64b81225..1add3bedffd2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Docs/PurviewWorkflowServiceClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Docs/PurviewWorkflowServiceClient.xml @@ -9,7 +9,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = await client.GetWorkflowAsync(Guid.NewGuid()); +Response response = await client.GetWorkflowAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -36,7 +36,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = client.GetWorkflow(Guid.NewGuid()); +Response response = client.GetWorkflow(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -337,7 +337,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = await client.GetWorkflowRunAsync(Guid.NewGuid()); +Response response = await client.GetWorkflowRunAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -366,7 +366,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = client.GetWorkflowRun(Guid.NewGuid()); +Response response = client.GetWorkflowRun(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -451,7 +451,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid()); +Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -484,7 +484,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); -Response response = client.GetWorkflowTask(Guid.NewGuid()); +Response response = client.GetWorkflowTask(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -751,13 +751,13 @@ Console.WriteLine(response.Status); -This sample shows how to call GetWorkflowsAsync and parse the result. +This sample shows how to call GetWorkflowsAsync with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -await foreach (var item in client.GetWorkflowsAsync()) +await foreach (var item in client.GetWorkflowsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -778,13 +778,13 @@ await foreach (var item in client.GetWorkflowsAsync()) -This sample shows how to call GetWorkflows and parse the result. +This sample shows how to call GetWorkflows with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -foreach (var item in client.GetWorkflows()) +foreach (var item in client.GetWorkflows(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -805,31 +805,13 @@ foreach (var item in client.GetWorkflows()) -This sample shows how to call GetWorkflowRunsAsync and parse the result. +This sample shows how to call GetWorkflowRunsAsync with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -await foreach (var item in client.GetWorkflowRunsAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("workflowId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("requestor").ToString()); - Console.WriteLine(result.GetProperty("runPayload").GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("runPayload").GetProperty("targetValue").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); -} -]]> -This sample shows how to call GetWorkflowRunsAsync with all parameters, and how to parse the result. -"); -var client = new PurviewWorkflowServiceClient(endpoint, credential); - -await foreach (var item in client.GetWorkflowRunsAsync("", "", new String[]{""}, new String[]{""}, 1234)) +await foreach (var item in client.GetWorkflowRunsAsync("", "", new String[]{""}, new String[]{""}, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -849,31 +831,13 @@ await foreach (var item in client.GetWorkflowRunsAsync("", " -This sample shows how to call GetWorkflowRuns and parse the result. -"); -var client = new PurviewWorkflowServiceClient(endpoint, credential); - -foreach (var item in client.GetWorkflowRuns()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("workflowId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("requestor").ToString()); - Console.WriteLine(result.GetProperty("runPayload").GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("runPayload").GetProperty("targetValue").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); -} -]]> -This sample shows how to call GetWorkflowRuns with all parameters, and how to parse the result. +This sample shows how to call GetWorkflowRuns with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -foreach (var item in client.GetWorkflowRuns("", "", new String[]{""}, new String[]{""}, 1234)) +foreach (var item in client.GetWorkflowRuns("", "", new String[]{""}, new String[]{""}, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -893,33 +857,13 @@ foreach (var item in client.GetWorkflowRuns("", "", new Str -This sample shows how to call GetWorkflowTasksAsync and parse the result. -"); -var client = new PurviewWorkflowServiceClient(endpoint, credential); - -await foreach (var item in client.GetWorkflowTasksAsync()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("workflowRunId").ToString()); - Console.WriteLine(result.GetProperty("workflowId").ToString()); - Console.WriteLine(result.GetProperty("requestor").ToString()); - Console.WriteLine(result.GetProperty("createdTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdateTime").ToString()); - Console.WriteLine(result.GetProperty("payload").GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("payload").GetProperty("targetValue").ToString()); -} -]]> -This sample shows how to call GetWorkflowTasksAsync with all parameters, and how to parse the result. +This sample shows how to call GetWorkflowTasksAsync with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -await foreach (var item in client.GetWorkflowTasksAsync("", new String[]{""}, "", 1234, "", new String[]{""}, new String[]{""}, "")) +await foreach (var item in client.GetWorkflowTasksAsync("", new String[]{""}, "", 1234, "", new String[]{""}, new String[]{""}, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -947,33 +891,13 @@ await foreach (var item in client.GetWorkflowTasksAsync("", new String -This sample shows how to call GetWorkflowTasks and parse the result. -"); -var client = new PurviewWorkflowServiceClient(endpoint, credential); - -foreach (var item in client.GetWorkflowTasks()) -{ - JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("workflowRunId").ToString()); - Console.WriteLine(result.GetProperty("workflowId").ToString()); - Console.WriteLine(result.GetProperty("requestor").ToString()); - Console.WriteLine(result.GetProperty("createdTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdateTime").ToString()); - Console.WriteLine(result.GetProperty("payload").GetProperty("type").ToString()); - Console.WriteLine(result.GetProperty("payload").GetProperty("targetValue").ToString()); -} -]]> -This sample shows how to call GetWorkflowTasks with all parameters, and how to parse the result. +This sample shows how to call GetWorkflowTasks with required parameters and parse the result. "); var client = new PurviewWorkflowServiceClient(endpoint, credential); -foreach (var item in client.GetWorkflowTasks("", new String[]{""}, "", 1234, "", new String[]{""}, new String[]{""}, "")) +foreach (var item in client.GetWorkflowTasks("", new String[]{""}, "", 1234, "", new String[]{""}, new String[]{""}, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClient.cs index 34f295be8194..894fea27ef45 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClient.cs @@ -76,7 +76,7 @@ public PurviewWorkflowServiceClient(Uri endpoint, TokenCredential credential, Pu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetWorkflowAsync(Guid workflowId, RequestContext context = null) + public virtual async Task GetWorkflowAsync(Guid workflowId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflow"); scope.Start(); @@ -107,7 +107,7 @@ public virtual async Task GetWorkflowAsync(Guid workflowId, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetWorkflow(Guid workflowId, RequestContext context = null) + public virtual Response GetWorkflow(Guid workflowId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflow"); scope.Start(); @@ -338,7 +338,7 @@ public virtual Response SubmitUserRequests(RequestContent content, RequestContex /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetWorkflowRunAsync(Guid workflowRunId, RequestContext context = null) + public virtual async Task GetWorkflowRunAsync(Guid workflowRunId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflowRun"); scope.Start(); @@ -369,7 +369,7 @@ public virtual async Task GetWorkflowRunAsync(Guid workflowRunId, Requ /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetWorkflowRun(Guid workflowRunId, RequestContext context = null) + public virtual Response GetWorkflowRun(Guid workflowRunId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflowRun"); scope.Start(); @@ -470,7 +470,7 @@ public virtual Response CancelWorkflowRun(Guid workflowRunId, RequestContent con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetWorkflowTaskAsync(Guid taskId, RequestContext context = null) + public virtual async Task GetWorkflowTaskAsync(Guid taskId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflowTask"); scope.Start(); @@ -501,7 +501,7 @@ public virtual async Task GetWorkflowTaskAsync(Guid taskId, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetWorkflowTask(Guid taskId, RequestContext context = null) + public virtual Response GetWorkflowTask(Guid taskId, RequestContext context) { using var scope = ClientDiagnostics.CreateScope("PurviewWorkflowServiceClient.GetWorkflowTask"); scope.Start(); @@ -811,7 +811,7 @@ public virtual Response UpdateTaskStatus(Guid taskId, RequestContent content, Re /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetWorkflowsAsync(RequestContext context = null) + public virtual AsyncPageable GetWorkflowsAsync(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowsNextPageRequest(nextLink, context); @@ -832,7 +832,7 @@ public virtual AsyncPageable GetWorkflowsAsync(RequestContext contex /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetWorkflows(RequestContext context = null) + public virtual Pageable GetWorkflows(RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowsRequest(context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowsNextPageRequest(nextLink, context); @@ -858,7 +858,7 @@ public virtual Pageable GetWorkflows(RequestContext context = null) /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetWorkflowRunsAsync(string timeWindow = null, string orderby = null, IEnumerable runStatuses = null, IEnumerable workflowIds = null, int? maxpagesize = null, RequestContext context = null) + public virtual AsyncPageable GetWorkflowRunsAsync(string timeWindow, string orderby, IEnumerable runStatuses, IEnumerable workflowIds, int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowRunsRequest(timeWindow, orderby, runStatuses, workflowIds, maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowRunsNextPageRequest(nextLink, timeWindow, orderby, runStatuses, workflowIds, maxpagesize, context); @@ -884,7 +884,7 @@ public virtual AsyncPageable GetWorkflowRunsAsync(string timeWindow /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetWorkflowRuns(string timeWindow = null, string orderby = null, IEnumerable runStatuses = null, IEnumerable workflowIds = null, int? maxpagesize = null, RequestContext context = null) + public virtual Pageable GetWorkflowRuns(string timeWindow, string orderby, IEnumerable runStatuses, IEnumerable workflowIds, int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowRunsRequest(timeWindow, orderby, runStatuses, workflowIds, maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowRunsNextPageRequest(nextLink, timeWindow, orderby, runStatuses, workflowIds, maxpagesize, context); @@ -913,7 +913,7 @@ public virtual Pageable GetWorkflowRuns(string timeWindow = null, st /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetWorkflowTasksAsync(string viewMode = null, IEnumerable workflowIds = null, string timeWindow = null, int? maxpagesize = null, string orderby = null, IEnumerable taskTypes = null, IEnumerable taskStatuses = null, string workflowNameKeyword = null, RequestContext context = null) + public virtual AsyncPageable GetWorkflowTasksAsync(string viewMode, IEnumerable workflowIds, string timeWindow, int? maxpagesize, string orderby, IEnumerable taskTypes, IEnumerable taskStatuses, string workflowNameKeyword, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowTasksRequest(viewMode, workflowIds, timeWindow, maxpagesize, orderby, taskTypes, taskStatuses, workflowNameKeyword, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowTasksNextPageRequest(nextLink, viewMode, workflowIds, timeWindow, maxpagesize, orderby, taskTypes, taskStatuses, workflowNameKeyword, context); @@ -942,7 +942,7 @@ public virtual AsyncPageable GetWorkflowTasksAsync(string viewMode = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetWorkflowTasks(string viewMode = null, IEnumerable workflowIds = null, string timeWindow = null, int? maxpagesize = null, string orderby = null, IEnumerable taskTypes = null, IEnumerable taskStatuses = null, string workflowNameKeyword = null, RequestContext context = null) + public virtual Pageable GetWorkflowTasks(string viewMode, IEnumerable workflowIds, string timeWindow, int? maxpagesize, string orderby, IEnumerable taskTypes, IEnumerable taskStatuses, string workflowNameKeyword, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkflowTasksRequest(viewMode, workflowIds, timeWindow, maxpagesize, orderby, taskTypes, taskStatuses, workflowNameKeyword, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkflowTasksNextPageRequest(nextLink, viewMode, workflowIds, timeWindow, maxpagesize, orderby, taskTypes, taskStatuses, workflowNameKeyword, context); diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..00a46f8e98e0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Generated/Samples/Samples_PurviewWorkflowServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Generated/Samples/Samples_PurviewWorkflowServiceClient.cs index 3da59788c7be..eb68d48f0a04 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Generated/Samples/Samples_PurviewWorkflowServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Generated/Samples/Samples_PurviewWorkflowServiceClient.cs @@ -27,7 +27,7 @@ public void Example_GetWorkflow() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflow(Guid.NewGuid()); + Response response = client.GetWorkflow(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -46,7 +46,7 @@ public void Example_GetWorkflow_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflow(Guid.NewGuid()); + Response response = client.GetWorkflow(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -72,7 +72,7 @@ public async Task Example_GetWorkflow_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -91,7 +91,7 @@ public async Task Example_GetWorkflow_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -429,7 +429,7 @@ public void Example_GetWorkflowRun() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflowRun(Guid.NewGuid()); + Response response = client.GetWorkflowRun(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -445,7 +445,7 @@ public void Example_GetWorkflowRun_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflowRun(Guid.NewGuid()); + Response response = client.GetWorkflowRun(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -473,7 +473,7 @@ public async Task Example_GetWorkflowRun_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowRunAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowRunAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("actionDag").ToString()); @@ -489,7 +489,7 @@ public async Task Example_GetWorkflowRun_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowRunAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowRunAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -579,7 +579,7 @@ public void Example_GetWorkflowTask() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflowTask(Guid.NewGuid()); + Response response = client.GetWorkflowTask(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -601,7 +601,7 @@ public void Example_GetWorkflowTask_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = client.GetWorkflowTask(Guid.NewGuid()); + Response response = client.GetWorkflowTask(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -633,7 +633,7 @@ public async Task Example_GetWorkflowTask_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -655,7 +655,7 @@ public async Task Example_GetWorkflowTask_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid()); + Response response = await client.GetWorkflowTaskAsync(Guid.NewGuid(), new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -953,7 +953,7 @@ public void Example_GetWorkflows() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflows()) + foreach (var item in client.GetWorkflows(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -972,7 +972,7 @@ public void Example_GetWorkflows_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflows()) + foreach (var item in client.GetWorkflows(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -998,7 +998,7 @@ public async Task Example_GetWorkflows_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowsAsync()) + await foreach (var item in client.GetWorkflowsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1017,7 +1017,7 @@ public async Task Example_GetWorkflows_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowsAsync()) + await foreach (var item in client.GetWorkflowsAsync(new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1043,7 +1043,7 @@ public void Example_GetWorkflowRuns() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflowRuns()) + foreach (var item in client.GetWorkflowRuns("", "", new string[] { "" }, new string[] { "" }, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1064,7 +1064,7 @@ public void Example_GetWorkflowRuns_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflowRuns("", "", new string[] { "" }, new string[] { "" }, 1234)) + foreach (var item in client.GetWorkflowRuns("", "", new string[] { "" }, new string[] { "" }, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1089,7 +1089,7 @@ public async Task Example_GetWorkflowRuns_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowRunsAsync()) + await foreach (var item in client.GetWorkflowRunsAsync("", "", new string[] { "" }, new string[] { "" }, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1110,7 +1110,7 @@ public async Task Example_GetWorkflowRuns_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowRunsAsync("", "", new string[] { "" }, new string[] { "" }, 1234)) + await foreach (var item in client.GetWorkflowRunsAsync("", "", new string[] { "" }, new string[] { "" }, 1234, new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -1135,7 +1135,7 @@ public void Example_GetWorkflowTasks() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflowTasks()) + foreach (var item in client.GetWorkflowTasks("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -1158,7 +1158,7 @@ public void Example_GetWorkflowTasks_AllParameters() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - foreach (var item in client.GetWorkflowTasks("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "")) + foreach (var item in client.GetWorkflowTasks("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -1191,7 +1191,7 @@ public async Task Example_GetWorkflowTasks_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowTasksAsync()) + await foreach (var item in client.GetWorkflowTasksAsync("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); @@ -1214,7 +1214,7 @@ public async Task Example_GetWorkflowTasks_AllParameters_Async() var endpoint = new Uri(""); var client = new PurviewWorkflowServiceClient(endpoint, credential); - await foreach (var item in client.GetWorkflowTasksAsync("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "")) + await foreach (var item in client.GetWorkflowTasksAsync("", new string[] { "" }, "", 1234, "", new string[] { "" }, new string[] { "" }, "", new RequestContext())) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("type").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Samples/Sample1_HelloWorld.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Samples/Sample1_HelloWorld.cs index 5be4018ed4b8..56609aad066f 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Samples/Sample1_HelloWorld.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/Samples/Sample1_HelloWorld.cs @@ -31,7 +31,7 @@ public async Task CreateWorkflowClient() #endregion //Perform an operation - AsyncPageable workflowList = client.GetWorkflowsAsync(); + AsyncPageable workflowList = client.GetWorkflowsAsync(new RequestContext()); await foreach (var workflow in workflowList) { @@ -86,7 +86,7 @@ public async Task GetWorkflow() // This workflowId represents an existing workflow. The id can be obtained by calling CreateOrReplaceWorkflowAsync API or list workflows by calling GetWorkflowsAsync API. Guid workflowId = new Guid("8af1ecae-16ee-4b2d-8972-00d611dd2f99"); - Response getResult = await client.GetWorkflowAsync(workflowId); + Response getResult = await client.GetWorkflowAsync(workflowId, new()); #endregion diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/WorkflowsClientTest.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/WorkflowsClientTest.cs index f007de06ac92..4f3777e7148d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/tests/WorkflowsClientTest.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/tests/WorkflowsClientTest.cs @@ -52,7 +52,7 @@ public async Task GetWorkflow() { var client = GetWorkflowClient(); Guid workflowId = new Guid("8af1ecae-16ee-4b2d-8972-00d611dd2f99"); - Response getResult = await client.GetWorkflowAsync(workflowId); + Response getResult = await client.GetWorkflowAsync(workflowId, new()); using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(getResult)); JsonElement getBodyJson = jsonDocument.RootElement; Assert.AreEqual(workflowId.ToString(), getBodyJson.GetProperty("id").GetString()); diff --git a/sdk/storage/Azure.Storage.Blobs/src/autorest.md b/sdk/storage/Azure.Storage.Blobs/src/autorest.md index 878505969efd..d85dc1d2ae67 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/autorest.md +++ b/sdk/storage/Azure.Storage.Blobs/src/autorest.md @@ -8,6 +8,7 @@ input-file: generation1-convenience-client: true # https://github.com/Azure/autorest/issues/4075 skip-semantics-validation: true +keep-non-overloadable-protocol-signature: true modelerfour: seal-single-value-enum-by-default: true ``` diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md index 059b8693d11d..e5e0220b6518 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md @@ -108,7 +108,7 @@ RoleDefinitionsClient definitionsClient = new RoleDefinitionsClient(new Uri(endp First, you need to the determine the ID of the role you wish to assign, along with the ID of the principal you wish to assign that role. ```C# Snippet:PrepCreateRoleAssignment -Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true); +Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true, null, new()); BinaryData roleDefinitionsContent = roleDefinitionsResponse.Content; using JsonDocument roleDefinitionsJson = JsonDocument.Parse(roleDefinitionsContent.ToMemory()); @@ -159,7 +159,7 @@ Console.WriteLine($"Role {roleAssignmentRoleDefinitionId} is assigned to {roleAs To enumerate all role assignments in the Synapse workspace you can call `ListRoleAssignments`. ```C# Snippet:ListRoleAssignments -Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(); +Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(null, null, null, null, new()); BinaryData roleAssignmentsContent = roleAssignmentsResponse.Content; using JsonDocument roleAssignmentsJson = JsonDocument.Parse(roleAssignmentsContent.ToMemory()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs index 45d2ab35e04c..1acdc73069f8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs @@ -20,10 +20,10 @@ public RoleAssignmentsClient(System.Uri endpoint, Azure.Core.TokenCredential cre public virtual System.Threading.Tasks.Task CreateRoleAssignmentAsync(string roleAssignmentId, Azure.Core.RequestContent content, Azure.Core.ContentType contentType, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteRoleAssignmentById(string roleAssignmentId, string scope = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteRoleAssignmentByIdAsync(string roleAssignmentId, string scope = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRoleAssignmentById(string roleAssignmentId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRoleAssignmentByIdAsync(string roleAssignmentId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRoleAssignments(string roleId = null, string principalId = null, string scope = null, string continuationToken = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRoleAssignmentsAsync(string roleId = null, string principalId = null, string scope = null, string continuationToken = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetRoleAssignmentById(string roleAssignmentId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRoleAssignmentByIdAsync(string roleAssignmentId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRoleAssignments(string roleId, string principalId, string scope, string continuationToken, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRoleAssignmentsAsync(string roleId, string principalId, string scope, string continuationToken, Azure.RequestContext context) { throw null; } } public partial class RoleDefinitionsClient { @@ -31,12 +31,12 @@ protected RoleDefinitionsClient() { } public RoleDefinitionsClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public RoleDefinitionsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Synapse.AccessControl.AccessControlClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetRoleDefinitionById(string roleDefinitionId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRoleDefinitionByIdAsync(string roleDefinitionId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRoleDefinitions(bool? isBuiltIn = default(bool?), string scope = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRoleDefinitionsAsync(bool? isBuiltIn = default(bool?), string scope = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetScopes(Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScopesAsync(Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetRoleDefinitionById(string roleDefinitionId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRoleDefinitionByIdAsync(string roleDefinitionId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRoleDefinitions(bool? isBuiltIn, string scope, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRoleDefinitionsAsync(bool? isBuiltIn, string scope, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetScopes(Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetScopesAsync(Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md index 99f52009c28a..c74aa9f95d98 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md @@ -19,7 +19,7 @@ RoleDefinitionsClient definitionsClient = new RoleDefinitionsClient(new Uri(endp First, you need to the determine the ID of the role you wish to assign, along with the ID of the principal you wish to assign that role. ```C# Snippet:PrepCreateRoleAssignment -Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true); +Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true, null, new()); BinaryData roleDefinitionsContent = roleDefinitionsResponse.Content; using JsonDocument roleDefinitionsJson = JsonDocument.Parse(roleDefinitionsContent.ToMemory()); @@ -70,7 +70,7 @@ Console.WriteLine($"Role {roleAssignmentRoleDefinitionId} is assigned to {roleAs To enumerate all role assignments in the Synapse workspace call `GetRoleAssignments`. ```C# Snippet:ListRoleAssignments -Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(); +Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(null, null, null, null, new()); BinaryData roleAssignmentsContent = roleAssignmentsResponse.Content; using JsonDocument roleAssignmentsJson = JsonDocument.Parse(roleAssignmentsContent.ToMemory()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleAssignmentsClient.xml b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleAssignmentsClient.xml index a1840276d2be..323bedb0584c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleAssignmentsClient.xml +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleAssignmentsClient.xml @@ -125,24 +125,13 @@ Console.WriteLine(result.GetProperty("accessDecisions")[0].GetProperty("roleAssi -This sample shows how to call GetRoleAssignmentsAsync and parse the result. +This sample shows how to call GetRoleAssignmentsAsync with required parameters and parse the result. "); var client = new RoleAssignmentsClient(endpoint, credential); -Response response = await client.GetRoleAssignmentsAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetRoleAssignmentsAsync with all parameters, and how to parse the result. -"); -var client = new RoleAssignmentsClient(endpoint, credential); - -Response response = await client.GetRoleAssignmentsAsync("", "", "", ""); +Response response = await client.GetRoleAssignmentsAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("count").ToString()); @@ -156,24 +145,13 @@ Console.WriteLine(result.GetProperty("value")[0].GetProperty("principalType").To -This sample shows how to call GetRoleAssignments and parse the result. -"); -var client = new RoleAssignmentsClient(endpoint, credential); - -Response response = client.GetRoleAssignments(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetRoleAssignments with all parameters, and how to parse the result. +This sample shows how to call GetRoleAssignments with required parameters and parse the result. "); var client = new RoleAssignmentsClient(endpoint, credential); -Response response = client.GetRoleAssignments("", "", "", ""); +Response response = client.GetRoleAssignments("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("count").ToString()); @@ -279,7 +257,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); -Response response = await client.GetRoleAssignmentByIdAsync(""); +Response response = await client.GetRoleAssignmentByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -298,7 +276,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); -Response response = client.GetRoleAssignmentById(""); +Response response = client.GetRoleAssignmentById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleDefinitionsClient.xml b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleDefinitionsClient.xml index 6ec3c0367a79..8d05ef0472fd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleDefinitionsClient.xml +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/Docs/RoleDefinitionsClient.xml @@ -3,24 +3,13 @@ -This sample shows how to call GetRoleDefinitionsAsync and parse the result. +This sample shows how to call GetRoleDefinitionsAsync with required parameters and parse the result. "); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = await client.GetRoleDefinitionsAsync(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetRoleDefinitionsAsync with all parameters, and how to parse the result. -"); -var client = new RoleDefinitionsClient(endpoint, credential); - -Response response = await client.GetRoleDefinitionsAsync(true, ""); +Response response = await client.GetRoleDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("id").ToString()); @@ -38,24 +27,13 @@ Console.WriteLine(result[0].GetProperty("availabilityStatus").ToString()); -This sample shows how to call GetRoleDefinitions and parse the result. -"); -var client = new RoleDefinitionsClient(endpoint, credential); - -Response response = client.GetRoleDefinitions(); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> -This sample shows how to call GetRoleDefinitions with all parameters, and how to parse the result. +This sample shows how to call GetRoleDefinitions with required parameters and parse the result. "); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = client.GetRoleDefinitions(true, ""); +Response response = client.GetRoleDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("id").ToString()); @@ -79,7 +57,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = await client.GetRoleDefinitionByIdAsync(""); +Response response = await client.GetRoleDefinitionByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -103,7 +81,7 @@ var credential = new DefaultAzureCredential(); var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = client.GetRoleDefinitionById(""); +Response response = client.GetRoleDefinitionById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -121,13 +99,13 @@ Console.WriteLine(result.GetProperty("availabilityStatus").ToString()); -This sample shows how to call GetScopesAsync and parse the result. +This sample shows how to call GetScopesAsync with required parameters and parse the result. "); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = await client.GetScopesAsync(); +Response response = await client.GetScopesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -136,13 +114,13 @@ Console.WriteLine(result[0].ToString()); -This sample shows how to call GetScopes and parse the result. +This sample shows how to call GetScopes with required parameters and parse the result. "); var client = new RoleDefinitionsClient(endpoint, credential); -Response response = client.GetScopes(); +Response response = client.GetScopes(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs index 39aaaea6292a..fe680913ab3a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs @@ -148,7 +148,7 @@ public virtual Response CheckPrincipalAccess(RequestContent content, ContentType /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRoleAssignmentsAsync(string roleId = null, string principalId = null, string scope = null, string continuationToken = null, RequestContext context = null) + public virtual async Task GetRoleAssignmentsAsync(string roleId, string principalId, string scope, string continuationToken, RequestContext context) { using var scope0 = ClientDiagnostics.CreateScope("RoleAssignmentsClient.GetRoleAssignments"); scope0.Start(); @@ -182,7 +182,7 @@ public virtual async Task GetRoleAssignmentsAsync(string roleId = null /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRoleAssignments(string roleId = null, string principalId = null, string scope = null, string continuationToken = null, RequestContext context = null) + public virtual Response GetRoleAssignments(string roleId, string principalId, string scope, string continuationToken, RequestContext context) { using var scope0 = ClientDiagnostics.CreateScope("RoleAssignmentsClient.GetRoleAssignments"); scope0.Start(); @@ -291,7 +291,7 @@ public virtual Response CreateRoleAssignment(string roleAssignmentId, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRoleAssignmentByIdAsync(string roleAssignmentId, RequestContext context = null) + public virtual async Task GetRoleAssignmentByIdAsync(string roleAssignmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(roleAssignmentId, nameof(roleAssignmentId)); @@ -326,7 +326,7 @@ public virtual async Task GetRoleAssignmentByIdAsync(string roleAssign /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRoleAssignmentById(string roleAssignmentId, RequestContext context = null) + public virtual Response GetRoleAssignmentById(string roleAssignmentId, RequestContext context) { Argument.AssertNotNullOrEmpty(roleAssignmentId, nameof(roleAssignmentId)); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs index f3bdda25d4b5..b91f5410dcdc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs @@ -76,7 +76,7 @@ public RoleDefinitionsClient(Uri endpoint, TokenCredential credential, AccessCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRoleDefinitionsAsync(bool? isBuiltIn = null, string scope = null, RequestContext context = null) + public virtual async Task GetRoleDefinitionsAsync(bool? isBuiltIn, string scope, RequestContext context) { using var scope0 = ClientDiagnostics.CreateScope("RoleDefinitionsClient.GetRoleDefinitions"); scope0.Start(); @@ -108,7 +108,7 @@ public virtual async Task GetRoleDefinitionsAsync(bool? isBuiltIn = nu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRoleDefinitions(bool? isBuiltIn = null, string scope = null, RequestContext context = null) + public virtual Response GetRoleDefinitions(bool? isBuiltIn, string scope, RequestContext context) { using var scope0 = ClientDiagnostics.CreateScope("RoleDefinitionsClient.GetRoleDefinitions"); scope0.Start(); @@ -141,7 +141,7 @@ public virtual Response GetRoleDefinitions(bool? isBuiltIn = null, string scope /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRoleDefinitionByIdAsync(string roleDefinitionId, RequestContext context = null) + public virtual async Task GetRoleDefinitionByIdAsync(string roleDefinitionId, RequestContext context) { Argument.AssertNotNullOrEmpty(roleDefinitionId, nameof(roleDefinitionId)); @@ -176,7 +176,7 @@ public virtual async Task GetRoleDefinitionByIdAsync(string roleDefini /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRoleDefinitionById(string roleDefinitionId, RequestContext context = null) + public virtual Response GetRoleDefinitionById(string roleDefinitionId, RequestContext context) { Argument.AssertNotNullOrEmpty(roleDefinitionId, nameof(roleDefinitionId)); @@ -208,7 +208,7 @@ public virtual Response GetRoleDefinitionById(string roleDefinitionId, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetScopesAsync(RequestContext context = null) + public virtual async Task GetScopesAsync(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("RoleDefinitionsClient.GetScopes"); scope.Start(); @@ -238,7 +238,7 @@ public virtual async Task GetScopesAsync(RequestContext context = null /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetScopes(RequestContext context = null) + public virtual Response GetScopes(RequestContext context) { using var scope = ClientDiagnostics.CreateScope("RoleDefinitionsClient.GetScopes"); scope.Start(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..4e1148a759d4 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/AccessControlClientLiveTests.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/AccessControlClientLiveTests.cs index d1f80e3370af..5ed00c9634d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/AccessControlClientLiveTests.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/AccessControlClientLiveTests.cs @@ -52,7 +52,7 @@ public static async ValueTask Create(RoleAssignmentsClient public static async ValueTask CreateResource(RoleAssignmentsClient assignmentsClient, RoleDefinitionsClient definitionsClient, SynapseTestEnvironment testEnvironment) { - Response listResponse = await definitionsClient.GetRoleDefinitionsAsync(true); + Response listResponse = await definitionsClient.GetRoleDefinitionsAsync(true, null, new()); var listContent = listResponse.Content; using var roleDefinitionsJson = JsonDocument.Parse(listContent.ToMemory()); @@ -136,7 +136,7 @@ public async Task CanListRoleDefinitions() await using DisposableClientRole role = await DisposableClientRole.Create(assignmentsClient, definitionsClient, TestEnvironment); // TODO: This will change to pageable with next (Data Plane) client generator update - Response listReponse = await definitionsClient.GetRoleDefinitionsAsync(true); + Response listReponse = await definitionsClient.GetRoleDefinitionsAsync(true, null, new()); var listContent = listReponse.Content; using var roleDefinitionsJson = JsonDocument.Parse(listContent.ToMemory()); @@ -164,7 +164,7 @@ public async Task CanListRoleAssignments() await using DisposableClientRole role = await DisposableClientRole.Create(assignmentsClient, definitionsClient, TestEnvironment); // TODO: This will change to pageable with https://github.com/azure/azure-sdk-for-net/issues/24680 - Response listReponse = await assignmentsClient.GetRoleAssignmentsAsync(); + Response listReponse = await assignmentsClient.GetRoleAssignmentsAsync(null, null, null, null, new()); var listContent = listReponse.Content; using var outerJson = JsonDocument.Parse(listContent.ToMemory()); var roleAssignmentsJson = outerJson.RootElement.GetProperty("value"); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleAssignmentsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleAssignmentsClient.cs index a539cea3cd02..8c412cb0440d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleAssignmentsClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleAssignmentsClient.cs @@ -161,7 +161,7 @@ public void Example_GetRoleAssignments() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = client.GetRoleAssignments(); + Response response = client.GetRoleAssignments("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -175,7 +175,7 @@ public void Example_GetRoleAssignments_AllParameters() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = client.GetRoleAssignments("", "", "", ""); + Response response = client.GetRoleAssignments("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("count").ToString()); @@ -194,7 +194,7 @@ public async Task Example_GetRoleAssignments_Async() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = await client.GetRoleAssignmentsAsync(); + Response response = await client.GetRoleAssignmentsAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -208,7 +208,7 @@ public async Task Example_GetRoleAssignments_AllParameters_Async() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = await client.GetRoleAssignmentsAsync("", "", "", ""); + Response response = await client.GetRoleAssignmentsAsync("", "", "", "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("count").ToString()); @@ -321,7 +321,7 @@ public void Example_GetRoleAssignmentById() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = client.GetRoleAssignmentById(""); + Response response = client.GetRoleAssignmentById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -335,7 +335,7 @@ public void Example_GetRoleAssignmentById_AllParameters() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = client.GetRoleAssignmentById(""); + Response response = client.GetRoleAssignmentById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -353,7 +353,7 @@ public async Task Example_GetRoleAssignmentById_Async() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = await client.GetRoleAssignmentByIdAsync(""); + Response response = await client.GetRoleAssignmentByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -367,7 +367,7 @@ public async Task Example_GetRoleAssignmentById_AllParameters_Async() var endpoint = new Uri(""); var client = new RoleAssignmentsClient(endpoint, credential); - Response response = await client.GetRoleAssignmentByIdAsync(""); + Response response = await client.GetRoleAssignmentByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleDefinitionsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleDefinitionsClient.cs index b93fa729b7e9..31503049e96b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleDefinitionsClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/Generated/Samples/Samples_RoleDefinitionsClient.cs @@ -27,7 +27,7 @@ public void Example_GetRoleDefinitions() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetRoleDefinitions(); + Response response = client.GetRoleDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -41,7 +41,7 @@ public void Example_GetRoleDefinitions_AllParameters() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetRoleDefinitions(true, ""); + Response response = client.GetRoleDefinitions(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("id").ToString()); @@ -64,7 +64,7 @@ public async Task Example_GetRoleDefinitions_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetRoleDefinitionsAsync(); + Response response = await client.GetRoleDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -78,7 +78,7 @@ public async Task Example_GetRoleDefinitions_AllParameters_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetRoleDefinitionsAsync(true, ""); + Response response = await client.GetRoleDefinitionsAsync(true, "", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].GetProperty("id").ToString()); @@ -101,7 +101,7 @@ public void Example_GetRoleDefinitionById() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetRoleDefinitionById(""); + Response response = client.GetRoleDefinitionById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -115,7 +115,7 @@ public void Example_GetRoleDefinitionById_AllParameters() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetRoleDefinitionById(""); + Response response = client.GetRoleDefinitionById("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -138,7 +138,7 @@ public async Task Example_GetRoleDefinitionById_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetRoleDefinitionByIdAsync(""); + Response response = await client.GetRoleDefinitionByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -152,7 +152,7 @@ public async Task Example_GetRoleDefinitionById_AllParameters_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetRoleDefinitionByIdAsync(""); + Response response = await client.GetRoleDefinitionByIdAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -175,7 +175,7 @@ public void Example_GetScopes() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetScopes(); + Response response = client.GetScopes(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -189,7 +189,7 @@ public void Example_GetScopes_AllParameters() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = client.GetScopes(); + Response response = client.GetScopes(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -203,7 +203,7 @@ public async Task Example_GetScopes_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetScopesAsync(); + Response response = await client.GetScopesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); @@ -217,7 +217,7 @@ public async Task Example_GetScopes_AllParameters_Async() var endpoint = new Uri(""); var client = new RoleDefinitionsClient(endpoint, credential); - Response response = await client.GetScopesAsync(); + Response response = await client.GetScopesAsync(new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result[0].ToString()); diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs index c79583c69276..5d9ec7689d09 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs @@ -33,7 +33,7 @@ public void AddAndRemoveRoleAssignmentSync() #endregion #region Snippet:PrepCreateRoleAssignment - Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true); + Response roleDefinitionsResponse = definitionsClient.GetRoleDefinitions(true, null, new()); BinaryData roleDefinitionsContent = roleDefinitionsResponse.Content; using JsonDocument roleDefinitionsJson = JsonDocument.Parse(roleDefinitionsContent.ToMemory()); @@ -83,7 +83,7 @@ public void AddAndRemoveRoleAssignmentSync() #endregion #region Snippet:ListRoleAssignments - Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(); + Response roleAssignmentsResponse = roleAssignmentsClient.GetRoleAssignments(null, null, null, null, new()); BinaryData roleAssignmentsContent = roleAssignmentsResponse.Content; using JsonDocument roleAssignmentsJson = JsonDocument.Parse(roleAssignmentsContent.ToMemory()); diff --git a/sdk/template/Azure.Template/api/Azure.Template.netstandard2.0.cs b/sdk/template/Azure.Template/api/Azure.Template.netstandard2.0.cs index 87b489589ccd..28cd3bda804d 100644 --- a/sdk/template/Azure.Template/api/Azure.Template.netstandard2.0.cs +++ b/sdk/template/Azure.Template/api/Azure.Template.netstandard2.0.cs @@ -6,8 +6,8 @@ protected TemplateClient() { } public TemplateClient(string vaultBaseUrl, Azure.Core.TokenCredential credential) { } public TemplateClient(string vaultBaseUrl, Azure.Core.TokenCredential credential, Azure.Template.TemplateClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetSecret(string secretName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSecretAsync(string secretName, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetSecret(string secretName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetSecretAsync(string secretName, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetSecretValue(string secretName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSecretValueAsync(string secretName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } diff --git a/sdk/template/Azure.Template/src/Generated/Docs/TemplateClient.xml b/sdk/template/Azure.Template/src/Generated/Docs/TemplateClient.xml index 0a09b16410ac..493ff8f5e819 100644 --- a/sdk/template/Azure.Template/src/Generated/Docs/TemplateClient.xml +++ b/sdk/template/Azure.Template/src/Generated/Docs/TemplateClient.xml @@ -8,7 +8,7 @@ This sample shows how to call GetSecretAsync with required parameters and parse var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); -Response response = await client.GetSecretAsync(""); +Response response = await client.GetSecretAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value").ToString()); @@ -27,7 +27,7 @@ This sample shows how to call GetSecret with required parameters and parse the r var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); -Response response = client.GetSecret(""); +Response response = client.GetSecret("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value").ToString()); diff --git a/sdk/template/Azure.Template/src/Generated/TemplateClient.cs b/sdk/template/Azure.Template/src/Generated/TemplateClient.cs index 1fd7c43a1df9..015b41c55f16 100644 --- a/sdk/template/Azure.Template/src/Generated/TemplateClient.cs +++ b/sdk/template/Azure.Template/src/Generated/TemplateClient.cs @@ -77,7 +77,7 @@ public TemplateClient(string vaultBaseUrl, TokenCredential credential, TemplateC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetSecretAsync(string secretName, RequestContext context = null) + public virtual async Task GetSecretAsync(string secretName, RequestContext context) { Argument.AssertNotNullOrEmpty(secretName, nameof(secretName)); @@ -112,7 +112,7 @@ public virtual async Task GetSecretAsync(string secretName, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSecret(string secretName, RequestContext context = null) + public virtual Response GetSecret(string secretName, RequestContext context) { Argument.AssertNotNullOrEmpty(secretName, nameof(secretName)); diff --git a/sdk/template/Azure.Template/src/GlobalSuppressions.cs b/sdk/template/Azure.Template/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..529ab947db09 --- /dev/null +++ b/sdk/template/Azure.Template/src/GlobalSuppressions.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] diff --git a/sdk/template/Azure.Template/tests/Generated/Samples/Samples_TemplateClient.cs b/sdk/template/Azure.Template/tests/Generated/Samples/Samples_TemplateClient.cs index 8a1b06866fb9..6131f8c3ac56 100644 --- a/sdk/template/Azure.Template/tests/Generated/Samples/Samples_TemplateClient.cs +++ b/sdk/template/Azure.Template/tests/Generated/Samples/Samples_TemplateClient.cs @@ -26,7 +26,7 @@ public void Example_GetSecret() var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); - Response response = client.GetSecret(""); + Response response = client.GetSecret("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -39,7 +39,7 @@ public void Example_GetSecret_AllParameters() var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); - Response response = client.GetSecret(""); + Response response = client.GetSecret("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value").ToString()); @@ -57,7 +57,7 @@ public async Task Example_GetSecret_Async() var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); - Response response = await client.GetSecretAsync(""); + Response response = await client.GetSecretAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -70,7 +70,7 @@ public async Task Example_GetSecret_AllParameters_Async() var credential = new DefaultAzureCredential(); var client = new TemplateClient("", credential); - Response response = await client.GetSecretAsync(""); + Response response = await client.GetSecretAsync("", new RequestContext()); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value").ToString()); diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/autorest.md b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/autorest.md index e58099aef541..3a4fe81c8418 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/autorest.md +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/autorest.md @@ -12,6 +12,7 @@ input-file: - https://github.com/Azure/azure-rest-api-specs/blob/1735a92bdc79b446385a36ba063ea5235680709f/specification/webpubsub/data-plane/WebPubSub/stable/2022-11-01/webpubsub.json credential-types: AzureKeyCredential credential-header-name: Ocp-Apim-Subscription-Key +keep-non-overloadable-protocol-signature: true ``` ### Make WebPubSubPermission a regular enum