Inheritance: MachineLearningClientBase
Exemplo n.º 1
0
        public async Task <IPage <CommitmentPlan> > ListAzureMlCommitmentPlansAsync(
            string nextLink,
            CancellationToken?cancellationToken)
        {
            string skipToken = CommitmentPlansClient.GetSkipTokenFromLink(nextLink);
            var    cancellationTokenParam = cancellationToken ?? CancellationToken.None;

            var paginatedResponse =
                await this.apiClient.CommitmentPlans.ListWithHttpMessagesAsync(
                    skipToken,
                    cancellationToken : cancellationTokenParam).ConfigureAwait(false);

            return(paginatedResponse.Body);
        }
Exemplo n.º 2
0
        public async Task <IPage <PlanUsageHistory> > GetAzureMlCommitmentPlanUsageHistoryAsync(
            string resourceGroupName,
            string commitmentPlanName,
            string nextLink,
            CancellationToken?cancellationToken)
        {
            string skipToken = CommitmentPlansClient.GetSkipTokenFromLink(nextLink);
            var    cancellationTokenParam = cancellationToken ?? CancellationToken.None;

            var paginatedResponse =
                await
                this.apiClient.UsageHistory.ListWithHttpMessagesAsync(
                    resourceGroupName,
                    commitmentPlanName,
                    skipToken,
                    cancellationToken : cancellationTokenParam).ConfigureAwait(false);

            return(paginatedResponse.Body);
        }