public void CreateElasticsearchDomainMarshallTest() { var operation = service_model.FindOperation("CreateElasticsearchDomain"); var request = InstantiateClassGenerator.Execute <CreateElasticsearchDomainRequest>(); var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("CreateElasticsearchDomain", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as CreateElasticsearchDomainResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal CreateElasticsearchDomainResponse CreateElasticsearchDomain(CreateElasticsearchDomainRequest request) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return(Invoke <CreateElasticsearchDomainRequest, CreateElasticsearchDomainResponse>(request, marshaller, unmarshaller)); }
public void CreateElasticsearchDomainMarshallTest() { var operation = service_model.FindOperation("CreateElasticsearchDomain"); var request = InstantiateClassGenerator.Execute<CreateElasticsearchDomainRequest>(); var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("CreateElasticsearchDomain", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString()); var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as CreateElasticsearchDomainResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateElasticsearchDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateElasticsearchDomain 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 <CreateElasticsearchDomainResponse> CreateElasticsearchDomainAsync(CreateElasticsearchDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return(InvokeAsync <CreateElasticsearchDomainRequest, CreateElasticsearchDomainResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the CreateElasticsearchDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateElasticsearchDomain operation on AmazonElasticsearchClient.</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 EndCreateElasticsearchDomain /// operation.</returns> public IAsyncResult BeginCreateElasticsearchDomain(CreateElasticsearchDomainRequest request, AsyncCallback callback, object state) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return(BeginInvoke <CreateElasticsearchDomainRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the CreateElasticsearchDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateElasticsearchDomain operation on AmazonElasticsearchClient.</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 EndCreateElasticsearchDomain /// operation.</returns> public IAsyncResult BeginCreateElasticsearchDomain(CreateElasticsearchDomainRequest request, AsyncCallback callback, object state) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return BeginInvoke<CreateElasticsearchDomainRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Creates a new Elasticsearch domain. For more information, see <a href="http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" /// target="_blank">Creating Elasticsearch Domains</a> in the <i>Amazon Elasticsearch /// Service Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateElasticsearchDomain service method.</param> /// /// <returns>The response from the CreateElasticsearchDomain service method, as returned by Elasticsearch.</returns> /// <exception cref="Amazon.Elasticsearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.DisabledOperationException"> /// An error occured because the client wanted to access a not supported operation. Gives /// http status code of 409. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.InternalException"> /// The request processing has failed because of an unknown error, exception or failure /// (the failure is internal to the service) . Gives http status code of 500. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.InvalidTypeException"> /// An exception for trying to create or access sub-resource that is either invalid or /// not supported. Gives http status code of 409. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.LimitExceededException"> /// An exception for trying to create more than allowed resources or sub-resources. Gives /// http status code of 409. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.ResourceAlreadyExistsException"> /// An exception for creating a resource that already exists. Gives http status code of /// 400. /// </exception> /// <exception cref="Amazon.Elasticsearch.Model.ValidationException"> /// An exception for missing / invalid input fields. Gives http status code of 400. /// </exception> public CreateElasticsearchDomainResponse CreateElasticsearchDomain(CreateElasticsearchDomainRequest request) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return Invoke<CreateElasticsearchDomainRequest,CreateElasticsearchDomainResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateElasticsearchDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateElasticsearchDomain 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<CreateElasticsearchDomainResponse> CreateElasticsearchDomainAsync(CreateElasticsearchDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateElasticsearchDomainRequestMarshaller(); var unmarshaller = CreateElasticsearchDomainResponseUnmarshaller.Instance; return InvokeAsync<CreateElasticsearchDomainRequest,CreateElasticsearchDomainResponse>(request, marshaller, unmarshaller, cancellationToken); }