sentence1
stringlengths 52
3.87M
| sentence2
stringlengths 1
47.2k
| label
stringclasses 1
value |
---|---|---|
public function clear($stateKey, $optParams = array()) {
$params = array('stateKey' => $stateKey);
$params = array_merge($params, $optParams);
$data = $this->__call('clear', array($params));
if ($this->useObjects()) {
return new Google_WriteResult($data);
} else {
return $data;
}
}
|
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)
@param int $stateKey The key for the data to be retrieved.
@param array $optParams Optional parameters.
@opt_param string currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
@return Google_WriteResult
|
entailment
|
public function get($stateKey, $optParams = array()) {
$params = array('stateKey' => $stateKey);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_GetResponse($data);
} else {
return $data;
}
}
|
Retrieves the data corresponding to the passed key. (states.get)
@param int $stateKey The key for the data to be retrieved.
@param array $optParams Optional parameters.
@return Google_GetResponse
|
entailment
|
public function listStates($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_ListResponse($data);
} else {
return $data;
}
}
|
Lists all the states keys, and optionally the state data. (states.list)
@param array $optParams Optional parameters.
@opt_param bool includeData Whether to include the full data in addition to the version number
@return Google_ListResponse
|
entailment
|
public function update($stateKey, Google_UpdateRequest $postBody, $optParams = array()) {
$params = array('stateKey' => $stateKey, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('update', array($params));
if ($this->useObjects()) {
return new Google_WriteResult($data);
} else {
return $data;
}
}
|
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)
@param int $stateKey The key for the data to be retrieved.
@param Google_UpdateRequest $postBody
@param 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 Google_WriteResult
|
entailment
|
public function addService($service, $version = false) {
global $apiConfig;
if ($this->authenticated) {
throw new Google_Exception('Cant add services after having authenticated');
}
$this->services[$service] = array();
if (isset($apiConfig['services'][$service])) {
// Merge the service descriptor with the default values
$this->services[$service] = array_merge($this->services[$service], $apiConfig['services'][$service]);
}
}
|
Add a service
|
entailment
|
public function setAccessToken($accessToken) {
if ($accessToken == null || 'null' == $accessToken) {
$accessToken = null;
}
self::$auth->setAccessToken($accessToken);
}
|
Set the OAuth 2.0 access token using the string that resulted from calling authenticate()
or Google_Client#getAccessToken().
@param string $accessToken JSON encoded string containing in the following format:
{"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
"expires_in":3600, "id_token":"TOKEN", "created":1320790426}
|
entailment
|
public function getAccessToken() {
$token = self::$auth->getAccessToken();
return (null == $token || 'null' == $token) ? null : $token;
}
|
Get the OAuth 2.0 access token.
@return string $accessToken JSON encoded string in the following format:
{"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
"expires_in":3600,"id_token":"TOKEN", "created":1320790426}
|
entailment
|
static public function getStrLen($str) {
$strlenVar = strlen($str);
$d = $ret = 0;
for ($count = 0; $count < $strlenVar; ++ $count) {
$ordinalValue = ord($str{$ret});
switch (true) {
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
// characters U-00000000 - U-0000007F (same as ASCII)
$ret ++;
break;
case (($ordinalValue & 0xE0) == 0xC0):
// characters U-00000080 - U-000007FF, mask 110XXXXX
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
$ret += 2;
break;
case (($ordinalValue & 0xF0) == 0xE0):
// characters U-00000800 - U-0000FFFF, mask 1110XXXX
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
$ret += 3;
break;
case (($ordinalValue & 0xF8) == 0xF0):
// characters U-00010000 - U-001FFFFF, mask 11110XXX
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
$ret += 4;
break;
case (($ordinalValue & 0xFC) == 0xF8):
// characters U-00200000 - U-03FFFFFF, mask 111110XX
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
$ret += 5;
break;
case (($ordinalValue & 0xFE) == 0xFC):
// characters U-04000000 - U-7FFFFFFF, mask 1111110X
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
$ret += 6;
break;
default:
$ret ++;
}
}
return $ret;
}
|
Misc function used to count the number of bytes in a post body, in the world of multi-byte chars
and the unpredictability of strlen/mb_strlen/sizeof, this is the only way to do that in a sane
manner at the moment.
This algorithm was originally developed for the
Solar Framework by Paul M. Jones
@link http://solarphp.com/
@link http://svn.solarphp.com/core/trunk/Solar/Json.php
@link http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Json/Decoder.php
@param string $str
@return int The number of bytes in a string.
|
entailment
|
private function makeSignedJwt($payload) {
$header = array('typ' => 'JWT', 'alg' => 'RS256');
$segments = array(
Google_Utils::urlSafeB64Encode(json_encode($header)),
Google_Utils::urlSafeB64Encode(json_encode($payload))
);
$signingInput = implode('.', $segments);
$signer = new Google_P12Signer($this->privateKey, $this->privateKeyPassword);
$signature = $signer->sign($signingInput);
$segments[] = Google_Utils::urlSafeB64Encode($signature);
return implode(".", $segments);
}
|
Creates a signed JWT.
@param array $payload
@return string The signed JWT.
|
entailment
|
public function patch($customerId, Google_Customer $postBody, $optParams = array()) {
$params = array('customerId' => $customerId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_Customer($data);
} else {
return $data;
}
}
|
Update a customer resource if one it exists and is owned by the reseller. This method supports
patch semantics. (customers.patch)
@param string $customerId Id of the Customer
@param Google_Customer $postBody
@param array $optParams Optional parameters.
@return Google_Customer
|
entailment
|
public function changePlan($customerId, $subscriptionId, Google_ChangePlanRequest $postBody, $optParams = array()) {
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('changePlan', array($params));
if ($this->useObjects()) {
return new Google_Subscription($data);
} else {
return $data;
}
}
|
Changes the plan of a subscription (subscriptions.changePlan)
@param string $customerId Id of the Customer
@param string $subscriptionId Id of the subscription, which is unique for a customer
@param Google_ChangePlanRequest $postBody
@param array $optParams Optional parameters.
@return Google_Subscription
|
entailment
|
public function changeRenewalSettings($customerId, $subscriptionId, Google_RenewalSettings $postBody, $optParams = array()) {
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('changeRenewalSettings', array($params));
if ($this->useObjects()) {
return new Google_Subscription($data);
} else {
return $data;
}
}
|
Changes the renewal settings of a subscription (subscriptions.changeRenewalSettings)
@param string $customerId Id of the Customer
@param string $subscriptionId Id of the subscription, which is unique for a customer
@param Google_RenewalSettings $postBody
@param array $optParams Optional parameters.
@return Google_Subscription
|
entailment
|
public function changeSeats($customerId, $subscriptionId, Google_Seats $postBody, $optParams = array()) {
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('changeSeats', array($params));
if ($this->useObjects()) {
return new Google_Subscription($data);
} else {
return $data;
}
}
|
Changes the seats configuration of a subscription (subscriptions.changeSeats)
@param string $customerId Id of the Customer
@param string $subscriptionId Id of the subscription, which is unique for a customer
@param Google_Seats $postBody
@param array $optParams Optional parameters.
@return Google_Subscription
|
entailment
|
public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) {
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Cancels/Downgrades a subscription. (subscriptions.delete)
@param string $customerId Id of the Customer
@param string $subscriptionId Id of the subscription, which is unique for a customer
@param string $deletionType Whether the subscription is to be fully cancelled or downgraded
@param array $optParams Optional parameters.
|
entailment
|
public function startPaidService($customerId, $subscriptionId, $optParams = array()) {
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
$params = array_merge($params, $optParams);
$data = $this->__call('startPaidService', array($params));
if ($this->useObjects()) {
return new Google_Subscription($data);
} else {
return $data;
}
}
|
Starts paid service of a trial subscription (subscriptions.startPaidService)
@param string $customerId Id of the Customer
@param string $subscriptionId Id of the subscription, which is unique for a customer
@param array $optParams Optional parameters.
@return Google_Subscription
|
entailment
|
public function get($source, $accountId, $productIdType, $productId, $optParams = array()) {
$params = array('source' => $source, 'accountId' => $accountId, 'productIdType' => $productIdType, 'productId' => $productId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Product($data);
} else {
return $data;
}
}
|
Returns a single product (products.get)
@param string $source Query source
@param string $accountId Merchant center account id
@param string $productIdType Type of productId
@param string $productId Id of product
@param array $optParams Optional parameters.
@opt_param string attributeFilter Comma separated list of attributes to return
@opt_param bool categories.enabled Whether to return category information
@opt_param string categories.include Category specification
@opt_param bool categories.useGcsConfig This parameter is currently ignored
@opt_param string location Location used to determine tax and shipping
@opt_param bool recommendations.enabled Whether to return recommendation information
@opt_param string recommendations.include Recommendation specification
@opt_param bool recommendations.useGcsConfig This parameter is currently ignored
@opt_param string taxonomy Merchant taxonomy
@opt_param string thumbnails Thumbnail specification
@return Google_Product
|
entailment
|
public function listProducts($source, $optParams = array()) {
$params = array('source' => $source);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Products($data);
} else {
return $data;
}
}
|
Returns a list of products and content modules (products.list)
@param string $source Query source
@param array $optParams Optional parameters.
@opt_param string attributeFilter Comma separated list of attributes to return
@opt_param string availability Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder, onDisplayToOrder) to return
@opt_param string boostBy Boosting specification
@opt_param bool categories.enabled Whether to return category information
@opt_param string categories.include Category specification
@opt_param bool categories.useGcsConfig This parameter is currently ignored
@opt_param string categoryRecommendations.category Category for which to retrieve recommendations
@opt_param bool categoryRecommendations.enabled Whether to return category recommendation information
@opt_param string categoryRecommendations.include Category recommendation specification
@opt_param bool categoryRecommendations.useGcsConfig This parameter is currently ignored
@opt_param string channels Channels specification
@opt_param bool clickTracking Whether to add a click tracking parameter to offer URLs
@opt_param string country Country restriction (ISO 3166)
@opt_param string crowdBy Crowding specification
@opt_param string currency Currency restriction (ISO 4217)
@opt_param bool extras.enabled Whether to return extra information.
@opt_param string extras.info What extra information to return.
@opt_param string facets.discover Facets to discover
@opt_param bool facets.enabled Whether to return facet information
@opt_param string facets.include Facets to include (applies when useGcsConfig == false)
@opt_param bool facets.includeEmptyBuckets Return empty facet buckets.
@opt_param bool facets.useGcsConfig Whether to return facet information as configured in the GCS account
@opt_param string language Language restriction (BCP 47)
@opt_param string location Location used to determine tax and shipping
@opt_param string maxResults Maximum number of results to return
@opt_param int maxVariants Maximum number of variant results to return per result
@opt_param bool promotions.enabled Whether to return promotion information
@opt_param bool promotions.useGcsConfig Whether to return promotion information as configured in the GCS account
@opt_param string q Search query
@opt_param string rankBy Ranking specification
@opt_param bool redirects.enabled Whether to return redirect information
@opt_param bool redirects.useGcsConfig Whether to return redirect information as configured in the GCS account
@opt_param bool relatedQueries.enabled Whether to return related queries
@opt_param bool relatedQueries.useGcsConfig This parameter is currently ignored
@opt_param string restrictBy Restriction specification
@opt_param bool safe Whether safe search is enabled. Default: true
@opt_param bool spelling.enabled Whether to return spelling suggestions
@opt_param bool spelling.useGcsConfig This parameter is currently ignored
@opt_param string startIndex Index (1-based) of first product to return
@opt_param string taxonomy Taxonomy name
@opt_param string thumbnails Image thumbnails specification
@opt_param string useCase One of CommerceSearchUseCase, ShoppingApiUseCase
@return Google_Products
|
entailment
|
public function getUserId() {
if (array_key_exists(self::USER_ATTR, $this->payload)) {
return $this->payload[self::USER_ATTR];
}
throw new Google_AuthException("No user_id in token");
}
|
Returns the numeric identifier for the user.
@throws Google_AuthException
@return
|
entailment
|
public function insert($projectId, Google_Job $postBody, $optParams = array()) {
$params = array('projectId' => $projectId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Job($data);
} else {
return $data;
}
}
|
Starts a new asynchronous job. (jobs.insert)
@param string $projectId Project ID of the project that will be billed for the job
@param Google_Job $postBody
@param array $optParams Optional parameters.
@return Google_Job
|
entailment
|
public function listJobs($projectId, $optParams = array()) {
$params = array('projectId' => $projectId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_JobList($data);
} else {
return $data;
}
}
|
Lists all the Jobs in the specified project that were started by the user. (jobs.list)
@param string $projectId Project ID of the jobs to list
@param array $optParams Optional parameters.
@opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
@opt_param string maxResults Maximum number of results to return
@opt_param string pageToken Page token, returned by a previous call, to request the next page of results
@opt_param string projection Restrict information returned to a set of selected fields
@opt_param string stateFilter Filter for job state
@return Google_JobList
|
entailment
|
public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
$params = array('projectId' => $projectId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('query', array($params));
if ($this->useObjects()) {
return new Google_QueryResponse($data);
} else {
return $data;
}
}
|
Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
specified timeout. (jobs.query)
@param string $projectId Project ID of the project billed for the query
@param Google_QueryRequest $postBody
@param array $optParams Optional parameters.
@return Google_QueryResponse
|
entailment
|
public function listTables($projectId, $datasetId, $optParams = array()) {
$params = array('projectId' => $projectId, 'datasetId' => $datasetId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_TableList($data);
} else {
return $data;
}
}
|
Lists all tables in the specified dataset. (tables.list)
@param string $projectId Project ID of the tables to list
@param string $datasetId Dataset ID of the tables to list
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of results to return
@opt_param string pageToken Page token, returned by a previous call, to request the next page of results
@return Google_TableList
|
entailment
|
public function execute() {
if (count($this->getInputParameters())) {
if ($this->isSubmitComplete()) {
$this->formValues = $this->getFormValues();
$this->run();
} else {
$this->renderInputForm();
}
} else {
$this->run();
}
}
|
Executes the example, checks if the examples requires parameters and
request them before invoking run.
|
entailment
|
protected function renderInputForm() {
$parameters = $this->getInputParameters();
if (count($parameters)) {
printf('<h2>Enter %s parameters</h2>', $this->getName());
print '<form method="POST"><fieldset>';
foreach ($parameters as $parameter) {
$name = $parameter['name'];
$display = $parameter['display'];
$currentValue = isset($_POST[$name]) ? $_POST[$name] : '';
printf('%s: <input name="%s" value="%s">', $display, $name,
$currentValue);
if ($parameter['required']) {
print '*';
}
print '</br>';
}
print '</fieldset>*required<br/>';
print '<input type="submit" name="submit" value="Submit"/>';
print '</form>';
}
}
|
Renders an input form to capture the example parameters.
|
entailment
|
protected function isSubmitComplete() {
if (!isset($_POST['submit'])) {
return false;
}
foreach ($this->getInputParameters() as $parameter) {
if ($parameter['required'] &&
empty($_POST[$parameter['name']])) {
return false;
}
}
return true;
}
|
Checks if the form has been submitted and all required parameters are
set.
@return bool
|
entailment
|
protected function getFormValues() {
$input = array();
foreach ($this->getInputParameters() as $parameter) {
if (isset($_POST[$parameter['name']])) {
$input[$parameter['name']] = $_POST[$parameter['name']];
}
}
return $input;
}
|
Retrieves the submitted form values.
@return array
|
entailment
|
public function listBucketAccessControls($bucket, $optParams = array()) {
$params = array('bucket' => $bucket);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_BucketAccessControls($data);
} else {
return $data;
}
}
|
Retrieves ACL entries on the specified bucket. (bucketAccessControls.list)
@param string $bucket Name of a bucket.
@param array $optParams Optional parameters.
@return Google_BucketAccessControls
|
entailment
|
public function insert($project, Google_Bucket $postBody, $optParams = array()) {
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Bucket($data);
} else {
return $data;
}
}
|
Creates a new bucket. (buckets.insert)
@param string $project A valid API project identifier.
@param Google_Bucket $postBody
@param array $optParams Optional parameters.
@opt_param string projection Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
@return Google_Bucket
|
entailment
|
public function listBuckets($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Buckets($data);
} else {
return $data;
}
}
|
Retrieves a list of buckets for a given project. (buckets.list)
@param string $project A valid API project identifier.
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of buckets to return.
@opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
@opt_param string projection Set of properties to return. Defaults to noAcl.
@return Google_Buckets
|
entailment
|
public function update($bucket, Google_Bucket $postBody, $optParams = array()) {
$params = array('bucket' => $bucket, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('update', array($params));
if ($this->useObjects()) {
return new Google_Bucket($data);
} else {
return $data;
}
}
|
Updates a bucket. (buckets.update)
@param string $bucket Name of a bucket.
@param Google_Bucket $postBody
@param array $optParams Optional parameters.
@opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
@opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
@opt_param string projection Set of properties to return. Defaults to full.
@return Google_Bucket
|
entailment
|
public function stop(Google_Channel $postBody, $optParams = array()) {
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('stop', array($params));
return $data;
}
|
(channels.stop)
@param Google_Channel $postBody
@param array $optParams Optional parameters.
|
entailment
|
public function get($bucket, $entity, $optParams = array()) {
$params = array('bucket' => $bucket, 'entity' => $entity);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_ObjectAccessControl($data);
} else {
return $data;
}
}
|
Returns the default object ACL entry for the specified entity on the specified bucket.
(defaultObjectAccessControls.get)
@param string $bucket Name of a bucket.
@param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
@param array $optParams Optional parameters.
@return Google_ObjectAccessControl
|
entailment
|
public function insert($bucket, Google_ObjectAccessControl $postBody, $optParams = array()) {
$params = array('bucket' => $bucket, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_ObjectAccessControl($data);
} else {
return $data;
}
}
|
Creates a new default object ACL entry on the specified bucket.
(defaultObjectAccessControls.insert)
@param string $bucket Name of a bucket.
@param Google_ObjectAccessControl $postBody
@param array $optParams Optional parameters.
@return Google_ObjectAccessControl
|
entailment
|
public function listDefaultObjectAccessControls($bucket, $optParams = array()) {
$params = array('bucket' => $bucket);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_ObjectAccessControls($data);
} else {
return $data;
}
}
|
Retrieves default object ACL entries on the specified bucket. (defaultObjectAccessControls.list)
@param string $bucket Name of a bucket.
@param array $optParams Optional parameters.
@return Google_ObjectAccessControls
|
entailment
|
public function patch($bucket, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) {
$params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_ObjectAccessControl($data);
} else {
return $data;
}
}
|
Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
(defaultObjectAccessControls.patch)
@param string $bucket Name of a bucket.
@param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
@param Google_ObjectAccessControl $postBody
@param array $optParams Optional parameters.
@return Google_ObjectAccessControl
|
entailment
|
public function listObjectAccessControls($bucket, $object, $optParams = array()) {
$params = array('bucket' => $bucket, 'object' => $object);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_ObjectAccessControls($data);
} else {
return $data;
}
}
|
Retrieves ACL entries on the specified object. (objectAccessControls.list)
@param string $bucket Name of a bucket.
@param string $object Name of the object.
@param array $optParams Optional parameters.
@opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
@return Google_ObjectAccessControls
|
entailment
|
public function compose($destinationBucket, $destinationObject, Google_ComposeRequest $postBody, $optParams = array()) {
$params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('compose', array($params));
if ($this->useObjects()) {
return new Google_StorageObject($data);
} else {
return $data;
}
}
|
Concatenates a list of existing objects into a new object in the same bucket. (objects.compose)
@param string $destinationBucket Name of the bucket in which to store the new object.
@param string $destinationObject Name of the new object.
@param Google_ComposeRequest $postBody
@param array $optParams Optional parameters.
@opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
@opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
@return Google_StorageObject
|
entailment
|
public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_StorageObject $postBody, $optParams = array()) {
$params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('copy', array($params));
if ($this->useObjects()) {
return new Google_StorageObject($data);
} else {
return $data;
}
}
|
Copies an object to a destination in the same location. Optionally overrides metadata.
(objects.copy)
@param string $sourceBucket Name of the bucket in which to find the source object.
@param string $sourceObject Name of the source object.
@param string $destinationBucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
@param string $destinationObject Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
@param Google_StorageObject $postBody
@param array $optParams Optional parameters.
@opt_param string ifGenerationMatch Makes the operation conditional on whether the destination object's current generation matches the given value.
@opt_param string ifGenerationNotMatch Makes the operation conditional on whether the destination object's current generation does not match the given value.
@opt_param string ifMetagenerationMatch Makes the operation conditional on whether the destination object's current metageneration matches the given value.
@opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
@opt_param string ifSourceGenerationMatch Makes the operation conditional on whether the source object's generation matches the given value.
@opt_param string ifSourceGenerationNotMatch Makes the operation conditional on whether the source object's generation does not match the given value.
@opt_param string ifSourceMetagenerationMatch Makes the operation conditional on whether the source object's current metageneration matches the given value.
@opt_param string ifSourceMetagenerationNotMatch Makes the operation conditional on whether the source object's current metageneration does not match the given value.
@opt_param string projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
@opt_param string sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default).
@return Google_StorageObject
|
entailment
|
public function get($bucket, $object, $optParams = array()) {
$params = array('bucket' => $bucket, 'object' => $object);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_StorageObject($data);
} else {
return $data;
}
}
|
Retrieves objects or their associated metadata. (objects.get)
@param string $bucket Name of the bucket in which the object resides.
@param string $object Name of the object.
@param array $optParams Optional parameters.
@opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
@opt_param string ifGenerationMatch Makes the operation conditional on whether the object's generation matches the given value.
@opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's generation does not match the given value.
@opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
@opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
@opt_param string projection Set of properties to return. Defaults to noAcl.
@return Google_StorageObject
|
entailment
|
public function listObjects($bucket, $optParams = array()) {
$params = array('bucket' => $bucket);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Objects($data);
} else {
return $data;
}
}
|
Retrieves a list of objects matching the criteria. (objects.list)
@param string $bucket Name of the bucket in which to look for objects.
@param array $optParams Optional parameters.
@opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
@opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
@opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
@opt_param string prefix Filter results to objects whose names begin with this prefix.
@opt_param string projection Set of properties to return. Defaults to noAcl.
@opt_param bool versions If true, lists all versions of a file as distinct results.
@return Google_Objects
|
entailment
|
public function watchAll($bucket, Google_Channel $postBody, $optParams = array()) {
$params = array('bucket' => $bucket, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('watchAll', array($params));
if ($this->useObjects()) {
return new Google_Channel($data);
} else {
return $data;
}
}
|
Watch for changes on all objects in a bucket. (objects.watchAll)
@param string $bucket Name of the bucket in which to look for objects.
@param Google_Channel $postBody
@param array $optParams Optional parameters.
@opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
@opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
@opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
@opt_param string prefix Filter results to objects whose names begin with this prefix.
@opt_param string projection Set of properties to return. Defaults to noAcl.
@opt_param bool versions If true, lists all versions of a file as distinct results.
@return Google_Channel
|
entailment
|
public function get($accountId, $buyerCreativeId, $optParams = array()) {
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Creative($data);
} else {
return $data;
}
}
|
Gets the status for a single creative. (creatives.get)
@param int $accountId The id for the account that will serve this creative.
@param string $buyerCreativeId The buyer-specific id for this creative.
@param array $optParams Optional parameters.
@return Google_Creative
|
entailment
|
public function listCreatives($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CreativesList($data);
} else {
return $data;
}
}
|
Retrieves a list of the authenticated user's active creatives. (creatives.list)
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
@opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
@opt_param string statusFilter When specified, only creatives having the given status are returned.
@return Google_CreativesList
|
entailment
|
public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) {
$params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_PerformanceReportList($data);
} else {
return $data;
}
}
|
Retrieves the authenticated user's list of performance metrics. (performanceReport.list)
@param string $accountId The account id to get the reports for.
@param string $endDateTime The end time for the reports.
@param string $startDateTime The start time for the reports.
@param array $optParams Optional parameters.
@return Google_PerformanceReportList
|
entailment
|
public function get($packageName, $productId, $token, $optParams = array()) {
$params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_InappPurchase($data);
} else {
return $data;
}
}
|
Checks the purchase and consumption status of an inapp item. (inapppurchases.get)
@param string $packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
@param string $productId The inapp product SKU (for example, 'com.some.thing.inapp1').
@param string $token The token provided to the user's device when the inapp product was purchased.
@param array $optParams Optional parameters.
@return Google_InappPurchase
|
entailment
|
public function cancel($packageName, $subscriptionId, $token, $optParams = array()) {
$params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
$params = array_merge($params, $optParams);
$data = $this->__call('cancel', array($params));
return $data;
}
|
Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
(purchases.cancel)
@param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
@param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
@param string $token The token provided to the user's device when the subscription was purchased.
@param array $optParams Optional parameters.
|
entailment
|
public function get($packageName, $subscriptionId, $token, $optParams = array()) {
$params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_SubscriptionPurchase($data);
} else {
return $data;
}
}
|
Checks whether a user's subscription purchase is valid and returns its expiry time.
(purchases.get)
@param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
@param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
@param string $token The token provided to the user's device when the subscription was purchased.
@param array $optParams Optional parameters.
@return Google_SubscriptionPurchase
|
entailment
|
public function delete($productId, $skuId, $userId, $optParams = array()) {
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Revoke License. (licenseAssignments.delete)
@param string $productId Name for product
@param string $skuId Name for sku
@param string $userId email id or unique Id of the user
@param array $optParams Optional parameters.
|
entailment
|
public function get($productId, $skuId, $userId, $optParams = array()) {
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_LicenseAssignment($data);
} else {
return $data;
}
}
|
Get license assignment of a particular product and sku for a user (licenseAssignments.get)
@param string $productId Name for product
@param string $skuId Name for sku
@param string $userId email id or unique Id of the user
@param array $optParams Optional parameters.
@return Google_LicenseAssignment
|
entailment
|
public function insert($productId, $skuId, Google_LicenseAssignmentInsert $postBody, $optParams = array()) {
$params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_LicenseAssignment($data);
} else {
return $data;
}
}
|
Assign License. (licenseAssignments.insert)
@param string $productId Name for product
@param string $skuId Name for sku
@param Google_LicenseAssignmentInsert $postBody
@param array $optParams Optional parameters.
@return Google_LicenseAssignment
|
entailment
|
public function listForProduct($productId, $customerId, $optParams = array()) {
$params = array('productId' => $productId, 'customerId' => $customerId);
$params = array_merge($params, $optParams);
$data = $this->__call('listForProduct', array($params));
if ($this->useObjects()) {
return new Google_LicenseAssignmentList($data);
} else {
return $data;
}
}
|
List license assignments for given product of the customer. (licenseAssignments.listForProduct)
@param string $productId Name for product
@param string $customerId CustomerId represents the customer for whom licenseassignments are queried
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
@opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
@return Google_LicenseAssignmentList
|
entailment
|
public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) {
$params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
$params = array_merge($params, $optParams);
$data = $this->__call('listForProductAndSku', array($params));
if ($this->useObjects()) {
return new Google_LicenseAssignmentList($data);
} else {
return $data;
}
}
|
List license assignments for given product and sku of the customer.
(licenseAssignments.listForProductAndSku)
@param string $productId Name for product
@param string $skuId Name for sku
@param string $customerId CustomerId represents the customer for whom licenseassignments are queried
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
@opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
@return Google_LicenseAssignmentList
|
entailment
|
public function run() {
$values = $this->formValues;
try {
$creative = $this->service->creatives->get($values['account_id'],
$values['buyer_creative_id'], $values['ad_group_id']);
print '<h2>Found creative</h2>';
$this->printResult($creative);
} catch (Google_Exception $ex) {
if ($ex->getCode() == 404 || $ex->getCode() == 403) {
print '<h1>Creative not found or can\'t access creative</h1>';
} else {
throw $ex;
}
}
}
|
(non-PHPdoc)
@see BaseExample::run()
|
entailment
|
public function allocateIds($datasetId, Google_AllocateIdsRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('allocateIds', array($params));
if ($this->useObjects()) {
return new Google_AllocateIdsResponse($data);
} else {
return $data;
}
}
|
Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).
(datasets.allocateIds)
@param string $datasetId Identifies the dataset.
@param Google_AllocateIdsRequest $postBody
@param array $optParams Optional parameters.
@return Google_AllocateIdsResponse
|
entailment
|
public function beginTransaction($datasetId, Google_BeginTransactionRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('beginTransaction', array($params));
if ($this->useObjects()) {
return new Google_BeginTransactionResponse($data);
} else {
return $data;
}
}
|
Begin a new transaction. (datasets.beginTransaction)
@param string $datasetId Identifies the dataset.
@param Google_BeginTransactionRequest $postBody
@param array $optParams Optional parameters.
@return Google_BeginTransactionResponse
|
entailment
|
public function blindWrite($datasetId, Google_BlindWriteRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('blindWrite', array($params));
if ($this->useObjects()) {
return new Google_BlindWriteResponse($data);
} else {
return $data;
}
}
|
Create, delete or modify some entities outside a transaction. (datasets.blindWrite)
@param string $datasetId Identifies the dataset.
@param Google_BlindWriteRequest $postBody
@param array $optParams Optional parameters.
@return Google_BlindWriteResponse
|
entailment
|
public function commit($datasetId, Google_CommitRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('commit', array($params));
if ($this->useObjects()) {
return new Google_CommitResponse($data);
} else {
return $data;
}
}
|
Commit a transaction, optionally creating, deleting or modifying some entities. (datasets.commit)
@param string $datasetId Identifies the dataset.
@param Google_CommitRequest $postBody
@param array $optParams Optional parameters.
@return Google_CommitResponse
|
entailment
|
public function lookup($datasetId, Google_LookupRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('lookup', array($params));
if ($this->useObjects()) {
return new Google_LookupResponse($data);
} else {
return $data;
}
}
|
Look up some entities by key. (datasets.lookup)
@param string $datasetId Identifies the dataset.
@param Google_LookupRequest $postBody
@param array $optParams Optional parameters.
@return Google_LookupResponse
|
entailment
|
public function rollback($datasetId, Google_RollbackRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('rollback', array($params));
if ($this->useObjects()) {
return new Google_RollbackResponse($data);
} else {
return $data;
}
}
|
Roll back a transaction. (datasets.rollback)
@param string $datasetId Identifies the dataset.
@param Google_RollbackRequest $postBody
@param array $optParams Optional parameters.
@return Google_RollbackResponse
|
entailment
|
public function runQuery($datasetId, Google_RunQueryRequest $postBody, $optParams = array()) {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('runQuery', array($params));
if ($this->useObjects()) {
return new Google_RunQueryResponse($data);
} else {
return $data;
}
}
|
Query for entities. (datasets.runQuery)
@param string $datasetId Identifies the dataset.
@param Google_RunQueryRequest $postBody
@param array $optParams Optional parameters.
@return Google_RunQueryResponse
|
entailment
|
public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
$params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_McfData($data);
} else {
return $data;
}
}
|
Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
@param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
@param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
@param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
@param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
@param array $optParams Optional parameters.
@opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
@opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
@opt_param int max-results The maximum number of entries to include in this feed.
@opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
@opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
@return Google_McfData
|
entailment
|
public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CustomDataSources($data);
} else {
return $data;
}
}
|
List custom data sources to which the user has access. (customDataSources.list)
@param string $accountId Account Id for the custom data sources to retrieve.
@param string $webPropertyId Web property Id for the custom data sources to retrieve.
@param array $optParams Optional parameters.
@opt_param int max-results The maximum number of custom data sources to include in this response.
@opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
@return Google_CustomDataSources
|
entailment
|
public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Delete uploaded data for the given date. (dailyUploads.delete)
@param string $accountId Account Id associated with daily upload delete.
@param string $webPropertyId Web property Id associated with daily upload delete.
@param string $customDataSourceId Custom data source Id associated with daily upload delete.
@param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
@param string $type Type of data for this delete.
@param array $optParams Optional parameters.
|
entailment
|
public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) {
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Experiments($data);
} else {
return $data;
}
}
|
Lists experiments to which the user has access. (experiments.list)
@param string $accountId Account ID to retrieve experiments for.
@param string $webPropertyId Web property ID to retrieve experiments for.
@param string $profileId Profile ID to retrieve experiments for.
@param array $optParams Optional parameters.
@opt_param int max-results The maximum number of experiments to include in this response.
@opt_param int start-index An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
@return Google_Experiments
|
entailment
|
public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Goals($data);
} else {
return $data;
}
}
|
Lists goals to which the user has access. (goals.list)
@param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
@param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
@param string $profileId Profile ID to retrieve goals for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.
@param array $optParams Optional parameters.
@opt_param int max-results The maximum number of goals to include in this response.
@opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
@return Google_Goals
|
entailment
|
public function listCcOffers($publisher, $optParams = array()) {
$params = array('publisher' => $publisher);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CcOffers($data);
} else {
return $data;
}
}
|
Retrieves credit card offers for the given publisher. (ccOffers.list)
@param string $publisher The ID of the publisher in question.
@param array $optParams Optional parameters.
@opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
@opt_param string projection The set of fields to return.
@return Google_CcOffers
|
entailment
|
public function listEvents($role, $roleId, $optParams = array()) {
$params = array('role' => $role, 'roleId' => $roleId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Events($data);
} else {
return $data;
}
}
|
Retrieves event data for a given advertiser/publisher. (events.list)
@param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
@param string $roleId The ID of the requesting advertiser or publisher.
@param array $optParams Optional parameters.
@opt_param string advertiserId Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
@opt_param string chargeType Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
@opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
@opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
@opt_param string linkId Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
@opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
@opt_param string memberId Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
@opt_param string modifyDateMax Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.
@opt_param string modifyDateMin Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.
@opt_param string orderId Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
@opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
@opt_param string productCategory Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
@opt_param string publisherId Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
@opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
@opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
@opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
@return Google_Events
|
entailment
|
public function get($role, $roleId, $linkId, $optParams = array()) {
$params = array('role' => $role, 'roleId' => $roleId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Link($data);
} else {
return $data;
}
}
|
Retrieves data about a single link if the requesting advertiser/publisher has access to it.
Advertisers can look up their own links. Publishers can look up visible links or links belonging
to advertisers they are in a relationship with. (links.get)
@param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
@param string $roleId The ID of the requesting advertiser or publisher.
@param string $linkId The ID of the link to look up.
@param array $optParams Optional parameters.
@return Google_Link
|
entailment
|
public function insert($role, $roleId, Google_Link $postBody, $optParams = array()) {
$params = array('role' => $role, 'roleId' => $roleId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Link($data);
} else {
return $data;
}
}
|
Inserts a new link. (links.insert)
@param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
@param string $roleId The ID of the requesting advertiser or publisher.
@param Google_Link $postBody
@param array $optParams Optional parameters.
@return Google_Link
|
entailment
|
public function listLinks($role, $roleId, $optParams = array()) {
$params = array('role' => $role, 'roleId' => $roleId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Links($data);
} else {
return $data;
}
}
|
Retrieves all links that match the query parameters. (links.list)
@param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
@param string $roleId The ID of the requesting advertiser or publisher.
@param array $optParams Optional parameters.
@opt_param string advertiserId Limits the resulting links to the ones belonging to the listed advertisers.
@opt_param string assetSize The size of the given asset.
@opt_param string authorship The role of the author of the link.
@opt_param string createDateMax The end of the create date range.
@opt_param string createDateMin The beginning of the create date range.
@opt_param string linkType The type of the link.
@opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
@opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
@opt_param string promotionType The promotion type.
@opt_param string relationshipStatus The status of the relationship.
@opt_param string searchText Field for full text search across title and merchandising text, supports link id search.
@opt_param string startDateMax The end of the start date range.
@opt_param string startDateMin The beginning of the start date range.
@return Google_Links
|
entailment
|
public function get($role, $roleId, $reportType, $optParams = array()) {
$params = array('role' => $role, 'roleId' => $roleId, 'reportType' => $reportType);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Report($data);
} else {
return $data;
}
}
|
Retrieves a report of the specified type. (reports.get)
@param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
@param string $roleId The ID of the requesting advertiser or publisher.
@param string $reportType The type of report being requested. Valid values: 'order_delta'. Required.
@param array $optParams Optional parameters.
@opt_param string advertiserId The IDs of the advertisers to look up, if applicable.
@opt_param bool calculateTotals Whether or not to calculate totals rows. Optional.
@opt_param string endDate The end date (exclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day after startDate, if that is given, or today. Optional.
@opt_param string eventType Filters out all events that are not of the given type. Valid values: 'action', 'transaction', or 'charge'. Optional.
@opt_param string linkId Filters to capture one of given link IDs. Optional.
@opt_param string maxResults Max number of items to return in this page. Optional. Defaults to return all results.
@opt_param string orderId Filters to capture one of the given order IDs. Optional.
@opt_param string publisherId The IDs of the publishers to look up, if applicable.
@opt_param string startDate The start date (inclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day before endDate, if that is given, or yesterday. Optional.
@opt_param string startIndex Offset on which to return results when paging. Optional.
@opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled', or 'invalid'. Optional.
@return Google_Report
|
entailment
|
public function run() {
$values = $this->formValues;
$account = new Google_Account();
$account->setId($values['account_id']);
$account->setCookieMatchingUrl($values['cookie_matching_url']);
$account = $this->service->accounts->patch($values['account_id'],
$account);
print '<h2>Submitted account</h2>';
$this->printResult($account);
}
|
(non-PHPdoc)
@see BaseExample::run()
|
entailment
|
public function getToken(Google_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) {
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('getToken', array($params));
if ($this->useObjects()) {
return new Google_SiteVerificationWebResourceGettokenResponse($data);
} else {
return $data;
}
}
|
Get a verification token for placing on a website or domain. (webResource.getToken)
@param Google_SiteVerificationWebResourceGettokenRequest $postBody
@param array $optParams Optional parameters.
@return Google_SiteVerificationWebResourceGettokenResponse
|
entailment
|
public function reveal($achievementId, $optParams = array()) {
$params = array('achievementId' => $achievementId);
$params = array_merge($params, $optParams);
$data = $this->__call('reveal', array($params));
if ($this->useObjects()) {
return new Google_AchievementRevealResponse($data);
} else {
return $data;
}
}
|
Sets the state of the achievement with the given ID to REVEALED for the currently authenticated
player. (achievements.reveal)
@param string $achievementId The ID of the achievement used by this method.
@param array $optParams Optional parameters.
@return Google_AchievementRevealResponse
|
entailment
|
public function unlock($achievementId, $optParams = array()) {
$params = array('achievementId' => $achievementId);
$params = array_merge($params, $optParams);
$data = $this->__call('unlock', array($params));
if ($this->useObjects()) {
return new Google_AchievementUnlockResponse($data);
} else {
return $data;
}
}
|
Unlocks this achievement for the currently authenticated player. (achievements.unlock)
@param string $achievementId The ID of the achievement used by this method.
@param array $optParams Optional parameters.
@return Google_AchievementUnlockResponse
|
entailment
|
public function get($applicationId, $optParams = array()) {
$params = array('applicationId' => $applicationId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Application($data);
} else {
return $data;
}
}
|
Retrieves the metadata of the application with the given ID. If the requested application is not
available for the specified platformType, the returned response will not include any instance
data. (applications.get)
@param string $applicationId The application being requested.
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@opt_param string platformType Restrict application details returned to the specific platform.
@return Google_Application
|
entailment
|
public function played($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('played', array($params));
return $data;
}
|
Indicate that the the currently authenticated user is playing your application.
(applications.played)
@param array $optParams Optional parameters.
|
entailment
|
public function get($leaderboardId, $optParams = array()) {
$params = array('leaderboardId' => $leaderboardId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Leaderboard($data);
} else {
return $data;
}
}
|
Retrieves the metadata of the leaderboard with the given ID. (leaderboards.get)
@param string $leaderboardId The ID of the leaderboard.
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@return Google_Leaderboard
|
entailment
|
public function listLeaderboards($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_LeaderboardListResponse($data);
} else {
return $data;
}
}
|
Lists all the leaderboard metadata for your application. (leaderboards.list)
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@opt_param int maxResults The maximum number of leaderboards to return in the response. For any response, the actual number of leaderboards returned may be less than the specified maxResults.
@opt_param string pageToken The token returned by the previous request.
@return Google_LeaderboardListResponse
|
entailment
|
public function create(Google_RoomCreateRequest $postBody, $optParams = array()) {
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('create', array($params));
if ($this->useObjects()) {
return new Google_Room($data);
} else {
return $data;
}
}
|
Create a room. For internal use by the Games SDK only. Calling this method directly is
unsupported. (rooms.create)
@param Google_RoomCreateRequest $postBody
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@return Google_Room
|
entailment
|
public function dismiss($roomId, $optParams = array()) {
$params = array('roomId' => $roomId);
$params = array_merge($params, $optParams);
$data = $this->__call('dismiss', array($params));
return $data;
}
|
Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method
directly is unsupported. (rooms.dismiss)
@param string $roomId The ID of the room.
@param array $optParams Optional parameters.
|
entailment
|
public function join($roomId, Google_RoomJoinRequest $postBody, $optParams = array()) {
$params = array('roomId' => $roomId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('join', array($params));
if ($this->useObjects()) {
return new Google_Room($data);
} else {
return $data;
}
}
|
Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
(rooms.join)
@param string $roomId The ID of the room.
@param Google_RoomJoinRequest $postBody
@param array $optParams Optional parameters.
@return Google_Room
|
entailment
|
public function leave($roomId, Google_RoomLeaveRequest $postBody, $optParams = array()) {
$params = array('roomId' => $roomId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('leave', array($params));
if ($this->useObjects()) {
return new Google_Room($data);
} else {
return $data;
}
}
|
Leave a room. For internal use by the Games SDK only. Calling this method directly is
unsupported. (rooms.leave)
@param string $roomId The ID of the room.
@param Google_RoomLeaveRequest $postBody
@param array $optParams Optional parameters.
@return Google_Room
|
entailment
|
public function listRooms($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_RoomList($data);
} else {
return $data;
}
}
|
Returns invitations to join rooms. (rooms.list)
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@opt_param int maxResults The maximum number of rooms to return in the response, used for paging. For any response, the actual number of rooms to return may be less than the specified maxResults.
@opt_param string pageToken The token returned by the previous request.
@return Google_RoomList
|
entailment
|
public function reportStatus($roomId, Google_RoomP2PStatuses $postBody, $optParams = array()) {
$params = array('roomId' => $roomId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('reportStatus', array($params));
if ($this->useObjects()) {
return new Google_RoomStatus($data);
} else {
return $data;
}
}
|
Updates sent by a client reporting the status of peers in a room. For internal use by the Games
SDK only. Calling this method directly is unsupported. (rooms.reportStatus)
@param string $roomId The ID of the room.
@param Google_RoomP2PStatuses $postBody
@param array $optParams Optional parameters.
@return Google_RoomStatus
|
entailment
|
public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) {
$params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_PlayerLeaderboardScoreListResponse($data);
} else {
return $data;
}
}
|
Get high scores and optionally, ranks in leaderboards for the currently authenticated player. For
a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a
given time span. (scores.get)
@param string $playerId A player ID. A value of me may be used in place of the authenticated player's ID.
@param string $leaderboardId The ID of the leaderboard.
@param string $timeSpan The time span for the scores and ranks you're requesting.
@param array $optParams Optional parameters.
@opt_param string includeRankType The types of ranks to return. If the parameter is omitted, no ranks will be returned.
@opt_param string language The preferred language to use for strings returned by this method.
@opt_param int maxResults The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
@opt_param string pageToken The token returned by the previous request.
@return Google_PlayerLeaderboardScoreListResponse
|
entailment
|
public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array()) {
$params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_LeaderboardScores($data);
} else {
return $data;
}
}
|
Lists the scores in a leaderboard, starting from the top. (scores.list)
@param string $leaderboardId The ID of the leaderboard.
@param string $collection The collection of scores you're requesting.
@param string $timeSpan The time span for the scores and ranks you're requesting.
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@opt_param int maxResults The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
@opt_param string pageToken The token returned by the previous request.
@return Google_LeaderboardScores
|
entailment
|
public function submit($leaderboardId, $score, $optParams = array()) {
$params = array('leaderboardId' => $leaderboardId, 'score' => $score);
$params = array_merge($params, $optParams);
$data = $this->__call('submit', array($params));
if ($this->useObjects()) {
return new Google_PlayerScoreResponse($data);
} else {
return $data;
}
}
|
Submits a score to the specified leaderboard. (scores.submit)
@param string $leaderboardId The ID of the leaderboard.
@param string $score The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@return Google_PlayerScoreResponse
|
entailment
|
public function submitMultiple(Google_PlayerScoreSubmissionList $postBody, $optParams = array()) {
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('submitMultiple', array($params));
if ($this->useObjects()) {
return new Google_PlayerScoreListResponse($data);
} else {
return $data;
}
}
|
Submits multiple scores to leaderboards. (scores.submitMultiple)
@param Google_PlayerScoreSubmissionList $postBody
@param array $optParams Optional parameters.
@opt_param string language The preferred language to use for strings returned by this method.
@return Google_PlayerScoreListResponse
|
entailment
|
public function listActivities($userKey, $applicationName, $optParams = array()) {
$params = array('userKey' => $userKey, 'applicationName' => $applicationName);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Activities($data);
} else {
return $data;
}
}
|
Retrieves a list of activities for a specific customer and application. (activities.list)
@param string $userKey Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.
@param string $applicationName Application name for which the events are to be retrieved.
@param array $optParams Optional parameters.
@opt_param string actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
@opt_param string endTime Return events which occured at or before this time.
@opt_param string eventName Name of the event being queried.
@opt_param string filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
@opt_param int maxResults Number of activity records to be shown in each page.
@opt_param string pageToken Token to specify next page.
@opt_param string startTime Return events which occured at or after this time.
@return Google_Activities
|
entailment
|
public function get($date, $optParams = array()) {
$params = array('date' => $date);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_UsageReports($data);
} else {
return $data;
}
}
|
Retrieves a report which is a collection of properties / statistics for a specific customer.
(customerUsageReports.get)
@param string $date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
@param array $optParams Optional parameters.
@opt_param string pageToken Token to specify next page.
@opt_param string parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
@return Google_UsageReports
|
entailment
|
public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_BackupRun($data);
} else {
return $data;
}
}
|
Retrieves a resource containing information about a backup run. (backupRuns.get)
@param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param string $backupConfiguration Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.
@param string $dueTime The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
@param array $optParams Optional parameters.
@return Google_BackupRun
|
entailment
|
public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_BackupRunsListResponse($data);
} else {
return $data;
}
}
|
Lists all backup runs associated with a given instance and configuration in the reverse
chronological order of the enqueued time. (backupRuns.list)
@param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param string $backupConfiguration Identifier for the backup configuration. This gets generated automatically when a backup configuration is created.
@param array $optParams Optional parameters.
@opt_param int maxResults Maximum number of backup runs per response.
@opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
@return Google_BackupRunsListResponse
|
entailment
|
public function delete($project, $instance, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
if ($this->useObjects()) {
return new Google_InstancesDeleteResponse($data);
} else {
return $data;
}
}
|
Deletes a database instance. (instances.delete)
@param string $project Project ID of the project that contains the instance to be deleted. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param array $optParams Optional parameters.
@return Google_InstancesDeleteResponse
|
entailment
|
public function export($project, $instance, Google_InstancesExportRequest $postBody, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('export', array($params));
if ($this->useObjects()) {
return new Google_InstancesExportResponse($data);
} else {
return $data;
}
}
|
Exports data from a database instance to a Google Cloud Storage bucket as a MySQL dump file.
(instances.export)
@param string $project Project ID of the project that contains the instance to be exported. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param Google_InstancesExportRequest $postBody
@param array $optParams Optional parameters.
@return Google_InstancesExportResponse
|
entailment
|
public function get($project, $instance, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_DatabaseInstance($data);
} else {
return $data;
}
}
|
Retrieves a resource containing information about a database instance. (instances.get)
@param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param array $optParams Optional parameters.
@return Google_DatabaseInstance
|
entailment
|
public function import($project, $instance, Google_InstancesImportRequest $postBody, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('import', array($params));
if ($this->useObjects()) {
return new Google_InstancesImportResponse($data);
} else {
return $data;
}
}
|
Imports data into a database instance from a MySQL dump file in Google Cloud Storage.
(instances.import)
@param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param Google_InstancesImportRequest $postBody
@param array $optParams Optional parameters.
@return Google_InstancesImportResponse
|
entailment
|
public function insert($project, Google_DatabaseInstance $postBody, $optParams = array()) {
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_InstancesInsertResponse($data);
} else {
return $data;
}
}
|
Creates a new database instance. (instances.insert)
@param string $project Project ID of the project to which the newly created database instances should belong. You can find this on the project summary page of the Google APIs Console.
@param Google_DatabaseInstance $postBody
@param array $optParams Optional parameters.
@return Google_InstancesInsertResponse
|
entailment
|
public function listInstances($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_InstancesListResponse($data);
} else {
return $data;
}
}
|
Lists instances under a given project in the alphabetical order of the instance name.
(instances.list)
@param string $project Project ID of the project for which to list database instances. You can find this on the project summary page of the Google APIs Console.
@param array $optParams Optional parameters.
@opt_param string maxResults The maximum number of results to return per response.
@opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
@return Google_InstancesListResponse
|
entailment
|
public function patch($project, $instance, Google_DatabaseInstance $postBody, $optParams = array()) {
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_InstancesUpdateResponse($data);
} else {
return $data;
}
}
|
Updates settings of a database instance. Caution: This is not a partial update, so you must
include values for all the settings that you want to retain. For partial updates, use patch..
This method supports patch semantics. (instances.patch)
@param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console.
@param string $instance Database instance ID. This does not include the project ID.
@param Google_DatabaseInstance $postBody
@param array $optParams Optional parameters.
@return Google_InstancesUpdateResponse
|
entailment
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.