The "states" collection of methods.
More...
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| clear ($stateKey, $optParams=array()) |
| Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version.
|
|
| delete ($stateKey, $optParams=array()) |
| Deletes a key and the data associated with it.
|
|
| get ($stateKey, $optParams=array()) |
| Retrieves the data corresponding to the passed key.
|
|
| listStates ($optParams=array()) |
| Lists all the states keys, and optionally the state data.
|
|
| update ($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams=array()) |
| Update the data associated with the input key if and only if the passed version matches the currently stored version.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "states" collection of methods.
Typical usage is: $appstateService = new Google_Service_AppState(...); $states = $appstateService->states;
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ clear()
Google_Service_AppState_States_Resource::clear |
( |
| $stateKey, |
|
|
| $optParams = array() ) |
Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version.
This method results in a conflict error on version mismatch. (states.clear)
- Parameters
-
int | $stateKey | The key for the data to be retrieved. |
array | $optParams | Optional parameters. |
@opt_param string currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
- Return values
-
◆ delete()
Google_Service_AppState_States_Resource::delete |
( |
| $stateKey, |
|
|
| $optParams = array() ) |
Deletes a key and the data associated with it.
The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption. (states.delete)
- Parameters
-
int | $stateKey | The key for the data to be retrieved. |
array | $optParams | Optional parameters. |
◆ get()
Google_Service_AppState_States_Resource::get |
( |
| $stateKey, |
|
|
| $optParams = array() ) |
Retrieves the data corresponding to the passed key.
If the key does not exist on the server, an HTTP 404 will be returned. (states.get)
- Parameters
-
int | $stateKey | The key for the data to be retrieved. |
array | $optParams | Optional parameters. |
- Return values
-
◆ listStates()
Google_Service_AppState_States_Resource::listStates |
( |
| $optParams = array() | ) |
|
Lists all the states keys, and optionally the state data.
(states.listStates)
- Parameters
-
array | $optParams | Optional parameters. |
@opt_param bool includeData Whether to include the full data in addition to the version number
- Return values
-
◆ update()
Update the data associated with the input key if and only if the passed version matches the currently stored version.
This method is safe in the face of concurrent writes. Maximum per-key size is 128KB. (states.update)
- Parameters
-
int | $stateKey | The key for the data to be retrieved. |
Google_UpdateRequest | $postBody | |
array | $optParams | Optional parameters. |
@opt_param string currentStateVersion The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/AppState.php