internal DeleteAttributesResponse DeleteAttributes(DeleteAttributesRequest request) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.Instance; return(Invoke <DeleteAttributesRequest, DeleteAttributesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAttributes operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB.DeleteAttributes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes 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 <DeleteAttributesResponse> DeleteAttributesAsync(DeleteAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DeleteAttributesRequest, DeleteAttributesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void DeleteAttributesMarshallTest() { var request = InstantiateClassGenerator.Execute <DeleteAttributesRequest>(); var marshaller = new DeleteAttributesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DeleteAttributesRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteAttributes").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DeleteAttributesResponseUnmarshaller.Instance.Unmarshall(context) as DeleteAttributesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAttributes operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes 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 <DeleteAttributesResponse> DeleteAttributesAsync(DeleteAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.Instance; return(InvokeAsync <DeleteAttributesRequest, DeleteAttributesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DeleteAttributesMarshallTest() { var operation = service_model.FindOperation("DeleteAttributes"); var request = InstantiateClassGenerator.Execute <DeleteAttributesRequest>(); var marshaller = new DeleteAttributesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Deletes one or more attributes associated with an item. If all attributes of the item are deleted, the item is deleted. </para> /// <para><b>NOTE:</b> If DeleteAttributes is called without being passed any attributes or values specified, all the attributes for the item /// are deleted. </para> <para> <c>DeleteAttributes</c> is an idempotent operation; running it multiple times on the same item or attribute does /// not result in an error response. </para> <para> Because Amazon SimpleDB makes multiple copies of item data and uses an eventual consistency /// update model, performing a GetAttributes or Select operation (read) immediately after a <c>DeleteAttributes</c> or PutAttributes operation /// (write) might not return updated item data. </para> /// </summary> /// /// <param name="deleteAttributesRequest">Container for the necessary parameters to execute the DeleteAttributes service method on /// AmazonSimpleDB.</param> /// /// <exception cref="T:Amazon.SimpleDB.Model.InvalidParameterValueException" /> /// <exception cref="T:Amazon.SimpleDB.Model.NoSuchDomainException" /> /// <exception cref="T:Amazon.SimpleDB.Model.AttributeDoesNotExistException" /> /// <exception cref="T:Amazon.SimpleDB.Model.MissingParameterException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteAttributesResponse> DeleteAttributesAsync(DeleteAttributesRequest deleteAttributesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteAttributesRequest, DeleteAttributesResponse>(deleteAttributesRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteAttributes operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes 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<DeleteAttributesResponse> DeleteAttributesAsync(DeleteAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.Instance; return InvokeAsync<DeleteAttributesRequest,DeleteAttributesResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes one or more attributes associated with an item. If all attributes of the /// item are deleted, the item is deleted. /// /// /// <para> /// <code>DeleteAttributes</code> is an idempotent operation; running it multiple times /// on the same item or attribute does not result in an error response. /// </para> /// /// <para> /// Because Amazon SimpleDB makes multiple copies of item data and uses an eventual consistency /// update model, performing a <a>GetAttributes</a> or <a>Select</a> operation (read) /// immediately after a <code>DeleteAttributes</code> or <a>PutAttributes</a> operation /// (write) might not return updated item data. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes service method.</param> /// /// <returns>The response from the DeleteAttributes service method, as returned by SimpleDB.</returns> /// <exception cref="AttributeDoesNotExistException"> /// The specified attribute does not exist. /// </exception> /// <exception cref="InvalidParameterValueException"> /// The value for a parameter is invalid. /// </exception> /// <exception cref="MissingParameterException"> /// The request must contain the specified missing parameter. /// </exception> /// <exception cref="NoSuchDomainException"> /// The specified domain does not exist. /// </exception> public DeleteAttributesResponse DeleteAttributes(DeleteAttributesRequest request) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.Instance; return Invoke<DeleteAttributesRequest,DeleteAttributesResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteAttributesRequestMarshaller().Marshall(deleteAttributesRequest); var unmarshaller = DeleteAttributesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DeleteAttributes operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB.DeleteAttributes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes 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<DeleteAttributesResponse> DeleteAttributesAsync(DeleteAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteAttributesRequest, DeleteAttributesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAttributes operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAttributes operation on AmazonSimpleDBClient.</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 EndDeleteAttributes /// operation.</returns> public IAsyncResult BeginDeleteAttributes(DeleteAttributesRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteAttributesRequestMarshaller(); var unmarshaller = DeleteAttributesResponseUnmarshaller.Instance; return BeginInvoke<DeleteAttributesRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteAttributesMarshallTest() { var operation = service_model.FindOperation("DeleteAttributes"); var request = InstantiateClassGenerator.Execute<DeleteAttributesRequest>(); var marshaller = new DeleteAttributesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }