public virtual AsyncPageable <BinaryData> GetWeathersAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset?startDateTime = null, DateTimeOffset?endDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
#pragma warning restore AZC0002
        {
            if (farmerId == null)
            {
                throw new ArgumentNullException(nameof(farmerId));
            }
            if (boundaryId == null)
            {
                throw new ArgumentNullException(nameof(boundaryId));
            }
            if (extensionId == null)
            {
                throw new ArgumentNullException(nameof(extensionId));
            }
            if (weatherDataType == null)
            {
                throw new ArgumentNullException(nameof(weatherDataType));
            }
            if (granularity == null)
            {
                throw new ArgumentNullException(nameof(granularity));
            }

            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, _clientDiagnostics, "WeatherClient.GetWeathers"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #2
0
        public virtual AsyncPageable <BinaryData> GetAttachmentsByFarmerIdAsync(string farmerId, IEnumerable <string> resourceIds = null, IEnumerable <string> resourceTypes = null, IEnumerable <string> ids = null, IEnumerable <string> names = null, IEnumerable <string> propertyFilters = null, IEnumerable <string> statuses = null, DateTimeOffset?minCreatedDateTime = null, DateTimeOffset?maxCreatedDateTime = null, DateTimeOffset?minLastModifiedDateTime = null, DateTimeOffset?maxLastModifiedDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
        {
            Argument.AssertNotNullOrEmpty(farmerId, nameof(farmerId));

            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "AttachmentsClient.GetAttachmentsByFarmerId"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #3
0
        public virtual AsyncPageable <BinaryData> GetCropVarietiesByCropIdAsync(string cropId, IEnumerable <string> cropIds = null, IEnumerable <string> brands = null, IEnumerable <string> products = null, IEnumerable <string> ids = null, IEnumerable <string> names = null, IEnumerable <string> propertyFilters = null, IEnumerable <string> statuses = null, DateTimeOffset?minCreatedDateTime = null, DateTimeOffset?maxCreatedDateTime = null, DateTimeOffset?minLastModifiedDateTime = null, DateTimeOffset?maxLastModifiedDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
#pragma warning restore AZC0002
        {
            Argument.AssertNotNull(cropId, nameof(cropId));

            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, _clientDiagnostics, "CropVarietiesClient.GetCropVarietiesByCropId"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetScenesAsync(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset?startDateTime = null, DateTimeOffset?endDateTime = null, double?maxCloudCoveragePercentage = null, double?maxDarkPixelCoveragePercentage = null, IEnumerable <string> imageNames = null, IEnumerable <double> imageResolutions = null, IEnumerable <string> imageFormats = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
        {
            Argument.AssertNotNull(provider, nameof(provider));
            Argument.AssertNotNull(farmerId, nameof(farmerId));
            Argument.AssertNotNull(boundaryId, nameof(boundaryId));

            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "ScenesClient.GetScenes"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #5
0
        public virtual AsyncPageable <BinaryData> GetWeathersAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset?startDateTime = null, DateTimeOffset?endDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
        {
            Argument.AssertNotNull(farmerId, nameof(farmerId));
            Argument.AssertNotNull(boundaryId, nameof(boundaryId));
            Argument.AssertNotNull(extensionId, nameof(extensionId));
            Argument.AssertNotNull(weatherDataType, nameof(weatherDataType));
            Argument.AssertNotNull(granularity, nameof(granularity));

            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "WeatherClient.GetWeathers"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #6
0
        private AsyncPageable <BinaryData> GetFarmersImplementationAsync(string diagnosticsScopeName, IEnumerable <string> ids, IEnumerable <string> names, IEnumerable <string> propertyFilters, IEnumerable <string> statuses, DateTimeOffset?minCreatedDateTime, DateTimeOffset?maxCreatedDateTime, DateTimeOffset?minLastModifiedDateTime, DateTimeOffset?maxLastModifiedDateTime, int?maxPageSize, string skipToken, RequestContext context)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, diagnosticsScopeName));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #7
0
        private AsyncPageable <BinaryData> GetScenesImplementationAsync(string diagnosticsScopeName, string provider, string farmerId, string boundaryId, string source, DateTimeOffset?startDateTime, DateTimeOffset?endDateTime, double?maxCloudCoveragePercentage, double?maxDarkPixelCoveragePercentage, IEnumerable <string> imageNames, IEnumerable <double> imageResolutions, IEnumerable <string> imageFormats, int?maxPageSize, string skipToken, RequestContext context)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, diagnosticsScopeName));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetVersionsAsync(RequestContext context = null)
#pragma warning restore AZC0002
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "PurviewClassificationRuleClient.GetVersions"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        private AsyncPageable <BinaryData> GetMetadataPoliciesImplementationAsync(string diagnosticsScopeName, RequestContext context)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, diagnosticsScopeName));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetResourcesAsync(RequestContext context = null)
#pragma warning restore AZC0002
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, _clientDiagnostics, "TemplateServiceClient.GetResources"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #11
0
        public virtual AsyncPageable <BinaryData> GetSeasonsAsync(DateTimeOffset?minStartDateTime = null, DateTimeOffset?maxStartDateTime = null, DateTimeOffset?minEndDateTime = null, DateTimeOffset?maxEndDateTime = null, IEnumerable <int> years = null, IEnumerable <string> ids = null, IEnumerable <string> names = null, IEnumerable <string> propertyFilters = null, IEnumerable <string> statuses = null, DateTimeOffset?minCreatedDateTime = null, DateTimeOffset?maxCreatedDateTime = null, DateTimeOffset?minLastModifiedDateTime = null, DateTimeOffset?maxLastModifiedDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "SeasonsClient.GetSeasons"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetMetadataRolesAsync(RequestContext context = null)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "PurviewMetadataRolesClient.GetMetadataRoles"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #13
0
        private AsyncPageable <BinaryData> GetOAuthTokensImplementationAsync(string diagnosticsScopeName, IEnumerable <string> authProviderIds, IEnumerable <string> farmerIds, bool?isValid, DateTimeOffset?minCreatedDateTime, DateTimeOffset?maxCreatedDateTime, DateTimeOffset?minLastModifiedDateTime, DateTimeOffset?maxLastModifiedDateTime, int?maxPageSize, string skipToken, RequestContext context)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, diagnosticsScopeName));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetOAuthTokensAsync(IEnumerable <string> authProviderIds = null, IEnumerable <string> farmerIds = 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)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "OAuthTokensClient.GetOAuthTokens"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        public virtual AsyncPageable <BinaryData> GetChildCollectionNamesAsync(string skipToken = null, RequestContext context = null)
#pragma warning restore AZC0002
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "PurviewCollection.GetChildCollectionNames"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Beispiel #16
0
        public virtual AsyncPageable <BinaryData> GetFarmersAsync(IEnumerable <string> ids = null, IEnumerable <string> names = null, IEnumerable <string> propertyFilters = null, IEnumerable <string> statuses = null, DateTimeOffset?minCreatedDateTime = null, DateTimeOffset?maxCreatedDateTime = null, DateTimeOffset?minLastModifiedDateTime = null, DateTimeOffset?maxLastModifiedDateTime = null, int?maxPageSize = null, string skipToken = null, RequestContext context = null)
#pragma warning restore AZC0002
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, "FarmersClient.GetFarmers"));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)
        private AsyncPageable <BinaryData> GetWeathersImplementationAsync(string diagnosticsScopeName, string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset?startDateTime, DateTimeOffset?endDateTime, int?maxPageSize, string skipToken, RequestContext context)
        {
            return(PageableHelpers.CreateAsyncPageable(CreateEnumerableAsync, ClientDiagnostics, diagnosticsScopeName));

            async IAsyncEnumerable <Page <BinaryData> > CreateEnumerableAsync(string nextLink, int?pageSizeHint, [EnumeratorCancellation] CancellationToken cancellationToken = default)