Source for file Interface.php

Documentation is available at Interface.php

  1. <?php
  2. /** 
  3.  *  PHP Version 5
  4.  *
  5.  *  @category    Amazon
  6.  *  @package     Amazon_SimpleDB
  7.  *  @copyright   Copyright 2008 Amazon Technologies, Inc.
  8.  *  @link        http://aws.amazon.com
  9.  *  @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
  10.  *  @version     2007-11-07
  11.  */
  12. /******************************************************************************* 
  13.  *    __  _    _  ___ 
  14.  *   (  )( \/\/ )/ __)
  15.  *   /__\ \    / \__ \
  16.  *  (_)(_) \/\/  (___/
  17.  * 
  18.  *  Amazon Simple DB PHP5 Library
  19.  *  Generated: Thu Aug 28 06:20:51 PDT 2008
  20.  * 
  21.  */
  22. /**
  23.  * Amazon SimpleDB is a web service for running queries on structured
  24.  * data in real time. This service works in close conjunction with Amazon
  25.  * Simple Storage Service (Amazon S3) and Amazon Elastic Compute Cloud
  26.  * (Amazon EC2), collectively providing the ability to store, process
  27.  * and query data sets in the cloud. These services are designed to make
  28.  * web-scale computing easier and more cost-effective for developers.
  29.  * Traditionally, this type of functionality has been accomplished with
  30.  * a clustered relational database that requires a sizable upfront
  31.  * investment, brings more complexity than is typically needed, and often
  32.  * requires a DBA to maintain and administer. In contrast, Amazon SimpleDB
  33.  * is easy to use and provides the core functionality of a database -
  34.  * real-time lookup and simple querying of structured data without the
  35.  * operational complexity.  Amazon SimpleDB requires no schema, automatically
  36.  * indexes your data and provides a simple API for storage and access.
  37.  * This eliminates the administrative burden of data modeling, index
  38.  * maintenance, and performance tuning. Developers gain access to this
  39.  * functionality within Amazon's proven computing environment, are able
  40.  * to scale instantly, and pay only for what they use.
  41.  * 
  42.  */
  43.  
  44. {
  45.     
  46.  
  47.             
  48.     /**
  49.      * Create Domain
  50.      * The CreateDomain operation creates a new domain. The domain name must be unique
  51.      * among the domains associated with the Access Key ID provided in the request. The CreateDomain
  52.      * operation may take 10 or more seconds to complete.
  53.      *   
  54.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_CreateDomain.html
  55.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_CreateDomainRequest request
  56.      *  or Amazon_SimpleDB_Model_CreateDomainRequest object itself
  57.      * @see Amazon_SimpleDB_Model_CreateDomainRequest
  58.      * @return Amazon_SimpleDB_Model_CreateDomainResponse Amazon_SimpleDB_Model_CreateDomainResponse
  59.      *
  60.      * @throws Amazon_SimpleDB_Exception
  61.      */
  62.     public function createDomain($request);
  63.  
  64.  
  65.             
  66.     /**
  67.      * List Domains
  68.      * The ListDomains operaton lists all domains associated with the Access Key ID. It returns
  69.      * domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more
  70.      * than MaxNumberOfDomains domains. Calling ListDomains successive times with the
  71.      * NextToken returns up to MaxNumberOfDomains more domain names each time.
  72.      *   
  73.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_ListDomains.html
  74.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_ListDomainsRequest request
  75.      *  or Amazon_SimpleDB_Model_ListDomainsRequest object itself
  76.      * @see Amazon_SimpleDB_Model_ListDomainsRequest
  77.      * @return Amazon_SimpleDB_Model_ListDomainsResponse Amazon_SimpleDB_Model_ListDomainsResponse
  78.      *
  79.      * @throws Amazon_SimpleDB_Exception
  80.      */
  81.     public function listDomains($request);
  82.  
  83.  
  84.             
  85.     /**
  86.      * Delete Domain
  87.      * The DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain
  88.      * are deleted as well. The DeleteDomain operation may take 10 or more seconds to complete.
  89.      *   
  90.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_DeleteDomain.html
  91.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_DeleteDomainRequest request
  92.      *  or Amazon_SimpleDB_Model_DeleteDomainRequest object itself
  93.      * @see Amazon_SimpleDB_Model_DeleteDomainRequest
  94.      * @return Amazon_SimpleDB_Model_DeleteDomainResponse Amazon_SimpleDB_Model_DeleteDomainResponse
  95.      *
  96.      * @throws Amazon_SimpleDB_Exception
  97.      */
  98.     public function deleteDomain($request);
  99.  
  100.  
  101.             
  102.     /**
  103.      * Put Attributes
  104.      * The PutAttributes operation creates or replaces attributes within an item. You specify new attributes
  105.      * using a combination of the Attribute.X.Name and Attribute.X.Value parameters. You specify
  106.      * the first attribute by the parameters Attribute.0.Name and Attribute.0.Value, the second
  107.      * attribute by the parameters Attribute.1.Name and Attribute.1.Value, and so on.
  108.      * Attributes are uniquely identified within an item by their name/value combination. For example, a single
  109.      * item can have the attributes { "first_name", "first_value" } and { "first_name",
  110.      * second_value" }. However, it cannot have two attribute instances where both the Attribute.X.Name and
  111.      * Attribute.X.Value are the same.
  112.      * Optionally, the requestor can supply the Replace parameter for each individual value. Setting this value
  113.      * to true will cause the new attribute value to replace the existing attribute value(s). For example, if an
  114.      * item has the attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor does a
  115.      * PutAttributes of { 'b', '4' } with the Replace parameter set to true, the final attributes of the
  116.      * item will be { 'a', '1' } and { 'b', '4' }, replacing the previous values of the 'b' attribute
  117.      * with the new value.
  118.      *   
  119.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_PutAttributes.html
  120.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_PutAttributesRequest request
  121.      *  or Amazon_SimpleDB_Model_PutAttributesRequest object itself
  122.      * @see Amazon_SimpleDB_Model_PutAttributesRequest
  123.      * @return Amazon_SimpleDB_Model_PutAttributesResponse Amazon_SimpleDB_Model_PutAttributesResponse
  124.      *
  125.      * @throws Amazon_SimpleDB_Exception
  126.      */
  127.     public function putAttributes($request);
  128.  
  129.  
  130.             
  131.     /**
  132.      * Get Attributes
  133.      * Returns all of the attributes associated with the item. Optionally, the attributes returned can be limited to
  134.      * the specified AttributeName parameter.
  135.      * If the item does not exist on the replica that was accessed for this operation, an empty attribute is
  136.      * returned. The system does not return an error as it cannot guarantee the item does not exist on other
  137.      * replicas.
  138.      *   
  139.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_GetAttributes.html
  140.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_GetAttributesRequest request
  141.      *  or Amazon_SimpleDB_Model_GetAttributesRequest object itself
  142.      * @see Amazon_SimpleDB_Model_GetAttributesRequest
  143.      * @return Amazon_SimpleDB_Model_GetAttributesResponse Amazon_SimpleDB_Model_GetAttributesResponse
  144.      *
  145.      * @throws Amazon_SimpleDB_Exception
  146.      */
  147.     public function getAttributes($request);
  148.  
  149.  
  150.             
  151.     /**
  152.      * Delete Attributes
  153.      * Deletes one or more attributes associated with the item. If all attributes of an item are deleted, the item is
  154.      * deleted.
  155.      *   
  156.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_DeleteAttributes.html
  157.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_DeleteAttributesRequest request
  158.      *  or Amazon_SimpleDB_Model_DeleteAttributesRequest object itself
  159.      * @see Amazon_SimpleDB_Model_DeleteAttributesRequest
  160.      * @return Amazon_SimpleDB_Model_DeleteAttributesResponse Amazon_SimpleDB_Model_DeleteAttributesResponse
  161.      *
  162.      * @throws Amazon_SimpleDB_Exception
  163.      */
  164.     public function deleteAttributes($request);
  165.  
  166.  
  167.             
  168.     /**
  169.      * Query
  170.      * The Query operation returns a set of ItemNames that match the query expression. Query operations that
  171.      * run longer than 5 seconds will likely time-out and return a time-out error response.
  172.      * A Query with no QueryExpression matches all items in the domain.
  173.      *   
  174.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_Query.html
  175.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_QueryRequest request
  176.      *  or Amazon_SimpleDB_Model_QueryRequest object itself
  177.      * @see Amazon_SimpleDB_Model_QueryRequest
  178.      * @return Amazon_SimpleDB_Model_QueryResponse Amazon_SimpleDB_Model_QueryResponse
  179.      *
  180.      * @throws Amazon_SimpleDB_Exception
  181.      */
  182.     public function query($request);
  183.  
  184.  
  185.             
  186.     /**
  187.      * Query With Attributes
  188.      * The QueryWithAttributes operation returns a set of item names and associated attributes.
  189.      * The query semantics of this operation are identical to the Query operation.
  190.      *   
  191.      * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/SDB_API_QueryWithAttributes.html
  192.      * @param mixed $request array of parameters for Amazon_SimpleDB_Model_QueryWithAttributesRequest request
  193.      *  or Amazon_SimpleDB_Model_QueryWithAttributesRequest object itself
  194.      * @see Amazon_SimpleDB_Model_QueryWithAttributesRequest
  195.      * @return Amazon_SimpleDB_Model_QueryWithAttributesResponse Amazon_SimpleDB_Model_QueryWithAttributesResponse
  196.      *
  197.      * @throws Amazon_SimpleDB_Exception
  198.      */
  199.     public function queryWithAttributes($request);
  200.  
  201. }

Documentation generated on Thu, 28 Aug 2008 06:35:49 -0700 by phpDocumentor 1.4.2