コード例 #1
0
 internal QueryTableRowsPaginator(IAmazonHoneycode client, QueryTableRowsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #2
0
 private Amazon.Honeycode.Model.QueryTableRowsResponse CallAWSServiceOperation(IAmazonHoneycode client, Amazon.Honeycode.Model.QueryTableRowsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Honeycode", "QueryTableRows");
     try
     {
         #if DESKTOP
         return(client.QueryTableRows(request));
         #elif CORECLR
         return(client.QueryTableRowsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
コード例 #3
0
 /// <summary>
 /// Paginator for QueryTableRows operation
 ///</summary>
 public IQueryTableRowsPaginator QueryTableRows(QueryTableRowsRequest request)
 {
     return(new QueryTableRowsPaginator(this.client, request));
 }
コード例 #4
0
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.Honeycode.Model.QueryTableRowsRequest();


            // populate FilterFormula
            var requestFilterFormulaIsNull = true;

            request.FilterFormula = new Amazon.Honeycode.Model.Filter();
            System.String requestFilterFormula_filterFormula_ContextRowId = null;
            if (cmdletContext.FilterFormula_ContextRowId != null)
            {
                requestFilterFormula_filterFormula_ContextRowId = cmdletContext.FilterFormula_ContextRowId;
            }
            if (requestFilterFormula_filterFormula_ContextRowId != null)
            {
                request.FilterFormula.ContextRowId = requestFilterFormula_filterFormula_ContextRowId;
                requestFilterFormulaIsNull         = false;
            }
            System.String requestFilterFormula_filterFormula_Formula = null;
            if (cmdletContext.FilterFormula_Formula != null)
            {
                requestFilterFormula_filterFormula_Formula = cmdletContext.FilterFormula_Formula;
            }
            if (requestFilterFormula_filterFormula_Formula != null)
            {
                request.FilterFormula.Formula = requestFilterFormula_filterFormula_Formula;
                requestFilterFormulaIsNull    = false;
            }
            // determine if request.FilterFormula should be set to null
            if (requestFilterFormulaIsNull)
            {
                request.FilterFormula = null;
            }
            if (cmdletContext.MaxResult != null)
            {
                request.MaxResults = cmdletContext.MaxResult.Value;
            }
            if (cmdletContext.NextToken != null)
            {
                request.NextToken = cmdletContext.NextToken;
            }
            if (cmdletContext.TableId != null)
            {
                request.TableId = cmdletContext.TableId;
            }
            if (cmdletContext.WorkbookId != null)
            {
                request.WorkbookId = cmdletContext.WorkbookId;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }