sentence1
stringlengths 52
3.87M
| sentence2
stringlengths 1
47.2k
| label
stringclasses 1
value |
---|---|---|
private function getCollectionInfoHtml(&$collection) {
$previousLink = $collection->getPreviousLink()
? $collection->getPreviousLink() : 'none';
$nextLink = $collection->getNextLink()
? $collection->getNextLink() : 'none';
return <<<HTML
<pre>
Username = {$collection->getUsername()}
Items Per Page = {$collection->getItemsPerPage()}
Total Results = {$collection->getTotalResults()}
Start Index = {$collection->getStartIndex()}
Previous Link = {$previousLink}
Next Link = {$nextLink}
</pre>
HTML;
}
|
Returns important information common to each collection in the API.
Most of this data can be used to paginate through the results.
@param collection $collection The result from a Management API request.
@return string An HTML representation.
|
entailment
|
public function query($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('query', array($params));
if ($this->useObjects()) {
return new Google_ResultTable($data);
} else {
return $data;
}
}
|
Retrieve your YouTube Analytics reports. (reports.query)
@param string $ids Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics data.
- To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID.
- To request data for a YouTube CMS content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content owner.
@param string $start_date The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.
@param string $end_date The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.
@param string $metrics A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the Available Reports document for a list of the reports that you can retrieve and the metrics available in each report, and see the Metrics document for definitions of those metrics.
@param array $optParams Optional parameters.
@opt_param string dimensions A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See the Available Reports document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the Dimensions document for definitions of those dimensions.
@opt_param string filters A list of filters that should be applied when retrieving YouTube Analytics data. The Available Reports document identifies the dimensions that can be used to filter each report, and the Dimensions document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (;), and the returned result table will satisfy both filters. For example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to include data for the given video in Italy.
@opt_param int max-results The maximum number of rows to include in the response.
@opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort order.
@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 (one-based, inclusive).
@return Google_ResultTable
|
entailment
|
public function listActivities($customerId, $applicationId, $optParams = array()) {
$params = array('customerId' => $customerId, 'applicationId' => $applicationId);
$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 $customerId Represents the customer who is the owner of target object on which action was performed.
@param string $applicationId Application ID of the application on which the event was performed.
@param array $optParams Optional parameters.
@opt_param string actorApplicationId Application ID of the application which interacted on behalf of the user while performing the event.
@opt_param string actorEmail Email address of the user who performed the action.
@opt_param string actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
@opt_param string caller Type of the caller.
@opt_param string continuationToken Next page URL.
@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 int maxResults Number of activity records to be shown in each page.
@opt_param string startTime Return events which occured at or after this time.
@return Google_Activities
|
entailment
|
public function analyze($project, $id, $optParams = array()) {
$params = array('project' => $project, 'id' => $id);
$params = array_merge($params, $optParams);
$data = $this->__call('analyze', array($params));
if ($this->useObjects()) {
return new Google_Analyze($data);
} else {
return $data;
}
}
|
Get analysis of the model and the data the model was trained on. (trainedmodels.analyze)
@param string $project The project associated with the model.
@param string $id The unique name for the predictive model.
@param array $optParams Optional parameters.
@return Google_Analyze
|
entailment
|
public function get($project, $id, $optParams = array()) {
$params = array('project' => $project, 'id' => $id);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Insert2($data);
} else {
return $data;
}
}
|
Check training status of your model. (trainedmodels.get)
@param string $project The project associated with the model.
@param string $id The unique name for the predictive model.
@param array $optParams Optional parameters.
@return Google_Insert2
|
entailment
|
public function insert($project, Google_Insert $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_Insert2($data);
} else {
return $data;
}
}
|
Train a Prediction API model. (trainedmodels.insert)
@param string $project The project associated with the model.
@param Google_Insert $postBody
@param array $optParams Optional parameters.
@return Google_Insert2
|
entailment
|
public function listTrainedmodels($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_PredictionList($data);
} else {
return $data;
}
}
|
List available models. (trainedmodels.list)
@param string $project The project associated with the model.
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of results to return.
@opt_param string pageToken Pagination token.
@return Google_PredictionList
|
entailment
|
public function update($project, $id, Google_Update $postBody, $optParams = array()) {
$params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('update', array($params));
if ($this->useObjects()) {
return new Google_Insert2($data);
} else {
return $data;
}
}
|
Add new data to a trained model. (trainedmodels.update)
@param string $project The project associated with the model.
@param string $id The unique name for the predictive model.
@param Google_Update $postBody
@param array $optParams Optional parameters.
@return Google_Insert2
|
entailment
|
public function listAccountsAlerts($accountId, $optParams = array()) {
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Alerts($data);
} else {
return $data;
}
}
|
List the alerts for the specified AdSense account. (alerts.list)
@param string $accountId Account for which to retrieve the alerts.
@param array $optParams Optional parameters.
@opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
@return Google_Alerts
|
entailment
|
public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CustomChannels($data);
} else {
return $data;
}
}
|
List all custom channels in the specified ad client for the specified account.
(customchannels.list)
@param string $accountId Account to which the ad client belongs.
@param string $adClientId Ad client for which to list custom channels.
@param array $optParams Optional parameters.
@opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_CustomChannels
|
entailment
|
public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_AdUnits($data);
} else {
return $data;
}
}
|
List all ad units in the specified custom channel. (adunits.list)
@param string $accountId Account to which the ad client belongs.
@param string $adClientId Ad client which contains the custom channel.
@param string $customChannelId Custom channel for which to list ad units.
@param array $optParams Optional parameters.
@opt_param bool includeInactive Whether to include inactive ad units. Default: true.
@opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_AdUnits
|
entailment
|
public function listAccountsReportsSaved($accountId, $optParams = array()) {
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_SavedReports($data);
} else {
return $data;
}
}
|
List all saved reports in the specified AdSense account. (saved.list)
@param string $accountId Account to which the saved reports belong.
@param array $optParams Optional parameters.
@opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_SavedReports
|
entailment
|
public function listAccountsSavedadstyles($accountId, $optParams = array()) {
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_SavedAdStyles($data);
} else {
return $data;
}
}
|
List all saved ad styles in the specified account. (savedadstyles.list)
@param string $accountId Account for which to list saved ad styles.
@param array $optParams Optional parameters.
@opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_SavedAdStyles
|
entailment
|
public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
$params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CustomChannels($data);
} else {
return $data;
}
}
|
List all custom channels which the specified ad unit belongs to. (customchannels.list)
@param string $adClientId Ad client which contains the ad unit.
@param string $adUnitId Ad unit for which to list custom channels.
@param array $optParams Optional parameters.
@opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_CustomChannels
|
entailment
|
public function listAlerts($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Alerts($data);
} else {
return $data;
}
}
|
List the alerts for this AdSense account. (alerts.list)
@param array $optParams Optional parameters.
@opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
@return Google_Alerts
|
entailment
|
public function generate($startDate, $endDate, $optParams = array()) {
$params = array('startDate' => $startDate, 'endDate' => $endDate);
$params = array_merge($params, $optParams);
$data = $this->__call('generate', array($params));
if ($this->useObjects()) {
return new Google_AdsenseReportsGenerateResponse($data);
} else {
return $data;
}
}
|
Generate an AdSense report based on the report request sent in the query parameters. Returns the
result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
(reports.generate)
@param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
@param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
@param array $optParams Optional parameters.
@opt_param string accountId Accounts upon which to report.
@opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
@opt_param string dimension Dimensions to base the report on.
@opt_param string filter Filters to be run on the report.
@opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
@opt_param int maxResults The maximum number of rows of report data to return.
@opt_param string metric Numeric columns to include in the report.
@opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
@opt_param int startIndex Index of the first row of report data to return.
@opt_param bool useTimezoneReporting Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
@return Google_AdsenseReportsGenerateResponse
|
entailment
|
public function get($savedAdStyleId, $optParams = array()) {
$params = array('savedAdStyleId' => $savedAdStyleId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_SavedAdStyle($data);
} else {
return $data;
}
}
|
Get a specific saved ad style from the user's account. (savedadstyles.get)
@param string $savedAdStyleId Saved ad style to retrieve.
@param array $optParams Optional parameters.
@return Google_SavedAdStyle
|
entailment
|
public function listSavedadstyles($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_SavedAdStyles($data);
} else {
return $data;
}
}
|
List all saved ad styles in the user's account. (savedadstyles.list)
@param array $optParams Optional parameters.
@opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
@opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
@return Google_SavedAdStyles
|
entailment
|
public function get($userId, $blogId, $optParams = array()) {
$params = array('userId' => $userId, 'blogId' => $blogId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_BlogUserInfo($data);
} else {
return $data;
}
}
|
Gets one blog and user info pair by blogId and userId. (blogUserInfos.get)
@param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
@param string $blogId The ID of the blog to get.
@param array $optParams Optional parameters.
@opt_param string maxPosts Maximum number of posts to pull back with the blog.
@return Google_BlogUserInfo
|
entailment
|
public function get($blogId, $optParams = array()) {
$params = array('blogId' => $blogId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Blog($data);
} else {
return $data;
}
}
|
Gets one blog by id. (blogs.get)
@param string $blogId The ID of the blog to get.
@param array $optParams Optional parameters.
@opt_param string maxPosts Maximum number of posts to pull back with the blog.
@return Google_Blog
|
entailment
|
public function getByUrl($url, $optParams = array()) {
$params = array('url' => $url);
$params = array_merge($params, $optParams);
$data = $this->__call('getByUrl', array($params));
if ($this->useObjects()) {
return new Google_Blog($data);
} else {
return $data;
}
}
|
Retrieve a Blog by URL. (blogs.getByUrl)
@param string $url The URL of the blog to retrieve.
@param array $optParams Optional parameters.
@return Google_Blog
|
entailment
|
public function listPages($blogId, $optParams = array()) {
$params = array('blogId' => $blogId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_PageList($data);
} else {
return $data;
}
}
|
Retrieves pages for a blog, possibly filtered. (pages.list)
@param string $blogId ID of the blog to fetch pages from.
@param array $optParams Optional parameters.
@opt_param bool fetchBodies Whether to retrieve the Page bodies.
@return Google_PageList
|
entailment
|
public function delete($blogId, $postId, $optParams = array()) {
$params = array('blogId' => $blogId, 'postId' => $postId);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Delete a post by id. (posts.delete)
@param string $blogId The Id of the Blog.
@param string $postId The ID of the Post.
@param array $optParams Optional parameters.
|
entailment
|
public function get($blogId, $postId, $optParams = array()) {
$params = array('blogId' => $blogId, 'postId' => $postId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Post($data);
} else {
return $data;
}
}
|
Get a post by id. (posts.get)
@param string $blogId ID of the blog to fetch the post from.
@param string $postId The ID of the post
@param array $optParams Optional parameters.
@opt_param string maxComments Maximum number of comments to pull back on a post.
@return Google_Post
|
entailment
|
public function getByPath($blogId, $path, $optParams = array()) {
$params = array('blogId' => $blogId, 'path' => $path);
$params = array_merge($params, $optParams);
$data = $this->__call('getByPath', array($params));
if ($this->useObjects()) {
return new Google_Post($data);
} else {
return $data;
}
}
|
Retrieve a Post by Path. (posts.getByPath)
@param string $blogId ID of the blog to fetch the post from.
@param string $path Path of the Post to retrieve.
@param array $optParams Optional parameters.
@opt_param string maxComments Maximum number of comments to pull back on a post.
@return Google_Post
|
entailment
|
public function listPosts($blogId, $optParams = array()) {
$params = array('blogId' => $blogId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_PostList($data);
} else {
return $data;
}
}
|
Retrieves a list of posts, possibly filtered. (posts.list)
@param string $blogId ID of the blog to fetch posts from.
@param array $optParams Optional parameters.
@opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
@opt_param bool fetchBodies Whether the body content of posts is included.
@opt_param string labels Comma-separated list of labels to search for.
@opt_param string maxResults Maximum number of posts to fetch.
@opt_param string pageToken Continuation token if the request is paged.
@opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
@return Google_PostList
|
entailment
|
public function search($blogId, $q, $optParams = array()) {
$params = array('blogId' => $blogId, 'q' => $q);
$params = array_merge($params, $optParams);
$data = $this->__call('search', array($params));
if ($this->useObjects()) {
return new Google_PostList($data);
} else {
return $data;
}
}
|
Search for a post. (posts.search)
@param string $blogId ID of the blog to fetch the post from.
@param string $q Query terms to search this blog for matching posts.
@param array $optParams Optional parameters.
@return Google_PostList
|
entailment
|
public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
$params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('update', array($params));
if ($this->useObjects()) {
return new Google_Post($data);
} else {
return $data;
}
}
|
Update a post. (posts.update)
@param string $blogId The ID of the Blog.
@param string $postId The ID of the Post.
@param Google_Post $postBody
@param array $optParams Optional parameters.
@return Google_Post
|
entailment
|
public function get($userId, $optParams = array()) {
$params = array('userId' => $userId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_User($data);
} else {
return $data;
}
}
|
Gets one user by id. (users.get)
@param string $userId The ID of the user to get.
@param array $optParams Optional parameters.
@return Google_User
|
entailment
|
public function get($shortUrl, $optParams = array()) {
$params = array('shortUrl' => $shortUrl);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Url($data);
} else {
return $data;
}
}
|
Expands a short URL or gets creation time and analytics. (url.get)
@param string $shortUrl The short URL, including the protocol.
@param array $optParams Optional parameters.
@opt_param string projection Additional information to return.
@return Google_Url
|
entailment
|
public function delete($project, $region, $address, $optParams = array()) {
$params = array('project' => $project, 'region' => $region, 'address' => $address);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Deletes the specified address resource. (addresses.delete)
@param string $project Name of the project scoping this request.
@param string $region Name of the region scoping this request.
@param string $address Name of the address resource to delete.
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function get($project, $region, $address, $optParams = array()) {
$params = array('project' => $project, 'region' => $region, 'address' => $address);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Address($data);
} else {
return $data;
}
}
|
Returns the specified address resource. (addresses.get)
@param string $project Name of the project scoping this request.
@param string $region Name of the region scoping this request.
@param string $address Name of the address resource to return.
@param array $optParams Optional parameters.
@return Google_Address
|
entailment
|
public function insert($project, $region, Google_Address $postBody, $optParams = array()) {
$params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Creates an address resource in the specified project using the data included in the request.
(addresses.insert)
@param string $project Name of the project scoping this request.
@param string $region Name of the region scoping this request.
@param Google_Address $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function listAddresses($project, $region, $optParams = array()) {
$params = array('project' => $project, 'region' => $region);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_AddressList($data);
} else {
return $data;
}
}
|
Retrieves the list of address resources contained within the specified region. (addresses.list)
@param string $project Name of the project scoping this request.
@param string $region Name of the region scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_AddressList
|
entailment
|
public function aggregatedList($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('aggregatedList', array($params));
if ($this->useObjects()) {
return new Google_DiskAggregatedList($data);
} else {
return $data;
}
}
|
Retrieves the list of disks grouped by scope. (disks.aggregatedList)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_DiskAggregatedList
|
entailment
|
public function createSnapshot($project, $zone, $disk, Google_Snapshot $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('createSnapshot', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
(disks.createSnapshot)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param string $disk Name of the persistent disk resource to delete.
@param Google_Snapshot $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function listDisks($project, $zone, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_DiskList($data);
} else {
return $data;
}
}
|
Retrieves the list of persistent disk resources contained within the specified zone. (disks.list)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_DiskList
|
entailment
|
public function insert($project, Google_Firewall $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_Operation($data);
} else {
return $data;
}
}
|
Creates a firewall resource in the specified project using the data included in the request.
(firewalls.insert)
@param string $project Name of the project scoping this request.
@param Google_Firewall $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
$params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Updates the specified firewall resource with the data included in the request. This method
supports patch semantics. (firewalls.patch)
@param string $project Name of the project scoping this request.
@param string $firewall Name of the firewall resource to update.
@param Google_Firewall $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function listGlobalOperations($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_OperationList($data);
} else {
return $data;
}
}
|
Retrieves the list of operation resources contained within the specified project.
(globalOperations.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_OperationList
|
entailment
|
public function deprecate($project, $image, Google_DeprecationStatus $postBody, $optParams = array()) {
$params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('deprecate', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Sets the deprecation status of an image. If no message body is given, clears the deprecation
status instead. (images.deprecate)
@param string $project Name of the project scoping this request.
@param string $image Image name.
@param Google_DeprecationStatus $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_AccessConfig $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('addAccessConfig', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Adds an access config to an instance's network interface. (instances.addAccessConfig)
@param string $project Project name.
@param string $zone Name of the zone scoping this request.
@param string $instance Instance name.
@param string $networkInterface Network interface name.
@param Google_AccessConfig $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function attachDisk($project, $zone, $instance, Google_AttachedDisk $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('attachDisk', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Attaches a disk resource to an instance. (instances.attachDisk)
@param string $project Project name.
@param string $zone Name of the zone scoping this request.
@param string $instance Instance name.
@param Google_AttachedDisk $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface);
$params = array_merge($params, $optParams);
$data = $this->__call('deleteAccessConfig', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
@param string $project Project name.
@param string $zone Name of the zone scoping this request.
@param string $instance Instance name.
@param string $accessConfig Access config name.
@param string $networkInterface Network interface name.
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName);
$params = array_merge($params, $optParams);
$data = $this->__call('detachDisk', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Detaches a disk from an instance. (instances.detachDisk)
@param string $project Project name.
@param string $zone Name of the zone scoping this request.
@param string $instance Instance name.
@param string $deviceName Disk device name to detach.
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function insert($project, $zone, Google_Instance $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Creates an instance resource in the specified project using the data included in the request.
(instances.insert)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param Google_Instance $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function listInstances($project, $zone, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_InstanceList($data);
} else {
return $data;
}
}
|
Retrieves the list of instance resources contained within the specified zone. (instances.list)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_InstanceList
|
entailment
|
public function reset($project, $zone, $instance, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
$params = array_merge($params, $optParams);
$data = $this->__call('reset', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Performs a hard reset on the instance. (instances.reset)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param string $instance Name of the instance scoping this request.
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function setMetadata($project, $zone, $instance, Google_Metadata $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('setMetadata', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Sets metadata for the specified instance to the data included in the request.
(instances.setMetadata)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param string $instance Name of the instance scoping this request.
@param Google_Metadata $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function setTags($project, $zone, $instance, Google_Tags $postBody, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('setTags', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Sets tags for the specified instance to the data included in the request. (instances.setTags)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param string $instance Name of the instance scoping this request.
@param Google_Tags $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function get($project, $kernel, $optParams = array()) {
$params = array('project' => $project, 'kernel' => $kernel);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Kernel($data);
} else {
return $data;
}
}
|
Returns the specified kernel resource. (kernels.get)
@param string $project Name of the project scoping this request.
@param string $kernel Name of the kernel resource to return.
@param array $optParams Optional parameters.
@return Google_Kernel
|
entailment
|
public function listKernels($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_KernelList($data);
} else {
return $data;
}
}
|
Retrieves the list of kernel resources available to the specified project. (kernels.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_KernelList
|
entailment
|
public function get($project, $zone, $machineType, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_MachineType($data);
} else {
return $data;
}
}
|
Returns the specified machine type resource. (machineTypes.get)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param string $machineType Name of the machine type resource to return.
@param array $optParams Optional parameters.
@return Google_MachineType
|
entailment
|
public function listMachineTypes($project, $zone, $optParams = array()) {
$params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_MachineTypeList($data);
} else {
return $data;
}
}
|
Retrieves the list of machine type resources available to the specified project.
(machineTypes.list)
@param string $project Name of the project scoping this request.
@param string $zone Name of the zone scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_MachineTypeList
|
entailment
|
public function get($project, $network, $optParams = array()) {
$params = array('project' => $project, 'network' => $network);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Network($data);
} else {
return $data;
}
}
|
Returns the specified network resource. (networks.get)
@param string $project Name of the project scoping this request.
@param string $network Name of the network resource to return.
@param array $optParams Optional parameters.
@return Google_Network
|
entailment
|
public function listNetworks($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_NetworkList($data);
} else {
return $data;
}
}
|
Retrieves the list of network resources available to the specified project. (networks.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_NetworkList
|
entailment
|
public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('setCommonInstanceMetadata', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Sets metadata common to all instances within the specified project using the data included in the
request. (projects.setCommonInstanceMetadata)
@param string $project Name of the project scoping this request.
@param Google_Metadata $postBody
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function get($project, $region, $operation, $optParams = array()) {
$params = array('project' => $project, 'region' => $region, 'operation' => $operation);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Operation($data);
} else {
return $data;
}
}
|
Retrieves the specified region-specific operation resource. (regionOperations.get)
@param string $project Name of the project scoping this request.
@param string $region Name of the zone scoping this request.
@param string $operation Name of the operation resource to return.
@param array $optParams Optional parameters.
@return Google_Operation
|
entailment
|
public function listRegionOperations($project, $region, $optParams = array()) {
$params = array('project' => $project, 'region' => $region);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_OperationList($data);
} else {
return $data;
}
}
|
Retrieves the list of operation resources contained within the specified region.
(regionOperations.list)
@param string $project Name of the project scoping this request.
@param string $region Name of the region scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_OperationList
|
entailment
|
public function get($project, $region, $optParams = array()) {
$params = array('project' => $project, 'region' => $region);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Region($data);
} else {
return $data;
}
}
|
Returns the specified region resource. (regions.get)
@param string $project Name of the project scoping this request.
@param string $region Name of the region resource to return.
@param array $optParams Optional parameters.
@return Google_Region
|
entailment
|
public function listRegions($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_RegionList($data);
} else {
return $data;
}
}
|
Retrieves the list of region resources available to the specified project. (regions.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_RegionList
|
entailment
|
public function get($project, $route, $optParams = array()) {
$params = array('project' => $project, 'route' => $route);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Route($data);
} else {
return $data;
}
}
|
Returns the specified route resource. (routes.get)
@param string $project Name of the project scoping this request.
@param string $route Name of the route resource to return.
@param array $optParams Optional parameters.
@return Google_Route
|
entailment
|
public function listRoutes($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_RouteList($data);
} else {
return $data;
}
}
|
Retrieves the list of route resources available to the specified project. (routes.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_RouteList
|
entailment
|
public function listSnapshots($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_SnapshotList($data);
} else {
return $data;
}
}
|
Retrieves the list of persistent disk snapshot resources contained within the specified project.
(snapshots.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_SnapshotList
|
entailment
|
public function listZones($project, $optParams = array()) {
$params = array('project' => $project);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_ZoneList($data);
} else {
return $data;
}
}
|
Retrieves the list of zone resources available to the specified project. (zones.list)
@param string $project Name of the project scoping this request.
@param array $optParams Optional parameters.
@opt_param string filter Optional. Filter expression for filtering listed resources.
@opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
@opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
@return Google_ZoneList
|
entailment
|
public static function processFileUpload($file, $mime) {
if (!$file) return array();
if (substr($file, 0, 1) != '@') {
$file = '@' . $file;
}
// This is a standard file upload with curl.
$params = array('postBody' => array('file' => $file));
if ($mime) {
$params['content-type'] = $mime;
}
return $params;
}
|
Prepares a standard file upload via cURL.
@param $file
@param $mime
@return array Includes the processed file name.
@visible For testing.
|
entailment
|
public static function getUploadType($meta, &$payload, &$params) {
if (isset($params['mediaUpload'])
&& get_class($params['mediaUpload']['value']) == 'Google_MediaFileUpload') {
$upload = $params['mediaUpload']['value'];
unset($params['mediaUpload']);
$payload['content-type'] = $upload->mimeType;
if (isset($upload->resumable) && $upload->resumable) {
return self::UPLOAD_RESUMABLE_TYPE;
}
}
// Allow the developer to override the upload type.
if (isset($params['uploadType'])) {
return $params['uploadType']['value'];
}
$data = isset($params['data']['value'])
? $params['data']['value'] : false;
if (false == $data && false == isset($params['file'])) {
// No upload data available.
return false;
}
if (isset($params['file'])) {
return self::UPLOAD_MEDIA_TYPE;
}
if (false == $meta) {
return self::UPLOAD_MEDIA_TYPE;
}
return self::UPLOAD_MULTIPART_TYPE;
}
|
Valid upload types:
- resumable (UPLOAD_RESUMABLE_TYPE)
- media (UPLOAD_MEDIA_TYPE)
- multipart (UPLOAD_MULTIPART_TYPE)
- none (false)
@param $meta
@param $payload
@param $params
@return bool|string
|
entailment
|
public function get($tasklist, $optParams = array()) {
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_TaskList($data);
} else {
return $data;
}
}
|
Returns the authenticated user's specified task list. (tasklists.get)
@param string $tasklist Task list identifier.
@param array $optParams Optional parameters.
@return Google_TaskList
|
entailment
|
public function listTasklists($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_TaskLists($data);
} else {
return $data;
}
}
|
Returns all the authenticated user's task lists. (tasklists.list)
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
@opt_param string pageToken Token specifying the result page to return. Optional.
@return Google_TaskLists
|
entailment
|
public function clear($tasklist, $optParams = array()) {
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
$data = $this->__call('clear', array($params));
return $data;
}
|
Clears all completed tasks from the specified task list. The affected tasks will be marked as
'hidden' and no longer be returned by default when retrieving all tasks for a task list.
(tasks.clear)
@param string $tasklist Task list identifier.
@param array $optParams Optional parameters.
|
entailment
|
public function insert($tasklist, Google_Task $postBody, $optParams = array()) {
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Task($data);
} else {
return $data;
}
}
|
Creates a new task on the specified task list. (tasks.insert)
@param string $tasklist Task list identifier.
@param Google_Task $postBody
@param array $optParams Optional parameters.
@opt_param string parent Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
@opt_param string previous Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
@return Google_Task
|
entailment
|
public function listTasks($tasklist, $optParams = array()) {
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Tasks($data);
} else {
return $data;
}
}
|
Returns all tasks in the specified task list. (tasks.list)
@param string $tasklist Task list identifier.
@param array $optParams Optional parameters.
@opt_param string completedMax Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
@opt_param string completedMin Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
@opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
@opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
@opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
@opt_param string pageToken Token specifying the result page to return. Optional.
@opt_param bool showCompleted Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
@opt_param bool showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
@opt_param bool showHidden Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
@opt_param string updatedMin Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
@return Google_Tasks
|
entailment
|
public function move($tasklist, $task, $optParams = array()) {
$params = array('tasklist' => $tasklist, 'task' => $task);
$params = array_merge($params, $optParams);
$data = $this->__call('move', array($params));
if ($this->useObjects()) {
return new Google_Task($data);
} else {
return $data;
}
}
|
Moves the specified task to another position in the task list. This can include putting it as a
child task under a new parent and/or move it to a different position among its sibling tasks.
(tasks.move)
@param string $tasklist Task list identifier.
@param string $task Task identifier.
@param array $optParams Optional parameters.
@opt_param string parent New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
@opt_param string previous New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
@return Google_Task
|
entailment
|
public function refreshToken() {
if ($this->apiClient->getAccessToken() != null) {
$dbh = new PDO('sqlite:examples.sqlite');
$this->saveToken($dbh, true, $this->apiClient->getAccessToken());
}
}
|
During the request, the access code might have been changed for another.
This function updates the token in the db.
|
entailment
|
private function saveToken($dbh, $userExists, $token) {
if ($userExists) {
$stmt = $dbh->prepare('UPDATE auth SET token=:token WHERE user=:user');
} else {
$stmt = $dbh
->prepare('INSERT INTO auth (user, token) VALUES (:user, :token)');
}
$stmt->bindParam(':user', $this->user);
$stmt->bindParam(':token', $this->apiClient->getAccessToken());
$stmt->execute();
}
|
Insert/update the auth token for the user.
@param PDO $dbh a PDO object for the local authentication db
@param bool $userExists true if the user already exists in the db
@param string $token the auth token to be saved
|
entailment
|
private function getToken($dbh) {
$stmt = $dbh->prepare('SELECT token FROM auth WHERE user= ?');
$stmt->execute(array($this->user));
$row = $stmt->fetch(PDO::FETCH_ASSOC);
return $row['token'];
}
|
Retrieves token for use.
@param PDO $dbh a PDO object for the local authentication db
@return string a JSON object representing the token
|
entailment
|
public function electionQuery($optParams = array()) {
$params = array();
$params = array_merge($params, $optParams);
$data = $this->__call('electionQuery', array($params));
if ($this->useObjects()) {
return new Google_ElectionsQueryResponse($data);
} else {
return $data;
}
}
|
List of available elections to query. (elections.electionQuery)
@param array $optParams Optional parameters.
@return Google_ElectionsQueryResponse
|
entailment
|
public function voterInfoQuery($electionId, Google_VoterInfoRequest $postBody, $optParams = array()) {
$params = array('electionId' => $electionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('voterInfoQuery', array($params));
if ($this->useObjects()) {
return new Google_VoterInfoResponse($data);
} else {
return $data;
}
}
|
Looks up information relevant to a voter based on the voter's registered address.
(elections.voterInfoQuery)
@param string $electionId The unique ID of the election to look up. A list of election IDs can be obtained at.https://www.googleapis.com/civicinfo/{version}/elections
@param Google_VoterInfoRequest $postBody
@param array $optParams Optional parameters.
@opt_param bool officialOnly If set to true, only data from official state sources will be returned.
@return Google_VoterInfoResponse
|
entailment
|
public function lookup($id, $optParams = array()) {
$params = array('id' => $id);
$params = array_merge($params, $optParams);
$data = $this->__call('lookup', array($params));
if ($this->useObjects()) {
return new Google_TopicLookup($data);
} else {
return $data;
}
}
|
Get properties and meta-data about a topic. (topic.lookup)
@param string $id The id of the item that you want data about.
@param array $optParams Optional parameters.
@opt_param string dateline Determines how up-to-date the data returned is. A unix epoch time, a guid or a 'now'
@opt_param string filter A frebase domain, type or property id, 'suggest', 'commons', or 'all'. Filter the results and returns only appropriate properties.
@opt_param string lang The language you 'd like the content in - a freebase /type/lang language key.
@opt_param string limit The maximum number of property values to return for each property.
@opt_param bool raw Do not apply any constraints, or get any names.
@return Google_TopicLookup
|
entailment
|
public function get($project, $taskqueue, $optParams = array()) {
$params = array('project' => $project, 'taskqueue' => $taskqueue);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_TaskQueue($data);
} else {
return $data;
}
}
|
Get detailed information about a TaskQueue. (taskqueues.get)
@param string $project The project under which the queue lies.
@param string $taskqueue The id of the taskqueue to get the properties of.
@param array $optParams Optional parameters.
@opt_param bool getStats Whether to get stats. Optional.
@return Google_TaskQueue
|
entailment
|
public function delete($project, $taskqueue, $task, $optParams = array()) {
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Delete a task from a TaskQueue. (tasks.delete)
@param string $project The project under which the queue lies.
@param string $taskqueue The taskqueue to delete a task from.
@param string $task The id of the task to delete.
@param array $optParams Optional parameters.
|
entailment
|
public function insert($project, $taskqueue, Google_Task $postBody, $optParams = array()) {
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Task($data);
} else {
return $data;
}
}
|
Insert a new task in a TaskQueue (tasks.insert)
@param string $project The project under which the queue lies
@param string $taskqueue The taskqueue to insert the task into
@param Google_Task $postBody
@param array $optParams Optional parameters.
@return Google_Task
|
entailment
|
public function listTasks($project, $taskqueue, $optParams = array()) {
$params = array('project' => $project, 'taskqueue' => $taskqueue);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_Tasks2($data);
} else {
return $data;
}
}
|
List Tasks in a TaskQueue (tasks.list)
@param string $project The project under which the queue lies.
@param string $taskqueue The id of the taskqueue to list tasks from.
@param array $optParams Optional parameters.
@return Google_Tasks2
|
entailment
|
public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Task $postBody, $optParams = array()) {
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('update', array($params));
if ($this->useObjects()) {
return new Google_Task($data);
} else {
return $data;
}
}
|
Update tasks that are leased out of a TaskQueue. (tasks.update)
@param string $project The project under which the queue lies.
@param string $taskqueue
@param string $task
@param int $newLeaseSeconds The new lease in seconds.
@param Google_Task $postBody
@param array $optParams Optional parameters.
@return Google_Task
|
entailment
|
public function listCustomFieldDef($teamId, $optParams = array()) {
$params = array('teamId' => $teamId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CustomFieldDefListResponse($data);
} else {
return $data;
}
}
|
Retrieves a list of custom field definitions for a team. (customFieldDef.list)
@param string $teamId Team ID
@param array $optParams Optional parameters.
@return Google_CustomFieldDefListResponse
|
entailment
|
public function insert($teamId, $address, $lat, $lng, $title, Google_Job $postBody, $optParams = array()) {
$params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_Job($data);
} else {
return $data;
}
}
|
Inserts a new job. Only the state field of the job should be set. (jobs.insert)
@param string $teamId Team ID
@param string $address Job address as newline (Unix) separated string
@param double $lat The latitude coordinate of this job's location.
@param double $lng The longitude coordinate of this job's location.
@param string $title Job title
@param Google_Job $postBody
@param array $optParams Optional parameters.
@opt_param string assignee Assignee email address, or empty string to unassign.
@opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
@opt_param string customerName Customer name
@opt_param string customerPhoneNumber Customer phone number
@opt_param string note Job note as newline (Unix) separated string
@return Google_Job
|
entailment
|
public function listJobs($teamId, $optParams = array()) {
$params = array('teamId' => $teamId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_JobListResponse($data);
} else {
return $data;
}
}
|
Retrieves jobs created or modified since the given timestamp. (jobs.list)
@param string $teamId Team ID
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of results to return in one page.
@opt_param string minModifiedTimestampMs Minimum time a job was modified in milliseconds since epoch.
@opt_param string pageToken Continuation token
@return Google_JobListResponse
|
entailment
|
public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) {
$params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_LocationListResponse($data);
} else {
return $data;
}
}
|
Retrieves a list of locations for a worker. (location.list)
@param string $teamId Team ID
@param string $workerEmail Worker email address.
@param string $startTimestampMs Start timestamp in milliseconds since the epoch.
@param array $optParams Optional parameters.
@opt_param string maxResults Maximum number of results to return in one page.
@opt_param string pageToken Continuation token
@return Google_LocationListResponse
|
entailment
|
public function get($teamId, $jobId, $optParams = array()) {
$params = array('teamId' => $teamId, 'jobId' => $jobId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_Schedule($data);
} else {
return $data;
}
}
|
Retrieves the schedule for a job. (schedule.get)
@param string $teamId Team ID
@param string $jobId Job number
@param array $optParams Optional parameters.
@return Google_Schedule
|
entailment
|
public function patch($teamId, $jobId, Google_Schedule $postBody, $optParams = array()) {
$params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_Schedule($data);
} else {
return $data;
}
}
|
Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
(schedule.patch)
@param string $teamId Team ID
@param string $jobId Job number
@param Google_Schedule $postBody
@param array $optParams Optional parameters.
@opt_param bool allDay Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
@opt_param string duration Job duration in milliseconds.
@opt_param string endTime Scheduled end time in milliseconds since epoch.
@opt_param string startTime Scheduled start time in milliseconds since epoch.
@return Google_Schedule
|
entailment
|
public function listWorker($teamId, $optParams = array()) {
$params = array('teamId' => $teamId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_WorkerListResponse($data);
} else {
return $data;
}
}
|
Retrieves a list of workers in a team. (worker.list)
@param string $teamId Team ID
@param array $optParams Optional parameters.
@return Google_WorkerListResponse
|
entailment
|
public function generate($savedReportId, $optParams = array()) {
$params = array('savedReportId' => $savedReportId);
$params = array_merge($params, $optParams);
$data = $this->__call('generate', array($params));
if ($this->useObjects()) {
return new Google_Report($data);
} else {
return $data;
}
}
|
Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
(saved.generate)
@param string $savedReportId The saved report to retrieve.
@param array $optParams Optional parameters.
@opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
@opt_param int maxResults The maximum number of rows of report data to return.
@opt_param int startIndex Index of the first row of report data to return.
@return Google_Report
|
entailment
|
public function watch(Google_Channel $postBody, $optParams = array()) {
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('watch', array($params));
if ($this->useObjects()) {
return new Google_Channel($data);
} else {
return $data;
}
}
|
Subscribe to changes for a user. (changes.watch)
@param Google_Channel $postBody
@param array $optParams Optional parameters.
@opt_param bool includeDeleted Whether to include deleted items.
@opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.
@opt_param int maxResults Maximum number of changes to return.
@opt_param string pageToken Page token for changes.
@opt_param string startChangeId Change ID to start listing changes from.
@return Google_Channel
|
entailment
|
public function delete($folderId, $childId, $optParams = array()) {
$params = array('folderId' => $folderId, 'childId' => $childId);
$params = array_merge($params, $optParams);
$data = $this->__call('delete', array($params));
return $data;
}
|
Removes a child from a folder. (children.delete)
@param string $folderId The ID of the folder.
@param string $childId The ID of the child.
@param array $optParams Optional parameters.
|
entailment
|
public function get($folderId, $childId, $optParams = array()) {
$params = array('folderId' => $folderId, 'childId' => $childId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_ChildReference($data);
} else {
return $data;
}
}
|
Gets a specific child reference. (children.get)
@param string $folderId The ID of the folder.
@param string $childId The ID of the child.
@param array $optParams Optional parameters.
@return Google_ChildReference
|
entailment
|
public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
$params = array('folderId' => $folderId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
return new Google_ChildReference($data);
} else {
return $data;
}
}
|
Inserts a file into a folder. (children.insert)
@param string $folderId The ID of the folder.
@param Google_ChildReference $postBody
@param array $optParams Optional parameters.
@return Google_ChildReference
|
entailment
|
public function listComments($fileId, $optParams = array()) {
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
return new Google_CommentList($data);
} else {
return $data;
}
}
|
Lists a file's comments. (comments.list)
@param string $fileId The ID of the file.
@param array $optParams Optional parameters.
@opt_param bool includeDeleted If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.
@opt_param int maxResults The maximum number of discussions to include in the response, used for paging.
@opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
@opt_param string updatedMin Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
@return Google_CommentList
|
entailment
|
public function patch($fileId, $commentId, Google_Comment $postBody, $optParams = array()) {
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('patch', array($params));
if ($this->useObjects()) {
return new Google_Comment($data);
} else {
return $data;
}
}
|
Updates an existing comment. This method supports patch semantics. (comments.patch)
@param string $fileId The ID of the file.
@param string $commentId The ID of the comment.
@param Google_Comment $postBody
@param array $optParams Optional parameters.
@return Google_Comment
|
entailment
|
public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
$data = $this->__call('copy', array($params));
if ($this->useObjects()) {
return new Google_DriveFile($data);
} else {
return $data;
}
}
|
Creates a copy of the specified file. (files.copy)
@param string $fileId The ID of the file to copy.
@param Google_DriveFile $postBody
@param array $optParams Optional parameters.
@opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
@opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
@opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
@opt_param bool pinned Whether to pin the head revision of the new copy.
@opt_param string timedTextLanguage The language of the timed text.
@opt_param string timedTextTrackName The timed text track name.
@opt_param string visibility The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false.
@return Google_DriveFile
|
entailment
|
public function get($fileId, $optParams = array()) {
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
return new Google_DriveFile($data);
} else {
return $data;
}
}
|
Gets a file's metadata by ID. (files.get)
@param string $fileId The ID for the file in question.
@param array $optParams Optional parameters.
@opt_param string projection This parameter is deprecated and has no function.
@opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
@return Google_DriveFile
|
entailment
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.