Constants used for properties of type DocumentationPartType.
Inheritance: ConstantClass
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.APIGateway.Model.CreateDocumentationPartRequest();


            // populate Location
            var requestLocationIsNull = true;

            request.Location = new Amazon.APIGateway.Model.DocumentationPartLocation();
            System.String requestLocation_location_Method = null;
            if (cmdletContext.Location_Method != null)
            {
                requestLocation_location_Method = cmdletContext.Location_Method;
            }
            if (requestLocation_location_Method != null)
            {
                request.Location.Method = requestLocation_location_Method;
                requestLocationIsNull   = false;
            }
            System.String requestLocation_location_Name = null;
            if (cmdletContext.Location_Name != null)
            {
                requestLocation_location_Name = cmdletContext.Location_Name;
            }
            if (requestLocation_location_Name != null)
            {
                request.Location.Name = requestLocation_location_Name;
                requestLocationIsNull = false;
            }
            System.String requestLocation_location_Path = null;
            if (cmdletContext.Location_Path != null)
            {
                requestLocation_location_Path = cmdletContext.Location_Path;
            }
            if (requestLocation_location_Path != null)
            {
                request.Location.Path = requestLocation_location_Path;
                requestLocationIsNull = false;
            }
            System.String requestLocation_location_StatusCode = null;
            if (cmdletContext.Location_StatusCode != null)
            {
                requestLocation_location_StatusCode = cmdletContext.Location_StatusCode;
            }
            if (requestLocation_location_StatusCode != null)
            {
                request.Location.StatusCode = requestLocation_location_StatusCode;
                requestLocationIsNull       = false;
            }
            Amazon.APIGateway.DocumentationPartType requestLocation_location_Type = null;
            if (cmdletContext.Location_Type != null)
            {
                requestLocation_location_Type = cmdletContext.Location_Type;
            }
            if (requestLocation_location_Type != null)
            {
                request.Location.Type = requestLocation_location_Type;
                requestLocationIsNull = false;
            }
            // determine if request.Location should be set to null
            if (requestLocationIsNull)
            {
                request.Location = null;
            }
            if (cmdletContext.Property != null)
            {
                request.Properties = cmdletContext.Property;
            }
            if (cmdletContext.RestApiId != null)
            {
                request.RestApiId = cmdletContext.RestApiId;
            }

            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);
        }