public void PutThirdPartyJobFailureResultMarshallTest() { var request = InstantiateClassGenerator.Execute <PutThirdPartyJobFailureResultRequest>(); var marshaller = new PutThirdPartyJobFailureResultRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <PutThirdPartyJobFailureResultRequest>(request, jsonRequest); }
/// <summary> /// Initiates the asynchronous execution of the PutThirdPartyJobFailureResult operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutThirdPartyJobFailureResult operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<PutThirdPartyJobFailureResultResponse> PutThirdPartyJobFailureResultAsync(PutThirdPartyJobFailureResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutThirdPartyJobFailureResultRequestMarshaller(); var unmarshaller = PutThirdPartyJobFailureResultResponseUnmarshaller.Instance; return InvokeAsync<PutThirdPartyJobFailureResultRequest,PutThirdPartyJobFailureResultResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Represents the failure of a third party job as returned to the pipeline by a job worker. /// Only used for partner actions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutThirdPartyJobFailureResult service method.</param> /// /// <returns>The response from the PutThirdPartyJobFailureResult service method, as returned by CodePipeline.</returns> /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException"> /// The client token was specified in an invalid format /// </exception> /// <exception cref="Amazon.CodePipeline.Model.InvalidJobStateException"> /// The specified job state was specified in an invalid format. /// </exception> /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException"> /// The specified job was specified in an invalid format or cannot be found. /// </exception> /// <exception cref="Amazon.CodePipeline.Model.ValidationException"> /// The validation was specified in an invalid format. /// </exception> public PutThirdPartyJobFailureResultResponse PutThirdPartyJobFailureResult(PutThirdPartyJobFailureResultRequest request) { var marshaller = new PutThirdPartyJobFailureResultRequestMarshaller(); var unmarshaller = PutThirdPartyJobFailureResultResponseUnmarshaller.Instance; return Invoke<PutThirdPartyJobFailureResultRequest,PutThirdPartyJobFailureResultResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the PutThirdPartyJobFailureResult operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutThirdPartyJobFailureResult operation on AmazonCodePipelineClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutThirdPartyJobFailureResult /// operation.</returns> public IAsyncResult BeginPutThirdPartyJobFailureResult(PutThirdPartyJobFailureResultRequest request, AsyncCallback callback, object state) { var marshaller = new PutThirdPartyJobFailureResultRequestMarshaller(); var unmarshaller = PutThirdPartyJobFailureResultResponseUnmarshaller.Instance; return BeginInvoke<PutThirdPartyJobFailureResultRequest>(request, marshaller, unmarshaller, callback, state); }
public void PutThirdPartyJobFailureResultMarshallTest() { var request = InstantiateClassGenerator.Execute<PutThirdPartyJobFailureResultRequest>(); var marshaller = new PutThirdPartyJobFailureResultRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<PutThirdPartyJobFailureResultRequest>(request,jsonRequest); }