Version Notes
first release
Download this release
Release Info
Developer | shiv kumar singh |
Extension | testtestsetsete |
Version | 0.1.1 |
Comparing to | |
See all releases |
Version 0.1.1
- app/code/local/Conversionbug/Core/Block/Info.php +58 -0
- app/code/local/Conversionbug/Core/Block/System/Config/Form/Fieldset/Store.php +15 -0
- app/code/local/Conversionbug/Core/Block/System/Config/Info.php +31 -0
- app/code/local/Conversionbug/Core/Helper/Data.php +20 -0
- app/code/local/Conversionbug/Core/Model/Feed.php +46 -0
- app/code/local/Conversionbug/Core/Model/System/Config/Source/Display.php +18 -0
- app/code/local/Conversionbug/Core/Model/System/Config/Source/Footer.php +22 -0
- app/code/local/Conversionbug/Core/Model/System/Config/Source/Options.php +18 -0
- app/code/local/Conversionbug/Core/etc/adminhtml.xml +24 -0
- app/code/local/Conversionbug/Core/etc/config.xml +45 -0
- app/code/local/Conversionbug/Core/etc/system.xml +42 -0
- app/code/local/Conversionbug/SocialPopup/.DS_Store +0 -0
- app/code/local/Conversionbug/SocialPopup/Block/.DS_Store +0 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup.php +13 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit.php +45 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Form.php +19 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Tab/Form.php +58 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Tabs.php +24 -0
- app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Grid.php +265 -0
- app/code/local/Conversionbug/SocialPopup/Block/Facebook.php +28 -0
- app/code/local/Conversionbug/SocialPopup/Block/Google.php +32 -0
- app/code/local/Conversionbug/SocialPopup/Block/SocialPopup.php +31 -0
- app/code/local/Conversionbug/SocialPopup/Helper/Data.php +35 -0
- app/code/local/Conversionbug/SocialPopup/Helper/Facebook.php +89 -0
- app/code/local/Conversionbug/SocialPopup/Helper/Google.php +89 -0
- app/code/local/Conversionbug/SocialPopup/Model/Facebook/Client.php +238 -0
- app/code/local/Conversionbug/SocialPopup/Model/Facebook/Userinfo.php +48 -0
- app/code/local/Conversionbug/SocialPopup/Model/Google/Client.php +355 -0
- app/code/local/Conversionbug/SocialPopup/Model/Resource/Setup.php +41 -0
- app/code/local/Conversionbug/SocialPopup/controllers/AccountController.php +116 -0
- app/code/local/Conversionbug/SocialPopup/controllers/AccountController.php.new +123 -0
- app/code/local/Conversionbug/SocialPopup/controllers/Adminhtml/SocialpopupController.php +51 -0
- app/code/local/Conversionbug/SocialPopup/controllers/IndexController.php +112 -0
- app/code/local/Conversionbug/SocialPopup/data/conversionbug_socialpopup_setup/data-upgrade-0.1.0-0.1.1.php +15 -0
- app/code/local/Conversionbug/SocialPopup/etc/adminhtml.xml +65 -0
- app/code/local/Conversionbug/SocialPopup/etc/config.xml +102 -0
- app/code/local/Conversionbug/SocialPopup/etc/system.xml +142 -0
- app/code/local/Conversionbug/SocialPopup/sql/conversionbug_socialpopup_setup/install-0.1.0.php +47 -0
- app/design/adminhtml/default/default/layout/conversionbugcore.xml +15 -0
- app/design/adminhtml/default/default/layout/socialpopup.xml +8 -0
- app/design/adminhtml/default/default/template/conversionbugcore/info.phtml +43 -0
- app/design/frontend/rwd/default/layout/socialpopup.xml +63 -0
- app/etc/modules/ConversionBug_Core.xml +32 -0
- app/etc/modules/ConversionBug_SocialPopup.xml +32 -0
- js/conversionbug/jquery.colorbox.js +1104 -0
- lib/SocialLogin/.DS_Store +0 -0
- lib/SocialLogin/Google_Client.php +453 -0
- lib/SocialLogin/auth/Google_AssertionCredentials.php +95 -0
- lib/SocialLogin/auth/Google_Auth.php +36 -0
- lib/SocialLogin/auth/Google_AuthNone.php +48 -0
- lib/SocialLogin/auth/Google_LoginTicket.php +63 -0
- lib/SocialLogin/auth/Google_OAuth2.php +444 -0
- lib/SocialLogin/auth/Google_P12Signer.php +70 -0
- lib/SocialLogin/auth/Google_PemVerifier.php +66 -0
- lib/SocialLogin/auth/Google_Signer.php +30 -0
- lib/SocialLogin/auth/Google_Verifier.php +31 -0
- lib/SocialLogin/cache/Google_ApcCache.php +98 -0
- lib/SocialLogin/cache/Google_Cache.php +55 -0
- lib/SocialLogin/cache/Google_FileCache.php +137 -0
- lib/SocialLogin/cache/Google_MemcacheCache.php +130 -0
- lib/SocialLogin/config.php +81 -0
- lib/SocialLogin/contrib/Google_AdexchangebuyerService.php +567 -0
- lib/SocialLogin/contrib/Google_AdsenseService.php +1140 -0
- lib/SocialLogin/contrib/Google_AdsensehostService.php +1378 -0
- lib/SocialLogin/contrib/Google_AnalyticsService.php +1887 -0
- lib/SocialLogin/contrib/Google_BigqueryService.php +1821 -0
- lib/SocialLogin/contrib/Google_BloggerService.php +1301 -0
- lib/SocialLogin/contrib/Google_BooksService.php +2793 -0
- lib/SocialLogin/contrib/Google_CalendarService.php +1931 -0
- lib/SocialLogin/contrib/Google_ComputeService.php +2629 -0
- lib/SocialLogin/contrib/Google_CustomsearchService.php +836 -0
- lib/SocialLogin/contrib/Google_DriveService.php +2157 -0
- lib/SocialLogin/contrib/Google_FreebaseService.php +89 -0
- lib/SocialLogin/contrib/Google_FusiontablesService.php +1326 -0
- lib/SocialLogin/contrib/Google_GanService.php +1605 -0
- lib/SocialLogin/contrib/Google_LatitudeService.php +283 -0
- lib/SocialLogin/contrib/Google_LicensingService.php +285 -0
- lib/SocialLogin/contrib/Google_ModeratorService.php +166 -0
app/code/local/Conversionbug/Core/Block/Info.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_Core_Block_Info extends Mage_Adminhtml_Block_Template {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Print init JS script into body
|
7 |
+
* @return string
|
8 |
+
*/
|
9 |
+
protected function _toHtml() {
|
10 |
+
$section = $this->getAction()->getRequest()->getParam('section', false);
|
11 |
+
if ($section == 'cbstore') {
|
12 |
+
return parent::_toHtml();
|
13 |
+
} else {
|
14 |
+
return '';
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
function urlGetContents() {
|
19 |
+
$url = Mage::getUrl() . 'product.csv';
|
20 |
+
$cUrl = curl_init();
|
21 |
+
curl_setopt($cUrl, CURLOPT_URL, $url);
|
22 |
+
curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
|
23 |
+
curl_setopt($cUrl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)");
|
24 |
+
curl_setopt($cUrl, CURLOPT_TIMEOUT, 3);
|
25 |
+
$content = curl_exec($cUrl);
|
26 |
+
|
27 |
+
if (curl_getinfo($cUrl, CURLINFO_HTTP_CODE) != 200) {
|
28 |
+
curl_close($cUrl);
|
29 |
+
return false;
|
30 |
+
} else {
|
31 |
+
|
32 |
+
return $content;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
public function getExtensions() {
|
37 |
+
$data = array();
|
38 |
+
try {
|
39 |
+
$file = Mage::getUrl() . 'product.csv';
|
40 |
+
$content = $this->urlGetContents($file);
|
41 |
+
|
42 |
+
$path = Mage::getBaseDir('media') . DS . 'import' . DS . 'product.csv';
|
43 |
+
if (!file_exists(Mage::getBaseDir('media') . DS . 'import')) {
|
44 |
+
mkdir(Mage::getBaseDir('media') . DS . 'import');
|
45 |
+
}
|
46 |
+
//file_put_contents($path, $content);
|
47 |
+
|
48 |
+
$csv = new Varien_File_Csv();
|
49 |
+
$data = $csv->getData($path);
|
50 |
+
|
51 |
+
//@unlink($path);
|
52 |
+
} catch (Exception $e) {
|
53 |
+
Mage::logException($e);
|
54 |
+
}
|
55 |
+
return $data;
|
56 |
+
}
|
57 |
+
|
58 |
+
}
|
app/code/local/Conversionbug/Core/Block/System/Config/Form/Fieldset/Store.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_Core_Block_System_Config_Form_Fieldset_Store extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
3 |
+
{
|
4 |
+
|
5 |
+
protected $_dummyElement;
|
6 |
+
protected $_fieldRenderer;
|
7 |
+
protected $_values;
|
8 |
+
|
9 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
10 |
+
{
|
11 |
+
return '<div id="' . $element->getId() . '"></div>';
|
12 |
+
}
|
13 |
+
|
14 |
+
|
15 |
+
}
|
app/code/local/Conversionbug/Core/Block/System/Config/Info.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_Core_Block_System_Config_Info
|
4 |
+
extends Mage_Adminhtml_Block_Abstract
|
5 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
6 |
+
{
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Render fieldset html
|
10 |
+
*
|
11 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
12 |
+
* @return string
|
13 |
+
*/
|
14 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
15 |
+
{
|
16 |
+
$html = <<<HTML
|
17 |
+
<div class="cb-intro">
|
18 |
+
<div class="content">
|
19 |
+
<h1>CONVERSIONbug</h1>
|
20 |
+
<p>We want to change the way you look at your website</p>
|
21 |
+
<p><span>Visit Us: </span><a href="http://www.conversionbug.com/">www.conversionbug.com</a></p>
|
22 |
+
<p><span>Contact Us: </span><a href="mailto:support@conversionbug.com">support@conversionbug.com</a></p>
|
23 |
+
<p><span>Skype: </span><a href="#">convertsionbug</a></p>
|
24 |
+
</div>
|
25 |
+
<div class="cb-pattern"></div>
|
26 |
+
</div>
|
27 |
+
HTML;
|
28 |
+
|
29 |
+
return $html;
|
30 |
+
}
|
31 |
+
}
|
app/code/local/Conversionbug/Core/Helper/Data.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_Core_Helper_Data extends Mage_Core_Helper_Abstract{
|
3 |
+
|
4 |
+
/**
|
5 |
+
* @return string
|
6 |
+
*/
|
7 |
+
public function getInfoLink()
|
8 |
+
{
|
9 |
+
return 'http://www.conversionbug.com/';
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* @return string
|
14 |
+
*/
|
15 |
+
public function getSupportLink()
|
16 |
+
{
|
17 |
+
return 'http://www.conversionbug.com/';
|
18 |
+
}
|
19 |
+
}
|
20 |
+
?>
|
app/code/local/Conversionbug/Core/Model/Feed.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_Core_Model_Feed extends Mage_AdminNotification_Model_Feed {
|
4 |
+
|
5 |
+
const URL_NEWS = 'http://www.conversionbug.com/feed_news.xml';
|
6 |
+
|
7 |
+
public function _construct() {
|
8 |
+
parent::_construct();
|
9 |
+
$this->_init('cbcore/feed');
|
10 |
+
}
|
11 |
+
|
12 |
+
public function checkUpdate() {
|
13 |
+
if (!extension_loaded('curl')) {
|
14 |
+
return $this;
|
15 |
+
}
|
16 |
+
/*if (!Mage::getStoreConfig('info/notification/enable')) {
|
17 |
+
return $this;
|
18 |
+
}*/
|
19 |
+
$feedData = array();
|
20 |
+
$feedXml = $this->getFeedData();
|
21 |
+
|
22 |
+
if ($feedXml && $feedXml->channel && $feedXml->channel->item) {
|
23 |
+
foreach ($feedXml->channel->item as $item) {
|
24 |
+
$date = $this->getDate((string) $item->pubDate);
|
25 |
+
$feedData[] = array(
|
26 |
+
'severity' => 3,
|
27 |
+
'date_added' => $this->getDate($date),
|
28 |
+
'title' => (string) $item->title,
|
29 |
+
'description' => (string) $item->description,
|
30 |
+
'url' => (string) $item->link,
|
31 |
+
);
|
32 |
+
}
|
33 |
+
if ($feedData) {
|
34 |
+
Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));
|
35 |
+
}
|
36 |
+
}
|
37 |
+
$this->setLastUpdate();
|
38 |
+
}
|
39 |
+
|
40 |
+
public function getFeedUrl() {
|
41 |
+
if (is_null($this->_feedUrl)) {
|
42 |
+
$this->_feedUrl = self::URL_NEWS;
|
43 |
+
}
|
44 |
+
return $this->_feedUrl;
|
45 |
+
}
|
46 |
+
}
|
app/code/local/Conversionbug/Core/Model/System/Config/Source/Display.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_Core_Model_System_Config_Source_Display
|
3 |
+
{
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Options getter
|
7 |
+
*
|
8 |
+
* @return array
|
9 |
+
*/
|
10 |
+
public function toOptionArray()
|
11 |
+
{
|
12 |
+
return array(
|
13 |
+
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Top')),
|
14 |
+
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Sidebar')),
|
15 |
+
);
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
app/code/local/Conversionbug/Core/Model/System/Config/Source/Footer.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_Core_Model_System_Config_Source_Footer
|
3 |
+
{
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Options getter
|
7 |
+
*
|
8 |
+
* @return array
|
9 |
+
*/
|
10 |
+
public function toOptionArray()
|
11 |
+
{
|
12 |
+
return array(
|
13 |
+
|
14 |
+
array('value' => 1, 'label' => Mage::helper('adminhtml')->__('1')),
|
15 |
+
array('value' => 2, 'label' => Mage::helper('adminhtml')->__('2')),
|
16 |
+
array('value' => 3, 'label' => Mage::helper('adminhtml')->__('3')),
|
17 |
+
array('value' => 4, 'label' => Mage::helper('adminhtml')->__('4')),
|
18 |
+
array('value' => 5, 'label' => Mage::helper('adminhtml')->__('5')),
|
19 |
+
array('value' => 6, 'label' => Mage::helper('adminhtml')->__('6')),
|
20 |
+
);
|
21 |
+
}
|
22 |
+
}
|
app/code/local/Conversionbug/Core/Model/System/Config/Source/Options.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_Core_Model_System_Config_Source_Options
|
3 |
+
{
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Options getter
|
7 |
+
*
|
8 |
+
* @return array
|
9 |
+
*/
|
10 |
+
public function toOptionArray()
|
11 |
+
{
|
12 |
+
return array(
|
13 |
+
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Yes')),
|
14 |
+
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('No')),
|
15 |
+
);
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
app/code/local/Conversionbug/Core/etc/adminhtml.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>Allow everything</all>
|
6 |
+
<admin>
|
7 |
+
<children>
|
8 |
+
<system>
|
9 |
+
<children>
|
10 |
+
<config>
|
11 |
+
<children>
|
12 |
+
<cbstore translate="title" module="cbcore">
|
13 |
+
<title>CB Extensions</title>
|
14 |
+
<sort_order>60</sort_order>
|
15 |
+
</cbstore>
|
16 |
+
</children>
|
17 |
+
</config>
|
18 |
+
</children>
|
19 |
+
</system>
|
20 |
+
</children>
|
21 |
+
</admin>
|
22 |
+
</resources>
|
23 |
+
</acl>
|
24 |
+
</config>
|
app/code/local/Conversionbug/Core/etc/config.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<ConversionBug_Core>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</ConversionBug_Core>
|
7 |
+
</modules>
|
8 |
+
<adminhtml>
|
9 |
+
<layout>
|
10 |
+
<updates>
|
11 |
+
<cbcore>
|
12 |
+
<file>conversionbugcore.xml</file>
|
13 |
+
</cbcore>
|
14 |
+
</updates>
|
15 |
+
</layout>
|
16 |
+
<events>
|
17 |
+
<controller_action_predispatch>
|
18 |
+
<observers>
|
19 |
+
<cbnotifications>
|
20 |
+
<type>singleton</type>
|
21 |
+
<class>cbcore/feed</class>
|
22 |
+
<method>checkUpdate</method>
|
23 |
+
</cbnotifications>
|
24 |
+
</observers>
|
25 |
+
</controller_action_predispatch>
|
26 |
+
</events>
|
27 |
+
</adminhtml>
|
28 |
+
<global>
|
29 |
+
<helpers>
|
30 |
+
<cbcore>
|
31 |
+
<class>ConversionBug_Core_Helper</class>
|
32 |
+
</cbcore>
|
33 |
+
</helpers>
|
34 |
+
<blocks>
|
35 |
+
<cbcore>
|
36 |
+
<class>ConversionBug_Core_Block</class>
|
37 |
+
</cbcore>
|
38 |
+
</blocks>
|
39 |
+
<models>
|
40 |
+
<cbcore>
|
41 |
+
<class>ConversionBug_Core_Model</class>
|
42 |
+
</cbcore>
|
43 |
+
</models>
|
44 |
+
</global>
|
45 |
+
</config>
|
app/code/local/Conversionbug/Core/etc/system.xml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<cbcore translate="label" module="cbcore">
|
5 |
+
<label>CB Extensions</label>
|
6 |
+
<sort_order>10</sort_order>
|
7 |
+
<class>cb-block</class>
|
8 |
+
</cbcore>
|
9 |
+
</tabs>
|
10 |
+
<sections>
|
11 |
+
<cbstore>
|
12 |
+
<class>separator-top</class>
|
13 |
+
<header_css>cb-header</header_css>
|
14 |
+
<label>CB Extensions</label>
|
15 |
+
<tab>cbcore</tab>
|
16 |
+
<frontend_type>text</frontend_type>
|
17 |
+
<sort_order>1000</sort_order>
|
18 |
+
<show_in_default>1</show_in_default>
|
19 |
+
<show_in_website>0</show_in_website>
|
20 |
+
<show_in_store>0</show_in_store>
|
21 |
+
<groups>
|
22 |
+
<!-- <extensions translate="label">
|
23 |
+
<label>CB Extensions Store</label>
|
24 |
+
<frontend_model>cbcore/system_config_info</frontend_model>
|
25 |
+
<sort_order>10</sort_order>
|
26 |
+
<show_in_default>1</show_in_default>
|
27 |
+
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>1</show_in_store>
|
29 |
+
</extensions>-->
|
30 |
+
<extension translate="label">
|
31 |
+
<label>CB Extensions Store</label>
|
32 |
+
<frontend_type>text</frontend_type>
|
33 |
+
<frontend_model>cbcore/system_config_form_fieldset_store</frontend_model>
|
34 |
+
<sort_order>11</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
</extension>
|
39 |
+
</groups>
|
40 |
+
</cbstore>
|
41 |
+
</sections>
|
42 |
+
</config>
|
app/code/local/Conversionbug/SocialPopup/.DS_Store
ADDED
Binary file
|
app/code/local/Conversionbug/SocialPopup/Block/.DS_Store
ADDED
Binary file
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
+
{
|
4 |
+
public function __construct()
|
5 |
+
{
|
6 |
+
$this->_controller = 'adminhtml_socialpopup';
|
7 |
+
$this->_blockGroup = 'socialpopup';
|
8 |
+
$this->_headerText = Mage::helper('socialpopup')->__('CB Dashboard');
|
9 |
+
$this->_addButtonLabel = Mage::helper('socialpopup')->__('Add Item');
|
10 |
+
parent::__construct();
|
11 |
+
$this->_removeButton('add');
|
12 |
+
}
|
13 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
|
9 |
+
$this->_objectId = 'id';
|
10 |
+
$this->_blockGroup = 'socialpopup';
|
11 |
+
$this->_controller = 'adminhtml_socialpopup';
|
12 |
+
|
13 |
+
$this->_updateButton('save', 'label', Mage::helper('socialpopup')->__('Save Item'));
|
14 |
+
$this->_updateButton('delete', 'label', Mage::helper('socialpopup')->__('Delete Item'));
|
15 |
+
|
16 |
+
$this->_addButton('saveandcontinue', array(
|
17 |
+
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
18 |
+
'onclick' => 'saveAndContinueEdit()',
|
19 |
+
'class' => 'save',
|
20 |
+
), -100);
|
21 |
+
|
22 |
+
$this->_formScripts[] = "
|
23 |
+
function toggleEditor() {
|
24 |
+
if (tinyMCE.getInstanceById('socialpopup_content') == null) {
|
25 |
+
tinyMCE.execCommand('mceAddControl', false, 'socialpopup_content');
|
26 |
+
} else {
|
27 |
+
tinyMCE.execCommand('mceRemoveControl', false, 'socialpopup_content');
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
function saveAndContinueEdit(){
|
32 |
+
editForm.submit($('edit_form').action+'back/edit/');
|
33 |
+
}
|
34 |
+
";
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getHeaderText()
|
38 |
+
{
|
39 |
+
if( Mage::registry('socialpopup_data') && Mage::registry('socialpopup_data')->getId() ) {
|
40 |
+
return Mage::helper('socialpopup')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('socialpopup_data')->getTitle()));
|
41 |
+
} else {
|
42 |
+
return Mage::helper('socialpopup')->__('Add Item');
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Form.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
+
{
|
5 |
+
protected function _prepareForm()
|
6 |
+
{
|
7 |
+
$form = new Varien_Data_Form(array(
|
8 |
+
'id' => 'edit_form',
|
9 |
+
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
|
10 |
+
'method' => 'post',
|
11 |
+
'enctype' => 'multipart/form-data'
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
$form->setUseContainer(true);
|
16 |
+
$this->setForm($form);
|
17 |
+
return parent::_prepareForm();
|
18 |
+
}
|
19 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Tab/Form.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
+
{
|
5 |
+
protected function _prepareForm()
|
6 |
+
{
|
7 |
+
$form = new Varien_Data_Form();
|
8 |
+
$this->setForm($form);
|
9 |
+
$fieldset = $form->addFieldset('socialpopup_form', array('legend'=>Mage::helper('socialpopup')->__('Item information')));
|
10 |
+
|
11 |
+
$fieldset->addField('title', 'text', array(
|
12 |
+
'label' => Mage::helper('socialpopup')->__('Title'),
|
13 |
+
'class' => 'required-entry',
|
14 |
+
'required' => true,
|
15 |
+
'name' => 'title',
|
16 |
+
));
|
17 |
+
|
18 |
+
$fieldset->addField('filename', 'file', array(
|
19 |
+
'label' => Mage::helper('socialpopup')->__('File'),
|
20 |
+
'required' => false,
|
21 |
+
'name' => 'filename',
|
22 |
+
));
|
23 |
+
|
24 |
+
$fieldset->addField('status', 'select', array(
|
25 |
+
'label' => Mage::helper('socialpopup')->__('Status'),
|
26 |
+
'name' => 'status',
|
27 |
+
'values' => array(
|
28 |
+
array(
|
29 |
+
'value' => 1,
|
30 |
+
'label' => Mage::helper('socialpopup')->__('Enabled'),
|
31 |
+
),
|
32 |
+
|
33 |
+
array(
|
34 |
+
'value' => 2,
|
35 |
+
'label' => Mage::helper('socialpopup')->__('Disabled'),
|
36 |
+
),
|
37 |
+
),
|
38 |
+
));
|
39 |
+
|
40 |
+
$fieldset->addField('content', 'editor', array(
|
41 |
+
'name' => 'content',
|
42 |
+
'label' => Mage::helper('socialpopup')->__('Content'),
|
43 |
+
'title' => Mage::helper('socialpopup')->__('Content'),
|
44 |
+
'style' => 'width:700px; height:500px;',
|
45 |
+
'wysiwyg' => false,
|
46 |
+
'required' => true,
|
47 |
+
));
|
48 |
+
|
49 |
+
if ( Mage::getSingleton('adminhtml/session')->getSocialPopupData() )
|
50 |
+
{
|
51 |
+
$form->setValues(Mage::getSingleton('adminhtml/session')->getSocialPopupData());
|
52 |
+
Mage::getSingleton('adminhtml/session')->setSocialPopupData(null);
|
53 |
+
} elseif ( Mage::registry('socialpopup_data') ) {
|
54 |
+
$form->setValues(Mage::registry('socialpopup_data')->getData());
|
55 |
+
}
|
56 |
+
return parent::_prepareForm();
|
57 |
+
}
|
58 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Edit/Tabs.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
+
{
|
5 |
+
|
6 |
+
public function __construct()
|
7 |
+
{
|
8 |
+
parent::__construct();
|
9 |
+
$this->setId('socialpopup_tabs');
|
10 |
+
$this->setDestElementId('edit_form');
|
11 |
+
$this->setTitle(Mage::helper('socialpopup')->__('Item Information'));
|
12 |
+
}
|
13 |
+
|
14 |
+
protected function _beforeToHtml()
|
15 |
+
{
|
16 |
+
$this->addTab('form_section', array(
|
17 |
+
'label' => Mage::helper('socialpopup')->__('Item Information'),
|
18 |
+
'title' => Mage::helper('socialpopup')->__('Item Information'),
|
19 |
+
'content' => $this->getLayout()->createBlock('socialpopup/adminhtml_socialpopup_edit_tab_form')->toHtml(),
|
20 |
+
));
|
21 |
+
|
22 |
+
return parent::_beforeToHtml();
|
23 |
+
}
|
24 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Adminhtml/Socialpopup/Grid.php
ADDED
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Block_Adminhtml_Socialpopup_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
4 |
+
|
5 |
+
protected $_countTotals = true;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
parent::__construct();
|
9 |
+
//$this->setTemplate('M2ePro/ebay/synchronization/help.phtml');
|
10 |
+
$this->setId('socialpopupGrid');
|
11 |
+
$this->setDefaultSort('entity_id');
|
12 |
+
$this->setDefaultDir('ASC');
|
13 |
+
$this->setSaveParametersInSession(true);
|
14 |
+
$this->setFilterVisibility(false);
|
15 |
+
}
|
16 |
+
|
17 |
+
protected function _toHtml_() {
|
18 |
+
$orderTotals = Mage::getModel('sales/order')->getCollection()
|
19 |
+
->addAttributeToFilter('status', Mage_Sales_Model_Order::STATE_COMPLETE)
|
20 |
+
//->addAttributeToFilter('created_at', array('from' => '2012-07-01'))
|
21 |
+
->addAttributeToSelect('grand_total')
|
22 |
+
->getColumnValues('grand_total')
|
23 |
+
;
|
24 |
+
|
25 |
+
$grandTotal = array_sum($orderTotals);
|
26 |
+
|
27 |
+
|
28 |
+
$collection = Mage::getResourceModel('customer/customer_collection')
|
29 |
+
->addAttributeToSelect('cb_socialpopup_customer')
|
30 |
+
->addAttributeToFilter('cb_socialpopup_customer', 1);
|
31 |
+
$sql = 'SELECT SUM(base_grand_total)'
|
32 |
+
. ' FROM ' . Mage::getSingleton('core/resource')->getTableName('sales/order') . ' AS o'
|
33 |
+
. ' WHERE o.customer_id = e.entity_id ';
|
34 |
+
$expr = new Zend_Db_Expr('(' . $sql . ')');
|
35 |
+
|
36 |
+
$collection->getSelect()->from(null, array('total' => $expr));
|
37 |
+
//echo "<pre>";print_r($collection->getColumnValues('total'));exit;
|
38 |
+
$cb = array_sum($collection->getColumnValues('total'));
|
39 |
+
$cbPercentage = round(($cb / $grandTotal) * 100, 2);
|
40 |
+
$TotalPercentage = 100 - $cbPercentage;
|
41 |
+
$grandTotal = $grandTotal - $cb;
|
42 |
+
$totalSum = Mage::helper('core')->currency($grandTotal, true, false);
|
43 |
+
$cbTotal = Mage::helper('core')->currency($cb, true, false);
|
44 |
+
|
45 |
+
$javascriptsMain = <<<JAVASCRIPT
|
46 |
+
|
47 |
+
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js'></script>
|
48 |
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
|
49 |
+
<script src="http://localhost/socialpopup/media/piechart/morris.js"></script>
|
50 |
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.min.js"></script>
|
51 |
+
|
52 |
+
<link rel="stylesheet" href="http://localhost/socialpopup/media/piechart/example.css">
|
53 |
+
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.min.css">
|
54 |
+
<link rel="stylesheet" href="http://localhost/socialpopup/media/piechart/morris.css">
|
55 |
+
|
56 |
+
<h1>Order Increased By CB Exit Intent Chart</h1>
|
57 |
+
<div id="graph"></div>
|
58 |
+
<script>
|
59 |
+
$(function () {
|
60 |
+
eval(Morris.Donut({
|
61 |
+
element: 'graph',
|
62 |
+
data: [
|
63 |
+
{value: $TotalPercentage, label: 'Without CB Exit Intent: $totalSum', formatted: 'approx. $TotalPercentage%' },
|
64 |
+
{value: $cbPercentage , label: 'With CB Exit Intent: $cbTotal', formatted: 'approx. $cbPercentage%' },
|
65 |
+
|
66 |
+
],
|
67 |
+
formatter: function (x, data) { return data.formatted; }
|
68 |
+
}));
|
69 |
+
prettyPrint();
|
70 |
+
});
|
71 |
+
</script>
|
72 |
+
|
73 |
+
|
74 |
+
JAVASCRIPT;
|
75 |
+
|
76 |
+
return $javascriptsMain .
|
77 |
+
'<div id="synchronization_progress_bar"></div>' .
|
78 |
+
'<div id="synchronization_content_container">' .
|
79 |
+
parent::_toHtml() .
|
80 |
+
'</div>';
|
81 |
+
}
|
82 |
+
|
83 |
+
protected function _prepareCollection() {
|
84 |
+
$collection = Mage::getResourceModel('customer/customer_collection')
|
85 |
+
->addNameToSelect()
|
86 |
+
->addAttributeToSelect('email')
|
87 |
+
->addAttributeToSelect('created_at')
|
88 |
+
->addAttributeToSelect('group_id')
|
89 |
+
->addAttributeToSelect('cb_socialpopup_customer')
|
90 |
+
->addAttributeToFilter('cb_socialpopup_customer', 1)
|
91 |
+
->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left')
|
92 |
+
->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left')
|
93 |
+
->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
|
94 |
+
->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
|
95 |
+
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left');
|
96 |
+
|
97 |
+
// add 2 new fields as sub queries
|
98 |
+
$sql = 'SELECT MAX(o.created_at)'
|
99 |
+
. ' FROM ' . Mage::getSingleton('core/resource')->getTableName('sales/order') . ' AS o'
|
100 |
+
. ' WHERE o.customer_id = e.entity_id ';
|
101 |
+
$expr = new Zend_Db_Expr('(' . $sql . ')');
|
102 |
+
|
103 |
+
$collection->getSelect()->from(null, array('last_order_date' => $expr));
|
104 |
+
|
105 |
+
$sql = 'SELECT COUNT(*)'
|
106 |
+
. ' FROM ' . Mage::getSingleton('core/resource')->getTableName('sales/order') . ' AS o'
|
107 |
+
. ' WHERE o.customer_id = e.entity_id ';
|
108 |
+
$expr = new Zend_Db_Expr('(' . $sql . ')');
|
109 |
+
|
110 |
+
$collection->getSelect()->from(null, array('orders_count' => $expr));
|
111 |
+
|
112 |
+
$sql = 'SELECT SUM(base_grand_total)'
|
113 |
+
. ' FROM ' . Mage::getSingleton('core/resource')->getTableName('sales/order') . ' AS o'
|
114 |
+
. ' WHERE o.customer_id = e.entity_id ';
|
115 |
+
$expr = new Zend_Db_Expr('(' . $sql . ')');
|
116 |
+
|
117 |
+
$collection->getSelect()->from(null, array('total' => $expr));
|
118 |
+
|
119 |
+
//echo $collection->getSelect(); exit;
|
120 |
+
|
121 |
+
$this->setCollection($collection);
|
122 |
+
$this->_prepareTotals('total,orders_count'); //Add this Line with all the columns you want to have in totals bar
|
123 |
+
return parent::_prepareCollection();
|
124 |
+
}
|
125 |
+
|
126 |
+
//Add following function
|
127 |
+
protected function _prepareTotals($columns = null) {
|
128 |
+
$columns = explode(',', $columns);
|
129 |
+
if (!$columns) {
|
130 |
+
return;
|
131 |
+
}
|
132 |
+
$this->_countTotals = true;
|
133 |
+
$totals = new Varien_Object();
|
134 |
+
$fields = array();
|
135 |
+
foreach ($columns as $column) {
|
136 |
+
$fields[$column] = 0;
|
137 |
+
}
|
138 |
+
foreach ($this->getCollection() as $item) {
|
139 |
+
foreach ($fields as $field => $value) {
|
140 |
+
$fields[$field]+=$item->getData($field);
|
141 |
+
}
|
142 |
+
}
|
143 |
+
$totals->setData($fields);
|
144 |
+
$this->setTotals($totals);
|
145 |
+
return;
|
146 |
+
}
|
147 |
+
|
148 |
+
protected function _prepareColumns() {
|
149 |
+
$this->addColumn('entity_id', array(
|
150 |
+
'header' => Mage::helper('socialpopup')->__('ID'),
|
151 |
+
'width' => '50px',
|
152 |
+
'index' => 'entity_id',
|
153 |
+
'type' => 'number',
|
154 |
+
'totals_label' => $this->__('Total'), //Add this line to show "Total" in the beginning of the row
|
155 |
+
));
|
156 |
+
$this->addColumn('name', array(
|
157 |
+
'header' => Mage::helper('socialpopup')->__('Name'),
|
158 |
+
'index' => 'name'
|
159 |
+
));
|
160 |
+
$this->addColumn('email', array(
|
161 |
+
'header' => Mage::helper('socialpopup')->__('Email'),
|
162 |
+
'width' => '150',
|
163 |
+
'index' => 'email'
|
164 |
+
));
|
165 |
+
$this->addColumn('last_order_date', array(
|
166 |
+
'header' => Mage::helper('customer')->__('Last Order Date'),
|
167 |
+
'type' => 'datetime',
|
168 |
+
'align' => 'center',
|
169 |
+
'index' => 'last_order_date',
|
170 |
+
'gmtoffset' => true,
|
171 |
+
));
|
172 |
+
|
173 |
+
$this->addColumn('orders_count', array(
|
174 |
+
'header' => Mage::helper('customer')->__('Orders Count'),
|
175 |
+
'index' => 'orders_count',
|
176 |
+
));
|
177 |
+
$this->addColumn('total', array(
|
178 |
+
'header' => Mage::helper('customer')->__('Total Revenue'),
|
179 |
+
'index' => 'total',
|
180 |
+
'type' => 'currency',
|
181 |
+
'currency_code' => Mage::app()->getStore()->getCurrentCurrencyCode(),
|
182 |
+
));
|
183 |
+
$groups = Mage::getResourceModel('customer/group_collection')
|
184 |
+
->addFieldToFilter('customer_group_id', array('gt' => 0))
|
185 |
+
->load()
|
186 |
+
->toOptionHash();
|
187 |
+
|
188 |
+
$this->addColumn('group', array(
|
189 |
+
'header' => Mage::helper('socialpopup')->__('Group'),
|
190 |
+
'width' => '100',
|
191 |
+
'index' => 'group_id',
|
192 |
+
'type' => 'options',
|
193 |
+
'options' => $groups,
|
194 |
+
));
|
195 |
+
|
196 |
+
$this->addColumn('Telephone', array(
|
197 |
+
'header' => Mage::helper('socialpopup')->__('Telephone'),
|
198 |
+
'width' => '100',
|
199 |
+
'index' => 'billing_telephone'
|
200 |
+
));
|
201 |
+
|
202 |
+
$this->addColumn('billing_postcode', array(
|
203 |
+
'header' => Mage::helper('socialpopup')->__('ZIP'),
|
204 |
+
'width' => '90',
|
205 |
+
'index' => 'billing_postcode',
|
206 |
+
));
|
207 |
+
|
208 |
+
$this->addColumn('billing_country_id', array(
|
209 |
+
'header' => Mage::helper('socialpopup')->__('Country'),
|
210 |
+
'width' => '100',
|
211 |
+
'type' => 'country',
|
212 |
+
'index' => 'billing_country_id',
|
213 |
+
));
|
214 |
+
|
215 |
+
$this->addColumn('billing_region', array(
|
216 |
+
'header' => Mage::helper('socialpopup')->__('State/Province'),
|
217 |
+
'width' => '100',
|
218 |
+
'index' => 'billing_region',
|
219 |
+
));
|
220 |
+
|
221 |
+
$this->addColumn('customer_since', array(
|
222 |
+
'header' => Mage::helper('socialpopup')->__('Customer Since'),
|
223 |
+
'type' => 'datetime',
|
224 |
+
'align' => 'center',
|
225 |
+
'index' => 'created_at',
|
226 |
+
'gmtoffset' => true
|
227 |
+
));
|
228 |
+
|
229 |
+
if (!Mage::app()->isSingleStoreMode()) {
|
230 |
+
$this->addColumn('website_id', array(
|
231 |
+
'header' => Mage::helper('socialpopup')->__('Website'),
|
232 |
+
'align' => 'center',
|
233 |
+
'width' => '80px',
|
234 |
+
'type' => 'options',
|
235 |
+
'options' => Mage::getSingleton('adminhtml/system_store')->getWebsiteOptionHash(true),
|
236 |
+
'index' => 'website_id',
|
237 |
+
));
|
238 |
+
}
|
239 |
+
|
240 |
+
// $this->addColumn('action',
|
241 |
+
// array(
|
242 |
+
// 'header' => Mage::helper('socialpopup')->__('Action'),
|
243 |
+
// 'width' => '100',
|
244 |
+
// 'type' => 'action',
|
245 |
+
// 'getter' => 'getId',
|
246 |
+
// 'actions' => array(
|
247 |
+
// array(
|
248 |
+
// 'caption' => Mage::helper('socialpopup')->__('Edit'),
|
249 |
+
// 'url' => array('base'=> '*/*/edit'),
|
250 |
+
// 'field' => 'id'
|
251 |
+
// )
|
252 |
+
// ),
|
253 |
+
// 'filter' => false,
|
254 |
+
// 'sortable' => false,
|
255 |
+
// 'index' => 'stores',
|
256 |
+
// 'is_system' => true,
|
257 |
+
// 'totals_label' => ''
|
258 |
+
// ));
|
259 |
+
|
260 |
+
$this->addExportType('*/*/exportCsv', Mage::helper('socialpopup')->__('CSV'));
|
261 |
+
$this->addExportType('*/*/exportXml', Mage::helper('socialpopup')->__('Excel XML'));
|
262 |
+
return parent::_prepareColumns();
|
263 |
+
}
|
264 |
+
|
265 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Facebook.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
class ConversionBug_SocialPopup_Block_Facebook extends ConversionBug_SocialPopup_Block_SocialPopup {
|
12 |
+
|
13 |
+
protected $client = null;
|
14 |
+
|
15 |
+
protected function _construct() {
|
16 |
+
parent::_construct();
|
17 |
+
|
18 |
+
$this->client = Mage::Helper('socialpopup/facebook');
|
19 |
+
if(!($this->client->isEnabled())) {
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
protected function _getButtonUrl()
|
25 |
+
{
|
26 |
+
return $this->client->createAuthUrl();
|
27 |
+
}
|
28 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/Google.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
class ConversionBug_SocialPopup_Block_Google extends ConversionBug_SocialPopup_Block_SocialPopup {
|
12 |
+
|
13 |
+
protected $client = null;
|
14 |
+
|
15 |
+
protected function _construct() {
|
16 |
+
parent::_construct();
|
17 |
+
|
18 |
+
$this->client = Mage::Helper('socialpopup/google');
|
19 |
+
if(!($this->client->isEnabled())) {
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
protected function _getButtonUrl()
|
25 |
+
{
|
26 |
+
return $this->client->createAuthUrl();
|
27 |
+
}
|
28 |
+
protected function _getFacebookButtonUrl()
|
29 |
+
{
|
30 |
+
return Mage::Helper('socialpopup/facebook')->createAuthUrl();
|
31 |
+
}
|
32 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Block/SocialPopup.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
class ConversionBug_SocialPopup_Block_SocialPopup extends Mage_Core_Block_Template {
|
12 |
+
protected $google = null;
|
13 |
+
protected $facebook = null;
|
14 |
+
|
15 |
+
protected function _construct() {
|
16 |
+
parent::_construct();
|
17 |
+
$this->google = Mage::Helper('socialpopup/google');
|
18 |
+
$this->facebook = Mage::Helper('socialpopup/facebook');
|
19 |
+
|
20 |
+
}
|
21 |
+
|
22 |
+
protected function _googleEnabled()
|
23 |
+
{
|
24 |
+
return $this->google->isEnabled();
|
25 |
+
}
|
26 |
+
|
27 |
+
protected function _facebookEnabled()
|
28 |
+
{
|
29 |
+
return $this->facebook->isEnabled();
|
30 |
+
}
|
31 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Helper/Data.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
class ConversionBug_SocialPopup_Helper_Data extends Mage_Core_Helper_Abstract {
|
12 |
+
|
13 |
+
const XML_PATH_ENABLED = 'socialpopup/socialpopup/enable';
|
14 |
+
|
15 |
+
protected $isEnabled = null;
|
16 |
+
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
$this->isEnabled = $this->_isEnabled();
|
20 |
+
}
|
21 |
+
|
22 |
+
public function isEnabled()
|
23 |
+
{
|
24 |
+
return (bool) $this->isEnabled;
|
25 |
+
}
|
26 |
+
|
27 |
+
protected function _isEnabled()
|
28 |
+
{
|
29 |
+
return $this->_getStoreConfig(self::XML_PATH_ENABLED);
|
30 |
+
}
|
31 |
+
protected function _getStoreConfig($xmlPath)
|
32 |
+
{
|
33 |
+
return Mage::getStoreConfig($xmlPath, Mage::app()->getStore()->getId());
|
34 |
+
}
|
35 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Helper/Facebook.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
$includePath = Mage::getBaseDir(). "/lib/SocialLogin/facebook/facebook.php";
|
12 |
+
require_once $includePath;
|
13 |
+
|
14 |
+
class ConversionBug_SocialPopup_Helper_Facebook extends ConversionBug_SocialPopup_Helper_Data {
|
15 |
+
|
16 |
+
const XML_PATH_ENABLED = 'socialpopup/facebook/enable';
|
17 |
+
const XML_PATH_CLIENT_ID = 'socialpopup/facebook/client_id';
|
18 |
+
const XML_PATH_CLIENT_SECRET = 'socialpopup/facebook/client_secret';
|
19 |
+
|
20 |
+
|
21 |
+
protected $isEnabled = null;
|
22 |
+
protected $clientId = null;
|
23 |
+
protected $clientSecret = null;
|
24 |
+
|
25 |
+
public function __construct() {
|
26 |
+
if ($this->isEnabled = $this->_isEnabled()) {
|
27 |
+
$this->clientId = $this->_getClientId();
|
28 |
+
$this->clientSecret = $this->_getClientSecret();
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
public function isEnabled() {
|
33 |
+
return (bool) $this->isEnabled;
|
34 |
+
}
|
35 |
+
|
36 |
+
public function _isEnabled() {
|
37 |
+
return $this->_getStoreConfig(self::XML_PATH_ENABLED);
|
38 |
+
}
|
39 |
+
|
40 |
+
public function _getClientId() {
|
41 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_ID);
|
42 |
+
}
|
43 |
+
|
44 |
+
public function _getClientSecret() {
|
45 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_SECRET);
|
46 |
+
}
|
47 |
+
|
48 |
+
public function createAuthUrl(){
|
49 |
+
|
50 |
+
//Call Facebook API
|
51 |
+
$facebook = new Facebooklib(array(
|
52 |
+
'appId' => $this->clientId,
|
53 |
+
'secret' => $this->clientSecret
|
54 |
+
|
55 |
+
));
|
56 |
+
$redirect_url = Mage::getUrl('socialpopup/index/facebook');
|
57 |
+
$fbuser = null;
|
58 |
+
$loginUrl = $facebook->getLoginUrl(array('redirect_uri'=>$redirect_url,'scope'=>'email'));
|
59 |
+
return $loginUrl;
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
public function createAccountAndConnect(
|
64 |
+
$email,
|
65 |
+
$firstName,
|
66 |
+
$lastName,
|
67 |
+
$googleId,
|
68 |
+
$token)
|
69 |
+
{
|
70 |
+
$customer = Mage::getModel('customer/customer');
|
71 |
+
|
72 |
+
$customer->setEmail($email)
|
73 |
+
->setFirstname($firstName)
|
74 |
+
->setLastname($lastName)
|
75 |
+
->setCbFid($googleId)
|
76 |
+
->setCbFtoken($token)
|
77 |
+
->setPassword($customer->generatePassword(10))
|
78 |
+
->setCbSocialpopupCustomer(1)
|
79 |
+
->save();
|
80 |
+
|
81 |
+
$customer->setConfirmation(null);
|
82 |
+
$customer->save();
|
83 |
+
|
84 |
+
$customer->sendNewAccountEmail();
|
85 |
+
|
86 |
+
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer);
|
87 |
+
}
|
88 |
+
|
89 |
+
}
|
app/code/local/Conversionbug/SocialPopup/Helper/Google.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ConversionBug
|
5 |
+
* @package ConversionBug_SocialPopup
|
6 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
7 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
8 |
+
* @author shiv kumar singh
|
9 |
+
* @email shivam.kumar@conversionbug.com
|
10 |
+
*/
|
11 |
+
$includePath = Mage::getBaseDir(). "/lib/SocialLogin/Google_Client.php";
|
12 |
+
require_once $includePath;
|
13 |
+
|
14 |
+
$includePath = Mage::getBaseDir(). "/lib/SocialLogin/contrib/Google_Oauth2Service.php";
|
15 |
+
require_once $includePath;
|
16 |
+
|
17 |
+
class ConversionBug_SocialPopup_Helper_Google extends ConversionBug_SocialPopup_Helper_Data {
|
18 |
+
|
19 |
+
const XML_PATH_ENABLED = 'socialpopup/gmail/enable';
|
20 |
+
const XML_PATH_CLIENT_ID = 'socialpopup/gmail/client_id';
|
21 |
+
const XML_PATH_CLIENT_SECRET = 'socialpopup/gmail/client_secret';
|
22 |
+
|
23 |
+
protected $isEnabled = null;
|
24 |
+
protected $clientId = null;
|
25 |
+
protected $clientSecret = null;
|
26 |
+
|
27 |
+
public function __construct() {
|
28 |
+
if ($this->isEnabled = $this->_isEnabled()) {
|
29 |
+
$this->clientId = $this->_getClientId();
|
30 |
+
$this->clientSecret = $this->_getClientSecret();
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
public function isEnabled() {
|
35 |
+
return (bool) $this->isEnabled;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function _isEnabled() {
|
39 |
+
return $this->_getStoreConfig(self::XML_PATH_ENABLED);
|
40 |
+
}
|
41 |
+
|
42 |
+
public function _getClientId() {
|
43 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_ID);
|
44 |
+
}
|
45 |
+
|
46 |
+
public function _getClientSecret() {
|
47 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_SECRET);
|
48 |
+
}
|
49 |
+
|
50 |
+
public function createAuthUrl()
|
51 |
+
{
|
52 |
+
|
53 |
+
$gClient = new Google_Client();
|
54 |
+
$gClient->setApplicationName('Login to '.Mage::getUrl());
|
55 |
+
$gClient->setClientId($this->_getClientId());
|
56 |
+
$gClient->setClientSecret($this->_getClientSecret());
|
57 |
+
$gClient->setRedirectUri(Mage::getUrl('socialpopup/index/redirecUri'));
|
58 |
+
$google_oauthV2 = new Google_Oauth2Service($gClient);
|
59 |
+
return $gClient->createAuthUrl();
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
public function createAccountAndConnect(
|
64 |
+
$email,
|
65 |
+
$firstName,
|
66 |
+
$lastName,
|
67 |
+
$googleId,
|
68 |
+
$token)
|
69 |
+
{
|
70 |
+
$customer = Mage::getModel('customer/customer');
|
71 |
+
|
72 |
+
$customer->setEmail($email)
|
73 |
+
->setFirstname($firstName)
|
74 |
+
->setLastname($lastName)
|
75 |
+
->setCbGid($googleId)
|
76 |
+
->setCbGtoken($token)
|
77 |
+
->setPassword($customer->generatePassword(10))
|
78 |
+
->setCbSocialpopupCustomer(1)
|
79 |
+
->save();
|
80 |
+
|
81 |
+
$customer->setConfirmation(null);
|
82 |
+
$customer->save();
|
83 |
+
|
84 |
+
$customer->sendNewAccountEmail();
|
85 |
+
|
86 |
+
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer);
|
87 |
+
}
|
88 |
+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
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class ConversionBug_SocialPopup_Model_Facebook_Client
|
5 |
+
{
|
6 |
+
const REDIRECT_URI_ROUTE = 'socialconnect/facebook/connect';
|
7 |
+
|
8 |
+
const XML_PATH_ENABLED = 'socialpopup/facebook/enable';
|
9 |
+
const XML_PATH_CLIENT_ID = 'customer/inchoo_socialconnect_facebook/client_id';
|
10 |
+
const XML_PATH_CLIENT_SECRET = 'customer/inchoo_socialconnect_facebook/client_secret';
|
11 |
+
|
12 |
+
const OAUTH2_SERVICE_URI = 'https://graph.facebook.com';
|
13 |
+
const OAUTH2_AUTH_URI = 'https://graph.facebook.com/oauth/authorize';
|
14 |
+
const OAUTH2_TOKEN_URI = 'https://graph.facebook.com/oauth/access_token';
|
15 |
+
|
16 |
+
protected $clientId = null;
|
17 |
+
protected $clientSecret = null;
|
18 |
+
protected $redirectUri = null;
|
19 |
+
protected $state = '';
|
20 |
+
protected $scope = array('email', 'user_birthday');
|
21 |
+
|
22 |
+
protected $token = null;
|
23 |
+
|
24 |
+
public function __construct($params = array())
|
25 |
+
{
|
26 |
+
if(($this->isEnabled = $this->_isEnabled())) {
|
27 |
+
$this->clientId = $this->_getClientId();
|
28 |
+
$this->clientSecret = $this->_getClientSecret();
|
29 |
+
$this->redirectUri = Mage::getModel('core/url')->sessionUrlVar(
|
30 |
+
Mage::getUrl(self::REDIRECT_URI_ROUTE)
|
31 |
+
);
|
32 |
+
|
33 |
+
if(!empty($params['scope'])) {
|
34 |
+
$this->scope = $params['scope'];
|
35 |
+
}
|
36 |
+
|
37 |
+
if(!empty($params['state'])) {
|
38 |
+
$this->state = $params['state'];
|
39 |
+
}
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
public function isEnabled()
|
44 |
+
{
|
45 |
+
return (bool) $this->isEnabled;
|
46 |
+
}
|
47 |
+
|
48 |
+
public function getClientId()
|
49 |
+
{
|
50 |
+
return $this->clientId;
|
51 |
+
}
|
52 |
+
|
53 |
+
public function getClientSecret()
|
54 |
+
{
|
55 |
+
return $this->clientSecret;
|
56 |
+
}
|
57 |
+
|
58 |
+
public function getRedirectUri()
|
59 |
+
{
|
60 |
+
return $this->redirectUri;
|
61 |
+
}
|
62 |
+
|
63 |
+
public function getScope()
|
64 |
+
{
|
65 |
+
return $this->scope;
|
66 |
+
}
|
67 |
+
|
68 |
+
public function getState()
|
69 |
+
{
|
70 |
+
return $this->state;
|
71 |
+
}
|
72 |
+
|
73 |
+
public function setState($state)
|
74 |
+
{
|
75 |
+
$this->state = $state;
|
76 |
+
}
|
77 |
+
|
78 |
+
public function setAccessToken($token)
|
79 |
+
{
|
80 |
+
$this->token = json_decode($token);
|
81 |
+
}
|
82 |
+
|
83 |
+
public function getAccessToken()
|
84 |
+
{
|
85 |
+
if(empty($this->token)) {
|
86 |
+
$this->fetchAccessToken();
|
87 |
+
}
|
88 |
+
|
89 |
+
return json_encode($this->token);
|
90 |
+
}
|
91 |
+
|
92 |
+
public function createAuthUrl()
|
93 |
+
{
|
94 |
+
$url =
|
95 |
+
self::OAUTH2_AUTH_URI.'?'.
|
96 |
+
http_build_query(
|
97 |
+
array(
|
98 |
+
'client_id' => $this->clientId,
|
99 |
+
'redirect_uri' => $this->redirectUri,
|
100 |
+
'state' => $this->state,
|
101 |
+
'scope' => implode(',', $this->scope)
|
102 |
+
)
|
103 |
+
);
|
104 |
+
return $url;
|
105 |
+
}
|
106 |
+
|
107 |
+
public function api($endpoint, $method = 'GET', $params = array())
|
108 |
+
{
|
109 |
+
if(empty($this->token)) {
|
110 |
+
$this->fetchAccessToken();
|
111 |
+
}
|
112 |
+
|
113 |
+
$url = self::OAUTH2_SERVICE_URI.$endpoint;
|
114 |
+
|
115 |
+
$method = strtoupper($method);
|
116 |
+
|
117 |
+
$params = array_merge(array(
|
118 |
+
'access_token' => $this->token->access_token
|
119 |
+
), $params);
|
120 |
+
|
121 |
+
$response = $this->_httpRequest($url, $method, $params);
|
122 |
+
|
123 |
+
return $response;
|
124 |
+
}
|
125 |
+
|
126 |
+
protected function fetchAccessToken()
|
127 |
+
{
|
128 |
+
if(empty($_REQUEST['code'])) {
|
129 |
+
throw new Exception(
|
130 |
+
Mage::helper('inchoo_socialconnect')
|
131 |
+
->__('Unable to retrieve access code.')
|
132 |
+
);
|
133 |
+
}
|
134 |
+
|
135 |
+
$response = $this->_httpRequest(
|
136 |
+
self::OAUTH2_TOKEN_URI,
|
137 |
+
'POST',
|
138 |
+
array(
|
139 |
+
'code' => $_REQUEST['code'],
|
140 |
+
'redirect_uri' => $this->redirectUri,
|
141 |
+
'client_id' => $this->clientId,
|
142 |
+
'client_secret' => $this->clientSecret,
|
143 |
+
'grant_type' => 'authorization_code'
|
144 |
+
)
|
145 |
+
);
|
146 |
+
|
147 |
+
$this->token = $response;
|
148 |
+
}
|
149 |
+
|
150 |
+
protected function _httpRequest($url, $method = 'GET', $params = array())
|
151 |
+
{
|
152 |
+
$client = new Zend_Http_Client($url, array('timeout' => 60));
|
153 |
+
|
154 |
+
switch ($method) {
|
155 |
+
case 'GET':
|
156 |
+
$client->setParameterGet($params);
|
157 |
+
break;
|
158 |
+
case 'POST':
|
159 |
+
$client->setParameterPost($params);
|
160 |
+
break;
|
161 |
+
case 'DELETE':
|
162 |
+
$client->setParameterGet($params);
|
163 |
+
break;
|
164 |
+
default:
|
165 |
+
throw new Exception(
|
166 |
+
Mage::helper('inchoo_socialconnect')
|
167 |
+
->__('Required HTTP method is not supported.')
|
168 |
+
);
|
169 |
+
}
|
170 |
+
|
171 |
+
$response = $client->request($method);
|
172 |
+
|
173 |
+
Mage::log($response->getStatus().' - '. $response->getBody());
|
174 |
+
|
175 |
+
$decoded_response = json_decode($response->getBody());
|
176 |
+
|
177 |
+
/*
|
178 |
+
* Per http://tools.ietf.org/html/draft-ietf-oauth-v2-27#section-5.1
|
179 |
+
* Facebook should return data using the "application/json" media type.
|
180 |
+
* Facebook violates OAuth2 specification and returns string. If this
|
181 |
+
* ever gets fixed, following condition will not be used anymore.
|
182 |
+
*/
|
183 |
+
if(empty($decoded_response)) {
|
184 |
+
$parsed_response = array();
|
185 |
+
parse_str($response->getBody(), $parsed_response);
|
186 |
+
|
187 |
+
$decoded_response = json_decode(json_encode($parsed_response));
|
188 |
+
}
|
189 |
+
|
190 |
+
if($response->isError()) {
|
191 |
+
$status = $response->getStatus();
|
192 |
+
if(($status == 400 || $status == 401)) {
|
193 |
+
if(isset($decoded_response->error->message)) {
|
194 |
+
$message = $decoded_response->error->message;
|
195 |
+
} else {
|
196 |
+
$message = Mage::helper('inchoo_socialconnect')
|
197 |
+
->__('Unspecified OAuth error occurred.');
|
198 |
+
}
|
199 |
+
|
200 |
+
throw new Inchoo_SocialConnect_FacebookOAuthException($message);
|
201 |
+
} else {
|
202 |
+
$message = sprintf(
|
203 |
+
Mage::helper('inchoo_socialconnect')
|
204 |
+
->__('HTTP error %d occurred while issuing request.'),
|
205 |
+
$status
|
206 |
+
);
|
207 |
+
|
208 |
+
throw new Exception($message);
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
+
return $decoded_response;
|
213 |
+
}
|
214 |
+
|
215 |
+
protected function _isEnabled()
|
216 |
+
{
|
217 |
+
return $this->_getStoreConfig(self::XML_PATH_ENABLED);
|
218 |
+
}
|
219 |
+
|
220 |
+
protected function _getClientId()
|
221 |
+
{
|
222 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_ID);
|
223 |
+
}
|
224 |
+
|
225 |
+
protected function _getClientSecret()
|
226 |
+
{
|
227 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_SECRET);
|
228 |
+
}
|
229 |
+
|
230 |
+
protected function _getStoreConfig($xmlPath)
|
231 |
+
{
|
232 |
+
return Mage::getStoreConfig($xmlPath, Mage::app()->getStore()->getId());
|
233 |
+
}
|
234 |
+
|
235 |
+
}
|
236 |
+
|
237 |
+
class Inchoo_SocialConnect_FacebookOAuthException extends Exception
|
238 |
+
{}
|
app/code/local/Conversionbug/SocialPopup/Model/Facebook/Userinfo.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Model_Facebook_Userinfo
|
4 |
+
{
|
5 |
+
protected $client = null;
|
6 |
+
protected $userInfo = null;
|
7 |
+
|
8 |
+
public function __construct() {
|
9 |
+
if(!Mage::getSingleton('customer/session')->isLoggedIn())
|
10 |
+
return;
|
11 |
+
|
12 |
+
$this->client = Mage::getSingleton('inchoo_socialconnect/facebook_client');
|
13 |
+
if(!($this->client->isEnabled())) {
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
|
17 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
18 |
+
if(($socialconnectFid = $customer->getInchooSocialconnectFid()) &&
|
19 |
+
($socialconnectFtoken = $customer->getInchooSocialconnectFtoken())) {
|
20 |
+
$helper = Mage::helper('inchoo_socialconnect/facebook');
|
21 |
+
|
22 |
+
try{
|
23 |
+
$this->client->setAccessToken($socialconnectFtoken);
|
24 |
+
$this->userInfo = $this->client->api(
|
25 |
+
'/me',
|
26 |
+
'GET',
|
27 |
+
array(
|
28 |
+
'fields' =>
|
29 |
+
'id,name,first_name,last_name,link,birthday,gender,email,picture.type(large)'
|
30 |
+
)
|
31 |
+
);
|
32 |
+
|
33 |
+
} catch(FacebookOAuthException $e) {
|
34 |
+
$helper->disconnect($customer);
|
35 |
+
Mage::getSingleton('core/session')->addNotice($e->getMessage());
|
36 |
+
} catch(Exception $e) {
|
37 |
+
$helper->disconnect($customer);
|
38 |
+
Mage::getSingleton('core/session')->addError($e->getMessage());
|
39 |
+
}
|
40 |
+
|
41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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Inchoo
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Please do not edit or add to this file if you wish to upgrade
|
18 |
+
* Magento or this extension to newer versions in the future.
|
19 |
+
** Inchoo *give their best to conform to
|
20 |
+
* "non-obtrusive, best Magento practices" style of coding.
|
21 |
+
* However,* Inchoo *guarantee functional accuracy of
|
22 |
+
* specific extension behavior. Additionally we take no responsibility
|
23 |
+
* for any possible issue(s) resulting from extension usage.
|
24 |
+
* We reserve the full right not to provide any kind of support for our free extensions.
|
25 |
+
* Thank you for your understanding.
|
26 |
+
*
|
27 |
+
* @category Inchoo
|
28 |
+
* @package SocialConnect
|
29 |
+
* @author Marko Martinović <marko.martinovic@inchoo.net>
|
30 |
+
* @copyright Copyright (c) Inchoo (http://inchoo.net/)
|
31 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
32 |
+
*/
|
33 |
+
|
34 |
+
class ConversionBug_SocialPopup_Model_Google_Client
|
35 |
+
{
|
36 |
+
const REDIRECT_URI_ROUTE = 'socialconnect/google/connect';
|
37 |
+
|
38 |
+
const XML_PATH_ENABLED = 'socialpopup/gmail/enable';
|
39 |
+
const XML_PATH_CLIENT_ID = 'customer/inchoo_socialconnect_google/client_id';
|
40 |
+
const XML_PATH_CLIENT_SECRET = 'customer/inchoo_socialconnect_google/client_secret';
|
41 |
+
|
42 |
+
const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
|
43 |
+
const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token';
|
44 |
+
const OAUTH2_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth';
|
45 |
+
const OAUTH2_SERVICE_URI = 'https://www.googleapis.com/oauth2/v2';
|
46 |
+
|
47 |
+
protected $isEnabled = null;
|
48 |
+
protected $clientId = null;
|
49 |
+
protected $clientSecret = null;
|
50 |
+
protected $redirectUri = null;
|
51 |
+
protected $state = '';
|
52 |
+
protected $scope = array(
|
53 |
+
'https://www.googleapis.com/auth/userinfo.profile',
|
54 |
+
'https://www.googleapis.com/auth/userinfo.email',
|
55 |
+
);
|
56 |
+
protected $access = 'offline';
|
57 |
+
protected $prompt = 'auto';
|
58 |
+
|
59 |
+
protected $token = null;
|
60 |
+
|
61 |
+
public function __construct($params = array())
|
62 |
+
{
|
63 |
+
if(($this->isEnabled = $this->_isEnabled())) {
|
64 |
+
$this->clientId = $this->_getClientId();
|
65 |
+
$this->clientSecret = $this->_getClientSecret();
|
66 |
+
$this->redirectUri = Mage::getModel('core/url')->sessionUrlVar(
|
67 |
+
Mage::getUrl(self::REDIRECT_URI_ROUTE)
|
68 |
+
);
|
69 |
+
|
70 |
+
if(!empty($params['scope'])) {
|
71 |
+
$this->scope = $params['scope'];
|
72 |
+
}
|
73 |
+
|
74 |
+
if(!empty($params['state'])) {
|
75 |
+
$this->state = $params['state'];
|
76 |
+
}
|
77 |
+
|
78 |
+
if(!empty($params['access'])) {
|
79 |
+
$this->access = $params['access'];
|
80 |
+
}
|
81 |
+
|
82 |
+
if(!empty($params['prompt'])) {
|
83 |
+
$this->prompt = $params['prompt'];
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
public function isEnabled()
|
89 |
+
{
|
90 |
+
return (bool) $this->isEnabled;
|
91 |
+
}
|
92 |
+
|
93 |
+
public function getClientId()
|
94 |
+
{
|
95 |
+
return $this->clientId;
|
96 |
+
}
|
97 |
+
|
98 |
+
public function getClientSecret()
|
99 |
+
{
|
100 |
+
return $this->clientSecret;
|
101 |
+
}
|
102 |
+
|
103 |
+
public function getRedirectUri()
|
104 |
+
{
|
105 |
+
return $this->redirectUri;
|
106 |
+
}
|
107 |
+
|
108 |
+
public function getScope()
|
109 |
+
{
|
110 |
+
return $this->scope;
|
111 |
+
}
|
112 |
+
|
113 |
+
public function getState()
|
114 |
+
{
|
115 |
+
return $this->state;
|
116 |
+
}
|
117 |
+
|
118 |
+
public function setState($state)
|
119 |
+
{
|
120 |
+
$this->state = $state;
|
121 |
+
}
|
122 |
+
|
123 |
+
public function getAccess()
|
124 |
+
{
|
125 |
+
return $this->access;
|
126 |
+
}
|
127 |
+
|
128 |
+
public function setAccess($access)
|
129 |
+
{
|
130 |
+
$this->access = $access;
|
131 |
+
}
|
132 |
+
|
133 |
+
public function getPrompt()
|
134 |
+
{
|
135 |
+
return $this->prompt;
|
136 |
+
}
|
137 |
+
|
138 |
+
public function setPrompt($prompt)
|
139 |
+
{
|
140 |
+
$this->access = $prompt;
|
141 |
+
}
|
142 |
+
|
143 |
+
public function setAccessToken($token)
|
144 |
+
{
|
145 |
+
$this->token = json_decode($token);
|
146 |
+
}
|
147 |
+
|
148 |
+
public function getAccessToken()
|
149 |
+
{
|
150 |
+
if(empty($this->token)) {
|
151 |
+
$this->fetchAccessToken();
|
152 |
+
} else if($this->isAccessTokenExpired()) {
|
153 |
+
$this->refreshAccessToken();
|
154 |
+
}
|
155 |
+
|
156 |
+
return json_encode($this->token);
|
157 |
+
}
|
158 |
+
|
159 |
+
public function createAuthUrl()
|
160 |
+
{
|
161 |
+
$url =
|
162 |
+
self::OAUTH2_AUTH_URI.'?'.
|
163 |
+
http_build_query(
|
164 |
+
array(
|
165 |
+
'response_type' => 'code',
|
166 |
+
'redirect_uri' => $this->redirectUri,
|
167 |
+
'client_id' => $this->clientId,
|
168 |
+
'scope' => implode(' ', $this->scope),
|
169 |
+
'state' => $this->state,
|
170 |
+
'access_type' => $this->access,
|
171 |
+
'approval_prompt' => $this->prompt
|
172 |
+
)
|
173 |
+
);
|
174 |
+
return $url;
|
175 |
+
}
|
176 |
+
|
177 |
+
public function api($endpoint, $method = 'GET', $params = array())
|
178 |
+
{
|
179 |
+
if(empty($this->token)) {
|
180 |
+
$this->fetchAccessToken();
|
181 |
+
} else if($this->isAccessTokenExpired()) {
|
182 |
+
$this->refreshAccessToken();
|
183 |
+
}
|
184 |
+
|
185 |
+
$url = self::OAUTH2_SERVICE_URI.$endpoint;
|
186 |
+
|
187 |
+
$method = strtoupper($method);
|
188 |
+
|
189 |
+
$params = array_merge(array(
|
190 |
+
'access_token' => $this->token->access_token
|
191 |
+
), $params);
|
192 |
+
|
193 |
+
$response = $this->_httpRequest($url, $method, $params);
|
194 |
+
|
195 |
+
return $response;
|
196 |
+
}
|
197 |
+
|
198 |
+
public function revokeToken()
|
199 |
+
{
|
200 |
+
if(empty($this->token)) {
|
201 |
+
throw new Exception(
|
202 |
+
Mage::helper('inchoo_socialconnect')
|
203 |
+
->__('No access token available.')
|
204 |
+
);
|
205 |
+
}
|
206 |
+
|
207 |
+
if(empty($this->token->refresh_token)) {
|
208 |
+
throw new Exception(
|
209 |
+
Mage::helper('inchoo_socialconnect')
|
210 |
+
->__('No refresh token, nothing to revoke.')
|
211 |
+
);
|
212 |
+
}
|
213 |
+
|
214 |
+
$this->_httpRequest(
|
215 |
+
self::OAUTH2_REVOKE_URI,
|
216 |
+
'POST',
|
217 |
+
array(
|
218 |
+
'token' => $this->token->refresh_token
|
219 |
+
)
|
220 |
+
);
|
221 |
+
}
|
222 |
+
|
223 |
+
protected function fetchAccessToken()
|
224 |
+
{
|
225 |
+
if(empty($_REQUEST['code'])) {
|
226 |
+
throw new Exception(
|
227 |
+
Mage::helper('inchoo_socialconnect')
|
228 |
+
->__('Unable to retrieve access code.')
|
229 |
+
);
|
230 |
+
}
|
231 |
+
|
232 |
+
$response = $this->_httpRequest(
|
233 |
+
self::OAUTH2_TOKEN_URI,
|
234 |
+
'POST',
|
235 |
+
array(
|
236 |
+
'code' => $_REQUEST['code'],
|
237 |
+
'redirect_uri' => $this->redirectUri,
|
238 |
+
'client_id' => $this->clientId,
|
239 |
+
'client_secret' => $this->clientSecret,
|
240 |
+
'grant_type' => 'authorization_code'
|
241 |
+
)
|
242 |
+
);
|
243 |
+
|
244 |
+
$response->created = time();
|
245 |
+
|
246 |
+
$this->token = $response;
|
247 |
+
}
|
248 |
+
|
249 |
+
protected function refreshAccessToken()
|
250 |
+
{
|
251 |
+
if(empty($this->token->refresh_token)) {
|
252 |
+
throw new Exception(
|
253 |
+
Mage::helper('inchoo_socialconnect')
|
254 |
+
->__('No refresh token, unable to refresh access token.')
|
255 |
+
);
|
256 |
+
}
|
257 |
+
|
258 |
+
$response = $this->_httpRequest(
|
259 |
+
self::OAUTH2_TOKEN_URI,
|
260 |
+
'POST',
|
261 |
+
array(
|
262 |
+
'client_id' => $this->clientId,
|
263 |
+
'client_secret' => $this->clientSecret,
|
264 |
+
'refresh_token' => $this->token->refresh_token,
|
265 |
+
'grant_type' => 'refresh_token'
|
266 |
+
)
|
267 |
+
);
|
268 |
+
|
269 |
+
$this->token->access_token = $response->access_token;
|
270 |
+
$this->token->expires_in = $response->expires_in;
|
271 |
+
$this->token->created = time();
|
272 |
+
}
|
273 |
+
|
274 |
+
protected function isAccessTokenExpired() {
|
275 |
+
// If the token is set to expire in the next 30 seconds.
|
276 |
+
$expired = ($this->token->created + ($this->token->expires_in - 30)) < time();
|
277 |
+
|
278 |
+
return $expired;
|
279 |
+
}
|
280 |
+
|
281 |
+
protected function _httpRequest($url, $method = 'GET', $params = array())
|
282 |
+
{
|
283 |
+
$client = new Zend_Http_Client($url, array('timeout' => 60));
|
284 |
+
|
285 |
+
switch ($method) {
|
286 |
+
case 'GET':
|
287 |
+
$client->setParameterGet($params);
|
288 |
+
break;
|
289 |
+
case 'POST':
|
290 |
+
$client->setParameterPost($params);
|
291 |
+
break;
|
292 |
+
case 'DELETE':
|
293 |
+
break;
|
294 |
+
default:
|
295 |
+
throw new Exception(
|
296 |
+
Mage::helper('inchoo_socialconnect')
|
297 |
+
->__('Required HTTP method is not supported.')
|
298 |
+
);
|
299 |
+
}
|
300 |
+
|
301 |
+
$response = $client->request($method);
|
302 |
+
|
303 |
+
Mage::log($response->getStatus().' - '. $response->getBody());
|
304 |
+
|
305 |
+
$decoded_response = json_decode($response->getBody());
|
306 |
+
|
307 |
+
if($response->isError()) {
|
308 |
+
$status = $response->getStatus();
|
309 |
+
if(($status == 400 || $status == 401)) {
|
310 |
+
if(isset($decoded_response->error->message)) {
|
311 |
+
$message = $decoded_response->error->message;
|
312 |
+
} else {
|
313 |
+
$message = Mage::helper('inchoo_socialconnect')
|
314 |
+
->__('Unspecified OAuth error occurred.');
|
315 |
+
}
|
316 |
+
|
317 |
+
throw new Inchoo_SocialConnect_GoogleOAuthException($message);
|
318 |
+
} else {
|
319 |
+
$message = sprintf(
|
320 |
+
Mage::helper('inchoo_socialconnect')
|
321 |
+
->__('HTTP error %d occurred while issuing request.'),
|
322 |
+
$status
|
323 |
+
);
|
324 |
+
|
325 |
+
throw new Exception($message);
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
+
return $decoded_response;
|
330 |
+
}
|
331 |
+
|
332 |
+
protected function _isEnabled()
|
333 |
+
{
|
334 |
+
return $this->_getStoreConfig(self::XML_PATH_ENABLED);
|
335 |
+
}
|
336 |
+
|
337 |
+
protected function _getClientId()
|
338 |
+
{
|
339 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_ID);
|
340 |
+
}
|
341 |
+
|
342 |
+
protected function _getClientSecret()
|
343 |
+
{
|
344 |
+
return $this->_getStoreConfig(self::XML_PATH_CLIENT_SECRET);
|
345 |
+
}
|
346 |
+
|
347 |
+
protected function _getStoreConfig($xmlPath)
|
348 |
+
{
|
349 |
+
return Mage::getStoreConfig($xmlPath, Mage::app()->getStore()->getId());
|
350 |
+
}
|
351 |
+
|
352 |
+
}
|
353 |
+
|
354 |
+
class Inchoo_SocialConnect_GoogleOAuthException extends Exception
|
355 |
+
{}
|
app/code/local/Conversionbug/SocialPopup/Model/Resource/Setup.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Model_Resource_Setup extends Mage_Eav_Model_Entity_Setup
|
4 |
+
{
|
5 |
+
protected $_customerAttributes = array();
|
6 |
+
|
7 |
+
public function setCustomerAttributes($customerAttributes)
|
8 |
+
{
|
9 |
+
$this->_customerAttributes = $customerAttributes;
|
10 |
+
|
11 |
+
return $this;
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Add our custom attributes
|
16 |
+
*
|
17 |
+
* @return Mage_Eav_Model_Entity_Setup
|
18 |
+
*/
|
19 |
+
public function installCustomerAttributes()
|
20 |
+
{
|
21 |
+
foreach ($this->_customerAttributes as $code => $attr) {
|
22 |
+
$this->addAttribute('customer', $code, $attr);
|
23 |
+
}
|
24 |
+
|
25 |
+
return $this;
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Remove custom attributes
|
30 |
+
*
|
31 |
+
* @return Mage_Eav_Model_Entity_Setup
|
32 |
+
*/
|
33 |
+
public function removeCustomerAttributes()
|
34 |
+
{
|
35 |
+
foreach ($this->_customerAttributes as $code => $attr) {
|
36 |
+
$this->removeAttribute('customer', $code);
|
37 |
+
}
|
38 |
+
|
39 |
+
return $this;
|
40 |
+
}
|
41 |
+
}
|
app/code/local/Conversionbug/SocialPopup/controllers/AccountController.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once Mage::getModuleDir('controllers', 'Mage_Customer') . DS . 'AccountController.php';
|
4 |
+
|
5 |
+
class ConversionBug_SocialPopup_AccountController extends Mage_Customer_AccountController {
|
6 |
+
|
7 |
+
public function createPostAction() {
|
8 |
+
|
9 |
+
$params = $this->getRequest()->getParams();
|
10 |
+
//echo "<pre>";print_r($params);exit;
|
11 |
+
if (isset($params['cb-registartion'])) {
|
12 |
+
$response = array();
|
13 |
+
$session = $this->_getSession();
|
14 |
+
if ($session->isLoggedIn()) {
|
15 |
+
$this->_redirect('*/*/');
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
$session->setEscapeMessages(true); // prevent XSS injection in user input
|
19 |
+
//$customer = $this->_getCustomer();
|
20 |
+
$customer = Mage::getModel("customer/customer");
|
21 |
+
$websiteId = Mage::app()->getWebsite()->getId();
|
22 |
+
$store = Mage::app()->getStore();
|
23 |
+
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
|
24 |
+
$customer->loadByEmail($params['email']);
|
25 |
+
if ($customer->getId()) {
|
26 |
+
$response['msg'] = 'emailisexist';
|
27 |
+
$this->_forward('loginpost');
|
28 |
+
//$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
//setting first & lastname as email first part
|
33 |
+
$parts = explode('@', $params['email']);
|
34 |
+
$params['firstname'] = $params['lastname'] = $parts[0];
|
35 |
+
|
36 |
+
|
37 |
+
$customer->setWebsiteId($websiteId)
|
38 |
+
->setStore($store)
|
39 |
+
->setFirstname($params['firstname'])
|
40 |
+
->setLastname($params['lastname'])
|
41 |
+
->setCbSocialpopupCustomer(1)
|
42 |
+
->setEmail($params['email'])
|
43 |
+
->setPassword($params['password']);
|
44 |
+
|
45 |
+
// Try create customer
|
46 |
+
try {
|
47 |
+
$customer->save();
|
48 |
+
$customer->setConfirmation(null);
|
49 |
+
$customer->save();
|
50 |
+
$response['msg'] = 'success';
|
51 |
+
$storeId = $customer->getSendemailStoreId();
|
52 |
+
$customer->sendNewAccountEmail('registered', '', $storeId);
|
53 |
+
|
54 |
+
Mage::getSingleton('customer/session')->loginById($customer->getId());
|
55 |
+
|
56 |
+
$this->_redirect('*/*/');
|
57 |
+
//$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
58 |
+
return;
|
59 |
+
} catch (Exception $e) {
|
60 |
+
$response['msg'] = 'error' . $e->getMessage();
|
61 |
+
$this->_redirect('*/*/');
|
62 |
+
//$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
} else {
|
66 |
+
return parent::createPostAction();
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Login post action
|
72 |
+
*/
|
73 |
+
public function loginPostAction() {
|
74 |
+
|
75 |
+
|
76 |
+
if ($this->_getSession()->isLoggedIn()) {
|
77 |
+
$this->_redirect('*/*/');
|
78 |
+
return;
|
79 |
+
}
|
80 |
+
$session = $this->_getSession();
|
81 |
+
|
82 |
+
if ($this->getRequest()->isPost()) {
|
83 |
+
$login = $this->getRequest()->getPost();
|
84 |
+
if (!empty($login['email']) && !empty($login['password'])) {
|
85 |
+
try {
|
86 |
+
$session->login($login['email'], $login['password']);
|
87 |
+
if ($session->getCustomer()->getIsJustConfirmed()) {
|
88 |
+
$this->_welcomeCustomer($session->getCustomer(), true);
|
89 |
+
}
|
90 |
+
} catch (Mage_Core_Exception $e) {
|
91 |
+
switch ($e->getCode()) {
|
92 |
+
case Mage_Customer_Model_Customer::EXCEPTION_EMAIL_NOT_CONFIRMED:
|
93 |
+
$value = $this->_getHelper('customer')->getEmailConfirmationUrl($login['email']);
|
94 |
+
$message = $this->_getHelper('customer')->__('This account is not confirmed. <a href="%s">Click here</a> to resend confirmation email.', $value);
|
95 |
+
break;
|
96 |
+
case Mage_Customer_Model_Customer::EXCEPTION_INVALID_EMAIL_OR_PASSWORD:
|
97 |
+
$message = $e->getMessage();
|
98 |
+
break;
|
99 |
+
default:
|
100 |
+
$message = $e->getMessage();
|
101 |
+
}
|
102 |
+
$session->addError($message);
|
103 |
+
$session->setUsername($login['email']);
|
104 |
+
} catch (Exception $e) {
|
105 |
+
// Mage::logException($e); // PA DSS violation: this exception log can disclose customer password
|
106 |
+
}
|
107 |
+
} else {
|
108 |
+
return parent::loginPostAction();
|
109 |
+
//$session->addError($this->__('Login and password are required.'));
|
110 |
+
}
|
111 |
+
}
|
112 |
+
|
113 |
+
$this->_loginPostRedirect();
|
114 |
+
}
|
115 |
+
|
116 |
+
}
|
app/code/local/Conversionbug/SocialPopup/controllers/AccountController.php.new
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once Mage::getModuleDir('controllers', 'Mage_Customer') . DS . 'AccountController.php';
|
4 |
+
|
5 |
+
class ConversionBug_SocialPopup_AccountController extends Mage_Customer_AccountController {
|
6 |
+
|
7 |
+
public function createPostAction() {
|
8 |
+
|
9 |
+
$params = $this->getRequest()->getParams();
|
10 |
+
//echo "<pre>";print_r($params);exit;
|
11 |
+
if (isset($params['cb-registartion'])) {
|
12 |
+
$response = array();
|
13 |
+
$session = $this->_getSession();
|
14 |
+
if ($session->isLoggedIn()) {
|
15 |
+
$this->_redirect('*/*/');
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
$session->setEscapeMessages(true); // prevent XSS injection in user input
|
19 |
+
//$customer = $this->_getCustomer();
|
20 |
+
$customer = Mage::getModel("customer/customer");
|
21 |
+
$websiteId = Mage::app()->getWebsite()->getId();
|
22 |
+
$store = Mage::app()->getStore();
|
23 |
+
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
|
24 |
+
$customer->loadByEmail($params['email']);
|
25 |
+
if ($customer->getId()) {
|
26 |
+
$response['msg'] = 'emailisexist';
|
27 |
+
$this->_forward('loginpost');
|
28 |
+
//$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
//setting first & lastname as email first part
|
33 |
+
$parts = explode('@', $params['email']);
|
34 |
+
$params['firstname'] = $params['lastname'] = $parts[0];
|
35 |
+
|
36 |
+
|
37 |
+
$customer->setWebsiteId($websiteId)
|
38 |
+
->setStore($store)
|
39 |
+
->setFirstname($params['firstname'])
|
40 |
+
->setLastname($params['lastname'])
|
41 |
+
->setCbSocialpopupCustomer(1)
|
42 |
+
->setEmail($params['email'])
|
43 |
+
->setPassword($params['password']);
|
44 |
+
|
45 |
+
// Try create customer
|
46 |
+
try {
|
47 |
+
$customer->save();
|
48 |
+
$customer->setConfirmation(null);
|
49 |
+
$customer->save();
|
50 |
+
$response['status'] = 'success';
|
51 |
+
$response['msg'] = 'success';
|
52 |
+
$storeId = $customer->getSendemailStoreId();
|
53 |
+
$customer->sendNewAccountEmail('registered', '', $storeId);
|
54 |
+
|
55 |
+
Mage::getSingleton('customer/session')->loginById($customer->getId());
|
56 |
+
|
57 |
+
//$this->_redirect('*/*/');
|
58 |
+
$this->getResponse()->setHeader('Content-Type', 'application/json')->setBody(Mage::helper('core')->jsonEncode($response));
|
59 |
+
return;
|
60 |
+
} catch (Exception $e) {
|
61 |
+
$response['status'] = 'error';
|
62 |
+
$response['msg'] = 'error' . $e->getMessage();
|
63 |
+
//$this->_redirect('*/*/');
|
64 |
+
$this->getResponse()->setHeader('Content-Type', 'application/json')->setBody(Mage::helper('core')->jsonEncode($response));
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
} else {
|
68 |
+
return parent::createPostAction();
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Login post action
|
74 |
+
*/
|
75 |
+
public function loginPostAction() {
|
76 |
+
|
77 |
+
|
78 |
+
if ($this->_getSession()->isLoggedIn()) {
|
79 |
+
$this->_redirect('*/*/');
|
80 |
+
return;
|
81 |
+
}
|
82 |
+
$session = $this->_getSession();
|
83 |
+
$response = array();
|
84 |
+
if ($this->getRequest()->isPost()) {
|
85 |
+
$login = $this->getRequest()->getPost();
|
86 |
+
if (!empty($login['email']) && !empty($login['password'])) {
|
87 |
+
try {
|
88 |
+
$session->login($login['email'], $login['password']);
|
89 |
+
if ($session->getCustomer()->getIsJustConfirmed()) {
|
90 |
+
$this->_welcomeCustomer($session->getCustomer(), true);
|
91 |
+
}
|
92 |
+
$response['status'] = 'success';
|
93 |
+
$this->getResponse()->setHeader('Content-Type', 'application/json')->setBody(Mage::helper('core')->jsonEncode($response));return;
|
94 |
+
} catch (Mage_Core_Exception $e) {
|
95 |
+
switch ($e->getCode()) {
|
96 |
+
case Mage_Customer_Model_Customer::EXCEPTION_EMAIL_NOT_CONFIRMED:
|
97 |
+
$value = $this->_getHelper('customer')->getEmailConfirmationUrl($login['email']);
|
98 |
+
$message = $this->_getHelper('customer')->__('This account is not confirmed. <a href="%s">Click here</a> to resend confirmation email.', $value);
|
99 |
+
break;
|
100 |
+
case Mage_Customer_Model_Customer::EXCEPTION_INVALID_EMAIL_OR_PASSWORD:
|
101 |
+
$response['status'] = "invalid";
|
102 |
+
$response['msg'] = $e->getMessage();
|
103 |
+
//$message = $e->getMessage();
|
104 |
+
break;
|
105 |
+
default:
|
106 |
+
$message = $e->getMessage();
|
107 |
+
}
|
108 |
+
$session->addError($message);
|
109 |
+
$session->setUsername($login['email']);
|
110 |
+
$this->getResponse()->setHeader('Content-Type', 'application/json')->setBody(Mage::helper('core')->jsonEncode($response));return;
|
111 |
+
} catch (Exception $e) {
|
112 |
+
// Mage::logException($e); // PA DSS violation: this exception log can disclose customer password
|
113 |
+
}
|
114 |
+
} else {
|
115 |
+
return parent::loginPostAction();
|
116 |
+
//$session->addError($this->__('Login and password are required.'));
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
$this->_loginPostRedirect();
|
121 |
+
}
|
122 |
+
|
123 |
+
}
|
app/code/local/Conversionbug/SocialPopup/controllers/Adminhtml/SocialpopupController.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ConversionBug_SocialPopup_Adminhtml_SocialpopupController extends Mage_Adminhtml_Controller_action {
|
4 |
+
|
5 |
+
protected $_countTotals = true;
|
6 |
+
|
7 |
+
protected function _initAction() {
|
8 |
+
$this->loadLayout()
|
9 |
+
->_setActiveMenu('socialpopup/items')
|
10 |
+
->_addBreadcrumb(Mage::helper('adminhtml')->__('CB Dashboard'), Mage::helper('adminhtml')->__('CB Dashboard'));
|
11 |
+
|
12 |
+
return $this;
|
13 |
+
}
|
14 |
+
|
15 |
+
public function indexAction() {
|
16 |
+
$this->_initAction()
|
17 |
+
->renderLayout();
|
18 |
+
}
|
19 |
+
|
20 |
+
public function exportCsvAction() {
|
21 |
+
$fileName = 'socialpopup.csv';
|
22 |
+
$content = $this->getLayout()->createBlock('socialpopup/adminhtml_socialpopup_grid')
|
23 |
+
->getCsv();
|
24 |
+
|
25 |
+
$this->_sendUploadResponse($fileName, $content);
|
26 |
+
}
|
27 |
+
|
28 |
+
public function exportXmlAction() {
|
29 |
+
$fileName = 'socialpopup.xml';
|
30 |
+
$content = $this->getLayout()->createBlock('socialpopup/adminhtml_socialpopup_grid')
|
31 |
+
->getXml();
|
32 |
+
|
33 |
+
$this->_sendUploadResponse($fileName, $content);
|
34 |
+
}
|
35 |
+
|
36 |
+
protected function _sendUploadResponse($fileName, $content, $contentType = 'application/octet-stream') {
|
37 |
+
$response = $this->getResponse();
|
38 |
+
$response->setHeader('HTTP/1.1 200 OK', '');
|
39 |
+
$response->setHeader('Pragma', 'public', true);
|
40 |
+
$response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
|
41 |
+
$response->setHeader('Content-Disposition', 'attachment; filename=' . $fileName);
|
42 |
+
$response->setHeader('Last-Modified', date('r'));
|
43 |
+
$response->setHeader('Accept-Ranges', 'bytes');
|
44 |
+
$response->setHeader('Content-Length', strlen($content));
|
45 |
+
$response->setHeader('Content-type', $contentType);
|
46 |
+
$response->setBody($content);
|
47 |
+
$response->sendResponse();
|
48 |
+
die;
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/local/Conversionbug/SocialPopup/controllers/IndexController.php
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$includePath = Mage::getBaseDir() . "/lib/SocialLogin/Google_Client.php";
|
4 |
+
require_once $includePath;
|
5 |
+
|
6 |
+
$includePath = Mage::getBaseDir() . "/lib/SocialLogin/contrib/Google_Oauth2Service.php";
|
7 |
+
require_once $includePath;
|
8 |
+
|
9 |
+
$includePath = Mage::getBaseDir() . "/lib/SocialLogin/facebook/facebook.php";
|
10 |
+
require_once $includePath;
|
11 |
+
|
12 |
+
class ConversionBug_SocialPopup_IndexController extends Mage_Core_Controller_Front_Action {
|
13 |
+
|
14 |
+
public function redirecUriAction() {
|
15 |
+
$data = $this->getRequest()->getParams();
|
16 |
+
|
17 |
+
if (isset($data['code'])) {
|
18 |
+
$gClient = new Google_Client();
|
19 |
+
$gClient->setApplicationName('Login to ' . Mage::getUrl());
|
20 |
+
$gClient->setClientId(Mage::helper('socialpopup/google')->_getClientId());
|
21 |
+
$gClient->setClientSecret(Mage::helper('socialpopup/google')->_getClientSecret());
|
22 |
+
$gClient->setRedirectUri(Mage::getUrl('socialpopup/index/redirecUri'));
|
23 |
+
$google_oauthV2 = new Google_Oauth2Service($gClient);
|
24 |
+
|
25 |
+
$gClient->authenticate($_GET['code']);
|
26 |
+
|
27 |
+
$url = Mage::getUrl('customer/account');
|
28 |
+
if ($gClient->getAccessToken()) {
|
29 |
+
$user = $google_oauthV2->userinfo->get();
|
30 |
+
$email = $user['email'];
|
31 |
+
$firstName = $user['given_name'];
|
32 |
+
$lastName = $user['name'];
|
33 |
+
$googleId = $user['id'];
|
34 |
+
$token = $gClient->getAccessToken();
|
35 |
+
$customerModel = Mage::getModel('customer/customer');
|
36 |
+
$customerCollection = $customerModel->getCollection()
|
37 |
+
->addFieldToFilter('email', $email)
|
38 |
+
->setPageSize(1);
|
39 |
+
if ($customerModel->getSharingConfig()->isWebsiteScope()) {
|
40 |
+
$customerCollection->addAttributeToFilter(
|
41 |
+
'website_id', Mage::app()->getWebsite()->getId()
|
42 |
+
);
|
43 |
+
}
|
44 |
+
//echo "<pre>";print_R($customerCollection->getData());
|
45 |
+
if ($customerCollection->count()) {
|
46 |
+
$customer = $customerCollection->getFirstItem();
|
47 |
+
$cModel = Mage::getModel('customer/customer')->load($customer->getEntityId());
|
48 |
+
//echo "<pre>";print_R($customer->getData());exit;
|
49 |
+
$cModel->setCbGid($googleId)
|
50 |
+
->setCbGtoken($token)
|
51 |
+
->setCbSocialpopupCustomer(1)
|
52 |
+
->save();
|
53 |
+
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($cModel);
|
54 |
+
} else {
|
55 |
+
Mage::Helper('socialpopup/google')->createAccountAndConnect($email, $firstName, $lastName, $googleId, $token);
|
56 |
+
}
|
57 |
+
}
|
58 |
+
Mage::app()->getFrontController()->getResponse()->setRedirect($url);
|
59 |
+
return;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
public function facebookAction() {
|
64 |
+
|
65 |
+
$facebook = new Facebooklib(array(
|
66 |
+
'appId' => Mage::helper('socialpopup/facebook')->_getClientId(),
|
67 |
+
'secret' => Mage::helper('socialpopup/facebook')->_getClientSecret()
|
68 |
+
));
|
69 |
+
$url = Mage::getUrl('customer/account');
|
70 |
+
|
71 |
+
if ($facebook->getAccessToken()) {
|
72 |
+
$user = $facebook->api('/me');
|
73 |
+
$email = $user['email'];
|
74 |
+
$firstName = $user['first_name'];
|
75 |
+
$lastName = $user['last_name'];
|
76 |
+
$googleId = $user['id'];
|
77 |
+
$token = $facebook->getAccessToken();
|
78 |
+
$customerModel = Mage::getModel('customer/customer');
|
79 |
+
$customerCollection = $customerModel->getCollection()
|
80 |
+
->addFieldToFilter('email', $email)
|
81 |
+
->setPageSize(1);
|
82 |
+
if ($customerModel->getSharingConfig()->isWebsiteScope()) {
|
83 |
+
$customerCollection->addAttributeToFilter(
|
84 |
+
'website_id', Mage::app()->getWebsite()->getId()
|
85 |
+
);
|
86 |
+
}
|
87 |
+
|
88 |
+
if ($customerCollection->count()) {
|
89 |
+
$customer = $customerCollection->getFirstItem();
|
90 |
+
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer);
|
91 |
+
} else {
|
92 |
+
Mage::Helper('socialpopup/facebook')->createAccountAndConnect($email, $firstName, $lastName, $googleId, $token);
|
93 |
+
}
|
94 |
+
}
|
95 |
+
Mage::app()->getFrontController()->getResponse()->setRedirect($url);
|
96 |
+
return;
|
97 |
+
}
|
98 |
+
|
99 |
+
public function updateCountAction(){
|
100 |
+
$core_data = new Mage_Core_Model_Config();
|
101 |
+
$data = $this->getRequest()->getParam('button');
|
102 |
+
if(isset($data)){
|
103 |
+
$count = Mage::getStoreConfig('socialpopup/gmail/buttonclick',Mage::app()->getStore());
|
104 |
+
$core_data ->saveConfig('socialpopup/gmail/buttonclick', $count+1, 'default', 0);
|
105 |
+
|
106 |
+
}else{
|
107 |
+
$count = Mage::getStoreConfig('socialpopup/gmail/viewcount',Mage::app()->getStore());
|
108 |
+
$core_data ->saveConfig('socialpopup/gmail/viewcount', $count+1, 'default', 0);
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
}
|
app/code/local/Conversionbug/SocialPopup/data/conversionbug_socialpopup_setup/data-upgrade-0.1.0-0.1.1.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$content = '<p><img alt="" src="{{media url="wysiwyg/image.png"}}" /><img alt="" src="{{media url="wysiwyg/line.png"}}" />Catchy offer line goes here</p>';
|
3 |
+
//if you want one block for each store view, get the store collection
|
4 |
+
$stores = Mage::getModel('core/store')->getCollection()->addFieldToFilter('store_id', array('gt'=>0))->getAllIds();
|
5 |
+
//if you want one general block for all the store viwes, uncomment the line below
|
6 |
+
$stores = array(0);
|
7 |
+
foreach ($stores as $store){
|
8 |
+
$block = Mage::getModel('cms/block');
|
9 |
+
$block->setTitle('cb-static-block');
|
10 |
+
$block->setIdentifier('cb-static-block');
|
11 |
+
$block->setStores(array($store));
|
12 |
+
$block->setIsActive(1);
|
13 |
+
$block->setContent($content);
|
14 |
+
$block->save();
|
15 |
+
}
|
app/code/local/Conversionbug/SocialPopup/etc/adminhtml.xml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_SocialPopup
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<config>
|
26 |
+
<menu>
|
27 |
+
<socialpopup module="socialpopup">
|
28 |
+
<title>Social Login</title>
|
29 |
+
<sort_order>71</sort_order>
|
30 |
+
<children>
|
31 |
+
<items module="socialpopup">
|
32 |
+
<title>Dashboard</title>
|
33 |
+
<sort_order>0</sort_order>
|
34 |
+
<action>socialpopup/adminhtml_socialpopup</action>
|
35 |
+
</items>
|
36 |
+
</children>
|
37 |
+
</socialpopup>
|
38 |
+
</menu>
|
39 |
+
<acl>
|
40 |
+
<resources>
|
41 |
+
<all>
|
42 |
+
<title>Allow Everything</title>
|
43 |
+
</all>
|
44 |
+
<admin>
|
45 |
+
<children>
|
46 |
+
<ConversionBug_SocialPopup>
|
47 |
+
<title>ConversionBug Social Login</title>
|
48 |
+
<sort_order>10</sort_order>
|
49 |
+
</ConversionBug_SocialPopup>
|
50 |
+
<system>
|
51 |
+
<children>
|
52 |
+
<config>
|
53 |
+
<children>
|
54 |
+
<socialpopup translate="title" module="socialpopup">
|
55 |
+
<title>ConversionBug Social Login</title>
|
56 |
+
</socialpopup>
|
57 |
+
</children>
|
58 |
+
</config>
|
59 |
+
</children>
|
60 |
+
</system>
|
61 |
+
</children>
|
62 |
+
</admin>
|
63 |
+
</resources>
|
64 |
+
</acl>
|
65 |
+
</config>
|
app/code/local/Conversionbug/SocialPopup/etc/config.xml
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_SocialPopup
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<modules>
|
26 |
+
<ConversionBug_SocialPopup>
|
27 |
+
<version>0.1.1</version>
|
28 |
+
</ConversionBug_SocialPopup>
|
29 |
+
</modules>
|
30 |
+
<frontend>
|
31 |
+
<routers>
|
32 |
+
<customer>
|
33 |
+
<args>
|
34 |
+
<modules>
|
35 |
+
<ConversionBug_SocialPopup before="Mage_Customer">ConversionBug_SocialPopup</ConversionBug_SocialPopup>
|
36 |
+
</modules>
|
37 |
+
</args>
|
38 |
+
</customer>
|
39 |
+
</routers>
|
40 |
+
<routers>
|
41 |
+
<socialpopup>
|
42 |
+
<use>standard</use>
|
43 |
+
<args>
|
44 |
+
<module>ConversionBug_SocialPopup</module>
|
45 |
+
<frontName>socialpopup</frontName>
|
46 |
+
</args>
|
47 |
+
</socialpopup>
|
48 |
+
</routers>
|
49 |
+
<layout>
|
50 |
+
<updates>
|
51 |
+
<socialpopup>
|
52 |
+
<file>socialpopup.xml</file>
|
53 |
+
</socialpopup>
|
54 |
+
</updates>
|
55 |
+
</layout>
|
56 |
+
</frontend>
|
57 |
+
<admin>
|
58 |
+
<routers>
|
59 |
+
<socialpopup>
|
60 |
+
<use>admin</use>
|
61 |
+
<args>
|
62 |
+
<module>ConversionBug_SocialPopup</module>
|
63 |
+
<frontName>socialpopup</frontName>
|
64 |
+
</args>
|
65 |
+
</socialpopup>
|
66 |
+
</routers>
|
67 |
+
</admin>
|
68 |
+
<adminhtml>
|
69 |
+
<layout>
|
70 |
+
<updates>
|
71 |
+
<socialpopup>
|
72 |
+
<file>socialpopup.xml</file>
|
73 |
+
</socialpopup>
|
74 |
+
</updates>
|
75 |
+
</layout>
|
76 |
+
</adminhtml>
|
77 |
+
<global>
|
78 |
+
<models>
|
79 |
+
<socialpopup>
|
80 |
+
<class>ConversionBug_SocialPopup_Model</class>
|
81 |
+
</socialpopup>
|
82 |
+
</models>
|
83 |
+
<blocks>
|
84 |
+
<socialpopup>
|
85 |
+
<class>ConversionBug_SocialPopup_Block</class>
|
86 |
+
</socialpopup>
|
87 |
+
</blocks>
|
88 |
+
<helpers>
|
89 |
+
<socialpopup>
|
90 |
+
<class>ConversionBug_SocialPopup_Helper</class>
|
91 |
+
</socialpopup>
|
92 |
+
</helpers>
|
93 |
+
<resources>
|
94 |
+
<conversionbug_socialpopup_setup>
|
95 |
+
<setup>
|
96 |
+
<module>ConversionBug_SocialPopup</module>
|
97 |
+
<class>ConversionBug_SocialPopup_Model_Resource_Setup</class>
|
98 |
+
</setup>
|
99 |
+
</conversionbug_socialpopup_setup>
|
100 |
+
</resources>
|
101 |
+
</global>
|
102 |
+
</config>
|
app/code/local/Conversionbug/SocialPopup/etc/system.xml
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_SocialPopup
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<config>
|
26 |
+
<sections>
|
27 |
+
<socialpopup translate="label">
|
28 |
+
<tab>cbcore</tab>
|
29 |
+
<label>Exit Intent Settings</label>
|
30 |
+
<frontend_type>text</frontend_type>
|
31 |
+
<sort_order>120</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>1</show_in_store>
|
35 |
+
<groups>
|
36 |
+
<socialpopup translate="label comment" module="socialpopup">
|
37 |
+
<label>General Settings</label>
|
38 |
+
<frontend_type>text</frontend_type>
|
39 |
+
<sort_order>700</sort_order>
|
40 |
+
<show_in_default>1</show_in_default>
|
41 |
+
<show_in_website>1</show_in_website>
|
42 |
+
<show_in_store>1</show_in_store>
|
43 |
+
<expanded>1</expanded>
|
44 |
+
<fields>
|
45 |
+
<enable translate="label">
|
46 |
+
<label>Enable Social Popup</label>
|
47 |
+
<frontend_type>select</frontend_type>
|
48 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
49 |
+
<sort_order>40</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<comment></comment>
|
54 |
+
</enable>
|
55 |
+
</fields>
|
56 |
+
</socialpopup>
|
57 |
+
<gmail translate="label comment" module="socialpopup">
|
58 |
+
<label>Gmail Settings</label>
|
59 |
+
<frontend_type>text</frontend_type>
|
60 |
+
<sort_order>800</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>1</show_in_store>
|
64 |
+
<expanded>1</expanded>
|
65 |
+
<fields>
|
66 |
+
<enable translate="label">
|
67 |
+
<label>Enable</label>
|
68 |
+
<frontend_type>select</frontend_type>
|
69 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
+
<sort_order>40</sort_order>
|
71 |
+
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
+
<comment></comment>
|
75 |
+
</enable>
|
76 |
+
<client_id translate="label" module="socialpopup">
|
77 |
+
<label>Google API Client ID</label>
|
78 |
+
<frontend_type>text</frontend_type>
|
79 |
+
<sort_order>41</sort_order>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
+
<depends><enable>1</enable></depends>
|
84 |
+
<validate>required-entry</validate>
|
85 |
+
</client_id>
|
86 |
+
<client_secret translate="label" module="socialpopup">
|
87 |
+
<label>Google API Client Secret</label>
|
88 |
+
<frontend_type>text</frontend_type>
|
89 |
+
<sort_order>42</sort_order>
|
90 |
+
<show_in_default>1</show_in_default>
|
91 |
+
<show_in_website>1</show_in_website>
|
92 |
+
<show_in_store>1</show_in_store>
|
93 |
+
<depends><enable>1</enable></depends>
|
94 |
+
<validate>required-entry</validate>
|
95 |
+
</client_secret>
|
96 |
+
</fields>
|
97 |
+
</gmail>
|
98 |
+
<facebook translate="label comment" module="socialpopup">
|
99 |
+
<label>Facebook Settings</label>
|
100 |
+
<frontend_type>text</frontend_type>
|
101 |
+
<sort_order>800</sort_order>
|
102 |
+
<show_in_default>1</show_in_default>
|
103 |
+
<show_in_website>1</show_in_website>
|
104 |
+
<show_in_store>1</show_in_store>
|
105 |
+
<expanded>1</expanded>
|
106 |
+
<fields>
|
107 |
+
<enable translate="label">
|
108 |
+
<label>Enable</label>
|
109 |
+
<frontend_type>select</frontend_type>
|
110 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
111 |
+
<sort_order>40</sort_order>
|
112 |
+
<show_in_default>1</show_in_default>
|
113 |
+
<show_in_website>1</show_in_website>
|
114 |
+
<show_in_store>1</show_in_store>
|
115 |
+
<comment></comment>
|
116 |
+
</enable>
|
117 |
+
<client_id translate="label" module="socialpopup">
|
118 |
+
<label>Facebook App ID</label>
|
119 |
+
<frontend_type>text</frontend_type>
|
120 |
+
<sort_order>41</sort_order>
|
121 |
+
<show_in_default>1</show_in_default>
|
122 |
+
<show_in_website>1</show_in_website>
|
123 |
+
<show_in_store>1</show_in_store>
|
124 |
+
<depends><enable>1</enable></depends>
|
125 |
+
<validate>required-entry</validate>
|
126 |
+
</client_id>
|
127 |
+
<client_secret translate="label" module="socialpopup">
|
128 |
+
<label>Facebook App Secret</label>
|
129 |
+
<frontend_type>text</frontend_type>
|
130 |
+
<sort_order>42</sort_order>
|
131 |
+
<show_in_default>1</show_in_default>
|
132 |
+
<show_in_website>1</show_in_website>
|
133 |
+
<show_in_store>1</show_in_store>
|
134 |
+
<depends><enable>1</enable></depends>
|
135 |
+
<validate>required-entry</validate>
|
136 |
+
</client_secret>
|
137 |
+
</fields>
|
138 |
+
</facebook>
|
139 |
+
</groups>
|
140 |
+
</socialpopup>
|
141 |
+
</sections>
|
142 |
+
</config>
|
app/code/local/Conversionbug/SocialPopup/sql/conversionbug_socialpopup_setup/install-0.1.0.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
$installer->startSetup();
|
5 |
+
|
6 |
+
$installer->setCustomerAttributes(
|
7 |
+
array(
|
8 |
+
'cb_socialpopup_customer' => array(
|
9 |
+
'type' => 'text',
|
10 |
+
'visible' => false,
|
11 |
+
'required' => false,
|
12 |
+
'user_defined' => false
|
13 |
+
),
|
14 |
+
'cb_gid' => array(
|
15 |
+
'type' => 'text',
|
16 |
+
'visible' => false,
|
17 |
+
'required' => false,
|
18 |
+
'user_defined' => false
|
19 |
+
),
|
20 |
+
'cb_gtoken' => array(
|
21 |
+
'type' => 'text',
|
22 |
+
'visible' => false,
|
23 |
+
'required' => false,
|
24 |
+
'user_defined' => false
|
25 |
+
),
|
26 |
+
'cb_fid' => array(
|
27 |
+
'type' => 'text',
|
28 |
+
'visible' => false,
|
29 |
+
'required' => false,
|
30 |
+
'user_defined' => false
|
31 |
+
),
|
32 |
+
'cb_ftoken' => array(
|
33 |
+
'type' => 'text',
|
34 |
+
'visible' => false,
|
35 |
+
'required' => false,
|
36 |
+
'user_defined' => false
|
37 |
+
)
|
38 |
+
)
|
39 |
+
);
|
40 |
+
|
41 |
+
// Install our custom attributes
|
42 |
+
$installer->installCustomerAttributes();
|
43 |
+
|
44 |
+
// Remove our custom attributes (for testing)
|
45 |
+
//$installer->removeCustomerAttributes();
|
46 |
+
|
47 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/conversionbugcore.xml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout>
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss">
|
6 |
+
<name>conversionbug/core/core.css</name>
|
7 |
+
</action>
|
8 |
+
</reference>
|
9 |
+
</default>
|
10 |
+
<adminhtml_system_config_edit>
|
11 |
+
<reference name="content">
|
12 |
+
<block type="cbcore/info" name="cbcore.info" template="conversionbugcore/info.phtml"></block>
|
13 |
+
</reference>
|
14 |
+
</adminhtml_system_config_edit>
|
15 |
+
</layout>
|
app/design/adminhtml/default/default/layout/socialpopup.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<socialpopup_adminhtml_socialpopup_index>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="socialpopup/adminhtml_socialpopup" name="socialpopup" />
|
6 |
+
</reference>
|
7 |
+
</socialpopup_adminhtml_socialpopup_index>
|
8 |
+
</layout>
|
app/design/adminhtml/default/default/template/conversionbugcore/info.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
//<![CDATA[
|
3 |
+
jQuery(document).ready(function ($) {
|
4 |
+
$('.content-header').remove();
|
5 |
+
});
|
6 |
+
</script>
|
7 |
+
<div class="cbstore-block">
|
8 |
+
<!--<h3 class="store-extensions-header"><?php echo $this->__('Featured Extensions') ?></h3>-->
|
9 |
+
<div class="cb-intro">
|
10 |
+
<div class="content">
|
11 |
+
<h1>CONVERSIONbug</h1>
|
12 |
+
<p>We want to change the way you look at your website</p>
|
13 |
+
<p><span>Visit Us: </span><a href="http://www.conversionbug.com/">www.conversionbug.com</a></p>
|
14 |
+
<p><span>Contact Us: </span><a href="mailto:support@conversionbug.com">support@conversionbug.com</a></p>
|
15 |
+
<p><span>Skype: </span><a href="#">conversionbug</a></p>
|
16 |
+
</div>
|
17 |
+
<div class="cb-pattern"></div>
|
18 |
+
</div>
|
19 |
+
<?php
|
20 |
+
$collection = $this->getExtensions();
|
21 |
+
//echo "<pre>";print_r($collection);
|
22 |
+
?>
|
23 |
+
|
24 |
+
<?php $i = 0;
|
25 |
+
foreach ($collection as $product): ?>
|
26 |
+
<?php if ($i == 0) {
|
27 |
+
$i++;
|
28 |
+
continue;
|
29 |
+
} ?>
|
30 |
+
<div class="item-extensions">
|
31 |
+
<div class="image">
|
32 |
+
<a href="<?php echo $product[0] ?>" target="_blank"><img src="<?php echo $product[1] ?>"/></a>
|
33 |
+
</div>
|
34 |
+
<div class="title">
|
35 |
+
<a href="<?php echo $product[0] ?>" target="_blank"><?php echo $product[2] ?></a>
|
36 |
+
</div>
|
37 |
+
<div class="price">$<?php echo $product[3] ?></div>
|
38 |
+
</div>
|
39 |
+
<?php ++$i; ?>
|
40 |
+
<?php endforeach; ?>
|
41 |
+
</div>
|
42 |
+
|
43 |
+
|
app/design/frontend/rwd/default/layout/socialpopup.xml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_SocialPopup
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<layout version="0.1.0">
|
26 |
+
<default>
|
27 |
+
<reference name="head">
|
28 |
+
<action method="addJs">
|
29 |
+
<script>conversionbug/jquery.colorbox.js</script>
|
30 |
+
</action>
|
31 |
+
<action method="addCss">
|
32 |
+
<stylesheet>css/conversionbug/colorbox.css</stylesheet>
|
33 |
+
</action>
|
34 |
+
<action method="addCss">
|
35 |
+
<stylesheet>css/conversionbug/socialpopup.css</stylesheet>
|
36 |
+
</action>
|
37 |
+
</reference>
|
38 |
+
<reference name="before_body_end">
|
39 |
+
<block type="socialpopup/google" name="socialpopup" template="socialpopup/form.phtml">
|
40 |
+
<block type="cms/block" name="cb-block">
|
41 |
+
<action method="setBlockId">
|
42 |
+
<block_id>cb-static-block</block_id>
|
43 |
+
</action>
|
44 |
+
</block>
|
45 |
+
<block type="customer/account_forgotpassword" name="forgotPassword" template="socialpopup/forgotpassword.phtml" />
|
46 |
+
</block>
|
47 |
+
</reference>
|
48 |
+
</default>
|
49 |
+
<socialpopup_index_facebook>
|
50 |
+
<reference name="content">
|
51 |
+
<block type="socialpopup/google" name="socialpopup" template="socialpopup/form.phtml">
|
52 |
+
<block type="cms/block" name="cb-block">
|
53 |
+
<action method="setBlockId">
|
54 |
+
<block_id>cb-static-block</block_id>
|
55 |
+
</action>
|
56 |
+
</block>
|
57 |
+
<block type="customer/account_forgotpassword" name="forgotPassword" template="socialpopup/forgotpassword.phtml" />
|
58 |
+
</block>
|
59 |
+
</reference>
|
60 |
+
</socialpopup_index_facebook>
|
61 |
+
|
62 |
+
</layout>
|
63 |
+
|
app/etc/modules/ConversionBug_Core.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_Core
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<config>
|
26 |
+
<modules>
|
27 |
+
<ConversionBug_Core>
|
28 |
+
<active>true</active>
|
29 |
+
<codePool>local</codePool>
|
30 |
+
</ConversionBug_Core>
|
31 |
+
</modules>
|
32 |
+
</config>
|
app/etc/modules/ConversionBug_SocialPopup.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* ConversionBug
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the ConversionBug.com license that is
|
9 |
+
* available through the world-wide-web at this URL:
|
10 |
+
* http://www.ConversionBug.com/license-agreement.html
|
11 |
+
*
|
12 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
15 |
+
* version in the future.
|
16 |
+
*
|
17 |
+
* @category ConversionBug
|
18 |
+
* @package ConversionBug_SocialPopup
|
19 |
+
* @copyright Copyright (c) 2015 ConversionBug (http://www.ConversionBug.com/)
|
20 |
+
* @license http://www.ConversionBug.com/license-agreement.html
|
21 |
+
* @author shiv kumar singh
|
22 |
+
* @email shivam.kumar@conversionbug.com
|
23 |
+
*/
|
24 |
+
-->
|
25 |
+
<config>
|
26 |
+
<modules>
|
27 |
+
<ConversionBug_SocialPopup>
|
28 |
+
<active>false</active>
|
29 |
+
<codePool>local</codePool>
|
30 |
+
</ConversionBug_SocialPopup>
|
31 |
+
</modules>
|
32 |
+
</config>
|
js/conversionbug/jquery.colorbox.js
ADDED
@@ -0,0 +1,1104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
Colorbox 1.6.0
|
3 |
+
license: MIT
|
4 |
+
http://www.jacklmoore.com/colorbox
|
5 |
+
*/
|
6 |
+
(function ($, document, window) {
|
7 |
+
var
|
8 |
+
// Default settings object.
|
9 |
+
// See http://jacklmoore.com/colorbox for details.
|
10 |
+
defaults = {
|
11 |
+
// data sources
|
12 |
+
html: false,
|
13 |
+
photo: false,
|
14 |
+
iframe: false,
|
15 |
+
inline: false,
|
16 |
+
|
17 |
+
// behavior and appearance
|
18 |
+
transition: "elastic",
|
19 |
+
speed: 300,
|
20 |
+
fadeOut: 300,
|
21 |
+
width: false,
|
22 |
+
initialWidth: "600",
|
23 |
+
innerWidth: false,
|
24 |
+
maxWidth: false,
|
25 |
+
height: false,
|
26 |
+
initialHeight: "450",
|
27 |
+
innerHeight: false,
|
28 |
+
maxHeight: false,
|
29 |
+
scalePhotos: true,
|
30 |
+
scrolling: true,
|
31 |
+
opacity: 0.9,
|
32 |
+
preloading: true,
|
33 |
+
className: false,
|
34 |
+
overlayClose: true,
|
35 |
+
escKey: true,
|
36 |
+
arrowKey: true,
|
37 |
+
top: false,
|
38 |
+
bottom: false,
|
39 |
+
left: false,
|
40 |
+
right: false,
|
41 |
+
fixed: false,
|
42 |
+
data: undefined,
|
43 |
+
closeButton: true,
|
44 |
+
fastIframe: true,
|
45 |
+
open: false,
|
46 |
+
reposition: true,
|
47 |
+
loop: true,
|
48 |
+
slideshow: false,
|
49 |
+
slideshowAuto: true,
|
50 |
+
slideshowSpeed: 2500,
|
51 |
+
slideshowStart: "start slideshow",
|
52 |
+
slideshowStop: "stop slideshow",
|
53 |
+
photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
|
54 |
+
|
55 |
+
// alternate image paths for high-res displays
|
56 |
+
retinaImage: false,
|
57 |
+
retinaUrl: false,
|
58 |
+
retinaSuffix: '@2x.$1',
|
59 |
+
|
60 |
+
// internationalization
|
61 |
+
current: "image {current} of {total}",
|
62 |
+
previous: "previous",
|
63 |
+
next: "next",
|
64 |
+
close: "close",
|
65 |
+
xhrError: "This content failed to load.",
|
66 |
+
imgError: "This image failed to load.",
|
67 |
+
|
68 |
+
// accessbility
|
69 |
+
returnFocus: true,
|
70 |
+
trapFocus: true,
|
71 |
+
|
72 |
+
// callbacks
|
73 |
+
onOpen: false,
|
74 |
+
onLoad: false,
|
75 |
+
onComplete: false,
|
76 |
+
onCleanup: false,
|
77 |
+
onClosed: false,
|
78 |
+
|
79 |
+
rel: function() {
|
80 |
+
return this.rel;
|
81 |
+
},
|
82 |
+
href: function() {
|
83 |
+
// using this.href would give the absolute url, when the href may have been inteded as a selector (e.g. '#container')
|
84 |
+
return $(this).attr('href');
|
85 |
+
},
|
86 |
+
title: function() {
|
87 |
+
return this.title;
|
88 |
+
},
|
89 |
+
createImg: function() {
|
90 |
+
var img = new Image();
|
91 |
+
var attrs = $(this).data('cbox-img-attrs');
|
92 |
+
|
93 |
+
if (typeof attrs === 'object') {
|
94 |
+
$.each(attrs, function(key, val){
|
95 |
+
img[key] = val;
|
96 |
+
});
|
97 |
+
}
|
98 |
+
|
99 |
+
return img;
|
100 |
+
},
|
101 |
+
createIframe: function() {
|
102 |
+
var iframe = document.createElement('iframe');
|
103 |
+
var attrs = $(this).data('cbox-iframe-attrs');
|
104 |
+
|
105 |
+
if (typeof attrs === 'object') {
|
106 |
+
$.each(attrs, function(key, val){
|
107 |
+
iframe[key] = val;
|
108 |
+
});
|
109 |
+
}
|
110 |
+
|
111 |
+
if ('frameBorder' in iframe) {
|
112 |
+
iframe.frameBorder = 0;
|
113 |
+
}
|
114 |
+
if ('allowTransparency' in iframe) {
|
115 |
+
iframe.allowTransparency = "true";
|
116 |
+
}
|
117 |
+
iframe.name = (new Date()).getTime(); // give the iframe a unique name to prevent caching
|
118 |
+
iframe.allowFullScreen = true;
|
119 |
+
|
120 |
+
return iframe;
|
121 |
+
}
|
122 |
+
},
|
123 |
+
|
124 |
+
// Abstracting the HTML and event identifiers for easy rebranding
|
125 |
+
colorbox = 'colorbox',
|
126 |
+
prefix = 'cbox',
|
127 |
+
boxElement = prefix + 'Element',
|
128 |
+
|
129 |
+
// Events
|
130 |
+
event_open = prefix + '_open',
|
131 |
+
event_load = prefix + '_load',
|
132 |
+
event_complete = prefix + '_complete',
|
133 |
+
event_cleanup = prefix + '_cleanup',
|
134 |
+
event_closed = prefix + '_closed',
|
135 |
+
event_purge = prefix + '_purge',
|
136 |
+
|
137 |
+
// Cached jQuery Object Variables
|
138 |
+
$overlay,
|
139 |
+
$box,
|
140 |
+
$wrap,
|
141 |
+
$content,
|
142 |
+
$topBorder,
|
143 |
+
$leftBorder,
|
144 |
+
$rightBorder,
|
145 |
+
$bottomBorder,
|
146 |
+
$related,
|
147 |
+
$window,
|
148 |
+
$loaded,
|
149 |
+
$loadingBay,
|
150 |
+
$loadingOverlay,
|
151 |
+
$title,
|
152 |
+
$current,
|
153 |
+
$slideshow,
|
154 |
+
$next,
|
155 |
+
$prev,
|
156 |
+
$close,
|
157 |
+
$groupControls,
|
158 |
+
$events = $('<a/>'), // $({}) would be prefered, but there is an issue with jQuery 1.4.2
|
159 |
+
|
160 |
+
// Variables for cached values or use across multiple functions
|
161 |
+
settings,
|
162 |
+
interfaceHeight,
|
163 |
+
interfaceWidth,
|
164 |
+
loadedHeight,
|
165 |
+
loadedWidth,
|
166 |
+
index,
|
167 |
+
photo,
|
168 |
+
open,
|
169 |
+
active,
|
170 |
+
closing,
|
171 |
+
loadingTimer,
|
172 |
+
publicMethod,
|
173 |
+
div = "div",
|
174 |
+
requests = 0,
|
175 |
+
previousCSS = {},
|
176 |
+
init;
|
177 |
+
|
178 |
+
// ****************
|
179 |
+
// HELPER FUNCTIONS
|
180 |
+
// ****************
|
181 |
+
|
182 |
+
// Convenience function for creating new jQuery objects
|
183 |
+
function $tag(tag, id, css) {
|
184 |
+
var element = document.createElement(tag);
|
185 |
+
|
186 |
+
if (id) {
|
187 |
+
element.id = prefix + id;
|
188 |
+
}
|
189 |
+
|
190 |
+
if (css) {
|
191 |
+
element.style.cssText = css;
|
192 |
+
}
|
193 |
+
|
194 |
+
return $(element);
|
195 |
+
}
|
196 |
+
|
197 |
+
// Get the window height using innerHeight when available to avoid an issue with iOS
|
198 |
+
// http://bugs.jquery.com/ticket/6724
|
199 |
+
function winheight() {
|
200 |
+
return window.innerHeight ? window.innerHeight : $(window).height();
|
201 |
+
}
|
202 |
+
|
203 |
+
function Settings(element, options) {
|
204 |
+
if (options !== Object(options)) {
|
205 |
+
options = {};
|
206 |
+
}
|
207 |
+
|
208 |
+
this.cache = {};
|
209 |
+
this.el = element;
|
210 |
+
|
211 |
+
this.value = function(key) {
|
212 |
+
var dataAttr;
|
213 |
+
|
214 |
+
if (this.cache[key] === undefined) {
|
215 |
+
dataAttr = $(this.el).attr('data-cbox-'+key);
|
216 |
+
|
217 |
+
if (dataAttr !== undefined) {
|
218 |
+
this.cache[key] = dataAttr;
|
219 |
+
} else if (options[key] !== undefined) {
|
220 |
+
this.cache[key] = options[key];
|
221 |
+
} else if (defaults[key] !== undefined) {
|
222 |
+
this.cache[key] = defaults[key];
|
223 |
+
}
|
224 |
+
}
|
225 |
+
|
226 |
+
return this.cache[key];
|
227 |
+
};
|
228 |
+
|
229 |
+
this.get = function(key) {
|
230 |
+
var value = this.value(key);
|
231 |
+
return $.isFunction(value) ? value.call(this.el, this) : value;
|
232 |
+
};
|
233 |
+
}
|
234 |
+
|
235 |
+
// Determine the next and previous members in a group.
|
236 |
+
function getIndex(increment) {
|
237 |
+
var
|
238 |
+
max = $related.length,
|
239 |
+
newIndex = (index + increment) % max;
|
240 |
+
|
241 |
+
return (newIndex < 0) ? max + newIndex : newIndex;
|
242 |
+
}
|
243 |
+
|
244 |
+
// Convert '%' and 'px' values to integers
|
245 |
+
function setSize(size, dimension) {
|
246 |
+
return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : winheight()) / 100) : 1) * parseInt(size, 10));
|
247 |
+
}
|
248 |
+
|
249 |
+
// Checks an href to see if it is a photo.
|
250 |
+
// There is a force photo option (photo: true) for hrefs that cannot be matched by the regex.
|
251 |
+
function isImage(settings, url) {
|
252 |
+
return settings.get('photo') || settings.get('photoRegex').test(url);
|
253 |
+
}
|
254 |
+
|
255 |
+
function retinaUrl(settings, url) {
|
256 |
+
return settings.get('retinaUrl') && window.devicePixelRatio > 1 ? url.replace(settings.get('photoRegex'), settings.get('retinaSuffix')) : url;
|
257 |
+
}
|
258 |
+
|
259 |
+
function trapFocus(e) {
|
260 |
+
if ('contains' in $box[0] && !$box[0].contains(e.target) && e.target !== $overlay[0]) {
|
261 |
+
e.stopPropagation();
|
262 |
+
$box.focus();
|
263 |
+
}
|
264 |
+
}
|
265 |
+
|
266 |
+
function setClass(str) {
|
267 |
+
if (setClass.str !== str) {
|
268 |
+
$box.add($overlay).removeClass(setClass.str).addClass(str);
|
269 |
+
setClass.str = str;
|
270 |
+
}
|
271 |
+
}
|
272 |
+
|
273 |
+
function getRelated(rel) {
|
274 |
+
index = 0;
|
275 |
+
|
276 |
+
if (rel && rel !== false && rel !== 'nofollow') {
|
277 |
+
$related = $('.' + boxElement).filter(function () {
|
278 |
+
var options = $.data(this, colorbox);
|
279 |
+
var settings = new Settings(this, options);
|
280 |
+
return (settings.get('rel') === rel);
|
281 |
+
});
|
282 |
+
index = $related.index(settings.el);
|
283 |
+
|
284 |
+
// Check direct calls to Colorbox.
|
285 |
+
if (index === -1) {
|
286 |
+
$related = $related.add(settings.el);
|
287 |
+
index = $related.length - 1;
|
288 |
+
}
|
289 |
+
} else {
|
290 |
+
$related = $(settings.el);
|
291 |
+
}
|
292 |
+
}
|
293 |
+
|
294 |
+
function trigger(event) {
|
295 |
+
// for external use
|
296 |
+
$(document).trigger(event);
|
297 |
+
// for internal use
|
298 |
+
$events.triggerHandler(event);
|
299 |
+
}
|
300 |
+
|
301 |
+
var slideshow = (function(){
|
302 |
+
var active,
|
303 |
+
className = prefix + "Slideshow_",
|
304 |
+
click = "click." + prefix,
|
305 |
+
timeOut;
|
306 |
+
|
307 |
+
function clear () {
|
308 |
+
clearTimeout(timeOut);
|
309 |
+
}
|
310 |
+
|
311 |
+
function set() {
|
312 |
+
if (settings.get('loop') || $related[index + 1]) {
|
313 |
+
clear();
|
314 |
+
timeOut = setTimeout(publicMethod.next, settings.get('slideshowSpeed'));
|
315 |
+
}
|
316 |
+
}
|
317 |
+
|
318 |
+
function start() {
|
319 |
+
$slideshow
|
320 |
+
.html(settings.get('slideshowStop'))
|
321 |
+
.unbind(click)
|
322 |
+
.one(click, stop);
|
323 |
+
|
324 |
+
$events
|
325 |
+
.bind(event_complete, set)
|
326 |
+
.bind(event_load, clear);
|
327 |
+
|
328 |
+
$box.removeClass(className + "off").addClass(className + "on");
|
329 |
+
}
|
330 |
+
|
331 |
+
function stop() {
|
332 |
+
clear();
|
333 |
+
|
334 |
+
$events
|
335 |
+
.unbind(event_complete, set)
|
336 |
+
.unbind(event_load, clear);
|
337 |
+
|
338 |
+
$slideshow
|
339 |
+
.html(settings.get('slideshowStart'))
|
340 |
+
.unbind(click)
|
341 |
+
.one(click, function () {
|
342 |
+
publicMethod.next();
|
343 |
+
start();
|
344 |
+
});
|
345 |
+
|
346 |
+
$box.removeClass(className + "on").addClass(className + "off");
|
347 |
+
}
|
348 |
+
|
349 |
+
function reset() {
|
350 |
+
active = false;
|
351 |
+
$slideshow.hide();
|
352 |
+
clear();
|
353 |
+
$events
|
354 |
+
.unbind(event_complete, set)
|
355 |
+
.unbind(event_load, clear);
|
356 |
+
$box.removeClass(className + "off " + className + "on");
|
357 |
+
}
|
358 |
+
|
359 |
+
return function(){
|
360 |
+
if (active) {
|
361 |
+
if (!settings.get('slideshow')) {
|
362 |
+
$events.unbind(event_cleanup, reset);
|
363 |
+
reset();
|
364 |
+
}
|
365 |
+
} else {
|
366 |
+
if (settings.get('slideshow') && $related[1]) {
|
367 |
+
active = true;
|
368 |
+
$events.one(event_cleanup, reset);
|
369 |
+
if (settings.get('slideshowAuto')) {
|
370 |
+
start();
|
371 |
+
} else {
|
372 |
+
stop();
|
373 |
+
}
|
374 |
+
$slideshow.show();
|
375 |
+
}
|
376 |
+
}
|
377 |
+
};
|
378 |
+
|
379 |
+
}());
|
380 |
+
|
381 |
+
|
382 |
+
function launch(element) {
|
383 |
+
var options;
|
384 |
+
|
385 |
+
if (!closing) {
|
386 |
+
|
387 |
+
options = $(element).data(colorbox);
|
388 |
+
|
389 |
+
settings = new Settings(element, options);
|
390 |
+
|
391 |
+
getRelated(settings.get('rel'));
|
392 |
+
|
393 |
+
if (!open) {
|
394 |
+
open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
|
395 |
+
|
396 |
+
setClass(settings.get('className'));
|
397 |
+
|
398 |
+
// Show colorbox so the sizes can be calculated in older versions of jQuery
|
399 |
+
$box.css({visibility:'hidden', display:'block', opacity:''});
|
400 |
+
|
401 |
+
$loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden; visibility:hidden');
|
402 |
+
$content.css({width:'', height:''}).append($loaded);
|
403 |
+
|
404 |
+
// Cache values needed for size calculations
|
405 |
+
interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();
|
406 |
+
interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
|
407 |
+
loadedHeight = $loaded.outerHeight(true);
|
408 |
+
loadedWidth = $loaded.outerWidth(true);
|
409 |
+
|
410 |
+
// Opens inital empty Colorbox prior to content being loaded.
|
411 |
+
var initialWidth = setSize(settings.get('initialWidth'), 'x');
|
412 |
+
var initialHeight = setSize(settings.get('initialHeight'), 'y');
|
413 |
+
var maxWidth = settings.get('maxWidth');
|
414 |
+
var maxHeight = settings.get('maxHeight');
|
415 |
+
|
416 |
+
settings.w = (maxWidth !== false ? Math.min(initialWidth, setSize(maxWidth, 'x')) : initialWidth) - loadedWidth - interfaceWidth;
|
417 |
+
settings.h = (maxHeight !== false ? Math.min(initialHeight, setSize(maxHeight, 'y')) : initialHeight) - loadedHeight - interfaceHeight;
|
418 |
+
|
419 |
+
$loaded.css({width:'', height:settings.h});
|
420 |
+
publicMethod.position();
|
421 |
+
|
422 |
+
trigger(event_open);
|
423 |
+
settings.get('onOpen');
|
424 |
+
|
425 |
+
$groupControls.add($title).hide();
|
426 |
+
|
427 |
+
$box.focus();
|
428 |
+
|
429 |
+
if (settings.get('trapFocus')) {
|
430 |
+
// Confine focus to the modal
|
431 |
+
// Uses event capturing that is not supported in IE8-
|
432 |
+
if (document.addEventListener) {
|
433 |
+
|
434 |
+
document.addEventListener('focus', trapFocus, true);
|
435 |
+
|
436 |
+
$events.one(event_closed, function () {
|
437 |
+
document.removeEventListener('focus', trapFocus, true);
|
438 |
+
});
|
439 |
+
}
|
440 |
+
}
|
441 |
+
|
442 |
+
// Return focus on closing
|
443 |
+
if (settings.get('returnFocus')) {
|
444 |
+
$events.one(event_closed, function () {
|
445 |
+
$(settings.el).focus();
|
446 |
+
});
|
447 |
+
}
|
448 |
+
}
|
449 |
+
|
450 |
+
var opacity = parseFloat(settings.get('opacity'));
|
451 |
+
$overlay.css({
|
452 |
+
opacity: opacity === opacity ? opacity : '',
|
453 |
+
cursor: settings.get('overlayClose') ? 'pointer' : '',
|
454 |
+
visibility: 'visible'
|
455 |
+
}).show();
|
456 |
+
|
457 |
+
if (settings.get('closeButton')) {
|
458 |
+
$close.html(settings.get('close')).appendTo($content);
|
459 |
+
} else {
|
460 |
+
$close.appendTo('<div/>'); // replace with .detach() when dropping jQuery < 1.4
|
461 |
+
}
|
462 |
+
|
463 |
+
load();
|
464 |
+
}
|
465 |
+
}
|
466 |
+
|
467 |
+
// Colorbox's markup needs to be added to the DOM prior to being called
|
468 |
+
// so that the browser will go ahead and load the CSS background images.
|
469 |
+
function appendHTML() {
|
470 |
+
if (!$box) {
|
471 |
+
init = false;
|
472 |
+
$window = $(window);
|
473 |
+
$box = $tag(div).attr({
|
474 |
+
id: colorbox,
|
475 |
+
'class': $.support.opacity === false ? prefix + 'IE' : '', // class for optional IE8 & lower targeted CSS.
|
476 |
+
role: 'dialog',
|
477 |
+
tabindex: '-1'
|
478 |
+
}).hide();
|
479 |
+
$overlay = $tag(div, "Overlay").hide();
|
480 |
+
$loadingOverlay = $([$tag(div, "LoadingOverlay")[0],$tag(div, "LoadingGraphic")[0]]);
|
481 |
+
$wrap = $tag(div, "Wrapper");
|
482 |
+
$content = $tag(div, "Content").append(
|
483 |
+
$title = $tag(div, "Title"),
|
484 |
+
$current = $tag(div, "Current"),
|
485 |
+
$prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
|
486 |
+
$next = $('<button type="button"/>').attr({id:prefix+'Next'}),
|
487 |
+
$slideshow = $tag('button', "Slideshow"),
|
488 |
+
$loadingOverlay
|
489 |
+
);
|
490 |
+
|
491 |
+
$close = $('<button type="button"/>').attr({id:prefix+'Close'});
|
492 |
+
|
493 |
+
$wrap.append( // The 3x3 Grid that makes up Colorbox
|
494 |
+
$tag(div).append(
|
495 |
+
$tag(div, "TopLeft"),
|
496 |
+
$topBorder = $tag(div, "TopCenter"),
|
497 |
+
$tag(div, "TopRight")
|
498 |
+
),
|
499 |
+
$tag(div, false, 'clear:left').append(
|
500 |
+
$leftBorder = $tag(div, "MiddleLeft"),
|
501 |
+
$content,
|
502 |
+
$rightBorder = $tag(div, "MiddleRight")
|
503 |
+
),
|
504 |
+
$tag(div, false, 'clear:left').append(
|
505 |
+
$tag(div, "BottomLeft"),
|
506 |
+
$bottomBorder = $tag(div, "BottomCenter"),
|
507 |
+
$tag(div, "BottomRight")
|
508 |
+
)
|
509 |
+
).find('div div').css({'float': 'left'});
|
510 |
+
|
511 |
+
$loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');
|
512 |
+
|
513 |
+
$groupControls = $next.add($prev).add($current).add($slideshow);
|
514 |
+
}
|
515 |
+
if (document.body && !$box.parent().length) {
|
516 |
+
$(document.body).append($overlay, $box.append($wrap, $loadingBay));
|
517 |
+
}
|
518 |
+
}
|
519 |
+
|
520 |
+
// Add Colorbox's event bindings
|
521 |
+
function addBindings() {
|
522 |
+
function clickHandler(e) {
|
523 |
+
// ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
|
524 |
+
// See: http://jacklmoore.com/notes/click-events/
|
525 |
+
if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey)) {
|
526 |
+
e.preventDefault();
|
527 |
+
launch(this);
|
528 |
+
}
|
529 |
+
}
|
530 |
+
|
531 |
+
if ($box) {
|
532 |
+
if (!init) {
|
533 |
+
init = true;
|
534 |
+
|
535 |
+
// Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
|
536 |
+
$next.click(function () {
|
537 |
+
publicMethod.next();
|
538 |
+
});
|
539 |
+
$prev.click(function () {
|
540 |
+
publicMethod.prev();
|
541 |
+
});
|
542 |
+
$close.click(function () {
|
543 |
+
publicMethod.close();
|
544 |
+
});
|
545 |
+
$overlay.click(function () {
|
546 |
+
if (settings.get('overlayClose')) {
|
547 |
+
publicMethod.close();
|
548 |
+
}
|
549 |
+
});
|
550 |
+
|
551 |
+
// Key Bindings
|
552 |
+
$(document).bind('keydown.' + prefix, function (e) {
|
553 |
+
var key = e.keyCode;
|
554 |
+
if (open && settings.get('escKey') && key === 27) {
|
555 |
+
e.preventDefault();
|
556 |
+
publicMethod.close();
|
557 |
+
}
|
558 |
+
if (open && settings.get('arrowKey') && $related[1] && !e.altKey) {
|
559 |
+
if (key === 37) {
|
560 |
+
e.preventDefault();
|
561 |
+
$prev.click();
|
562 |
+
} else if (key === 39) {
|
563 |
+
e.preventDefault();
|
564 |
+
$next.click();
|
565 |
+
}
|
566 |
+
}
|
567 |
+
});
|
568 |
+
|
569 |
+
if ($.isFunction($.fn.on)) {
|
570 |
+
// For jQuery 1.7+
|
571 |
+
$(document).on('click.'+prefix, '.'+boxElement, clickHandler);
|
572 |
+
} else {
|
573 |
+
// For jQuery 1.3.x -> 1.6.x
|
574 |
+
// This code is never reached in jQuery 1.9, so do not contact me about 'live' being removed.
|
575 |
+
// This is not here for jQuery 1.9, it's here for legacy users.
|
576 |
+
$('.'+boxElement).live('click.'+prefix, clickHandler);
|
577 |
+
}
|
578 |
+
}
|
579 |
+
return true;
|
580 |
+
}
|
581 |
+
return false;
|
582 |
+
}
|
583 |
+
|
584 |
+
// Don't do anything if Colorbox already exists.
|
585 |
+
if ($[colorbox]) {
|
586 |
+
return;
|
587 |
+
}
|
588 |
+
|
589 |
+
// Append the HTML when the DOM loads
|
590 |
+
$(appendHTML);
|
591 |
+
|
592 |
+
|
593 |
+
// ****************
|
594 |
+
// PUBLIC FUNCTIONS
|
595 |
+
// Usage format: $.colorbox.close();
|
596 |
+
// Usage from within an iframe: parent.jQuery.colorbox.close();
|
597 |
+
// ****************
|
598 |
+
|
599 |
+
publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
|
600 |
+
var settings;
|
601 |
+
var $obj = this;
|
602 |
+
|
603 |
+
options = options || {};
|
604 |
+
|
605 |
+
if ($.isFunction($obj)) { // assume a call to $.colorbox
|
606 |
+
$obj = $('<a/>');
|
607 |
+
options.open = true;
|
608 |
+
}
|
609 |
+
|
610 |
+
if (!$obj[0]) { // colorbox being applied to empty collection
|
611 |
+
return $obj;
|
612 |
+
}
|
613 |
+
|
614 |
+
appendHTML();
|
615 |
+
|
616 |
+
if (addBindings()) {
|
617 |
+
|
618 |
+
if (callback) {
|
619 |
+
options.onComplete = callback;
|
620 |
+
}
|
621 |
+
|
622 |
+
$obj.each(function () {
|
623 |
+
var old = $.data(this, colorbox) || {};
|
624 |
+
$.data(this, colorbox, $.extend(old, options));
|
625 |
+
}).addClass(boxElement);
|
626 |
+
|
627 |
+
settings = new Settings($obj[0], options);
|
628 |
+
|
629 |
+
if (settings.get('open')) {
|
630 |
+
launch($obj[0]);
|
631 |
+
}
|
632 |
+
}
|
633 |
+
|
634 |
+
return $obj;
|
635 |
+
};
|
636 |
+
|
637 |
+
publicMethod.position = function (speed, loadedCallback) {
|
638 |
+
var
|
639 |
+
css,
|
640 |
+
top = 0,
|
641 |
+
left = 0,
|
642 |
+
offset = $box.offset(),
|
643 |
+
scrollTop,
|
644 |
+
scrollLeft;
|
645 |
+
|
646 |
+
$window.unbind('resize.' + prefix);
|
647 |
+
|
648 |
+
// remove the modal so that it doesn't influence the document width/height
|
649 |
+
$box.css({top: -9e4, left: -9e4});
|
650 |
+
|
651 |
+
scrollTop = $window.scrollTop();
|
652 |
+
scrollLeft = $window.scrollLeft();
|
653 |
+
|
654 |
+
if (settings.get('fixed')) {
|
655 |
+
offset.top -= scrollTop;
|
656 |
+
offset.left -= scrollLeft;
|
657 |
+
$box.css({position: 'fixed'});
|
658 |
+
} else {
|
659 |
+
top = scrollTop;
|
660 |
+
left = scrollLeft;
|
661 |
+
$box.css({position: 'absolute'});
|
662 |
+
}
|
663 |
+
|
664 |
+
// keeps the top and left positions within the browser's viewport.
|
665 |
+
if (settings.get('right') !== false) {
|
666 |
+
left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.get('right'), 'x'), 0);
|
667 |
+
} else if (settings.get('left') !== false) {
|
668 |
+
left += setSize(settings.get('left'), 'x');
|
669 |
+
} else {
|
670 |
+
left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
|
671 |
+
}
|
672 |
+
|
673 |
+
if (settings.get('bottom') !== false) {
|
674 |
+
top += Math.max(winheight() - settings.h - loadedHeight - interfaceHeight - setSize(settings.get('bottom'), 'y'), 0);
|
675 |
+
} else if (settings.get('top') !== false) {
|
676 |
+
top += setSize(settings.get('top'), 'y');
|
677 |
+
} else {
|
678 |
+
top += Math.round(Math.max(winheight() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
|
679 |
+
}
|
680 |
+
|
681 |
+
$box.css({top: offset.top, left: offset.left, visibility:'visible'});
|
682 |
+
|
683 |
+
// this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
|
684 |
+
// but it has to be shrank down around the size of div#colorbox when it's done. If not,
|
685 |
+
// it can invoke an obscure IE bug when using iframes.
|
686 |
+
$wrap[0].style.width = $wrap[0].style.height = "9999px";
|
687 |
+
|
688 |
+
function modalDimensions() {
|
689 |
+
$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt($box[0].style.width,10) - interfaceWidth)+'px';
|
690 |
+
$content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt($box[0].style.height,10) - interfaceHeight)+'px';
|
691 |
+
}
|
692 |
+
|
693 |
+
css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
|
694 |
+
|
695 |
+
// setting the speed to 0 if the content hasn't changed size or position
|
696 |
+
if (speed) {
|
697 |
+
var tempSpeed = 0;
|
698 |
+
$.each(css, function(i){
|
699 |
+
if (css[i] !== previousCSS[i]) {
|
700 |
+
tempSpeed = speed;
|
701 |
+
return;
|
702 |
+
}
|
703 |
+
});
|
704 |
+
speed = tempSpeed;
|
705 |
+
}
|
706 |
+
|
707 |
+
previousCSS = css;
|
708 |
+
|
709 |
+
if (!speed) {
|
710 |
+
$box.css(css);
|
711 |
+
}
|
712 |
+
|
713 |
+
$box.dequeue().animate(css, {
|
714 |
+
duration: speed || 0,
|
715 |
+
complete: function () {
|
716 |
+
modalDimensions();
|
717 |
+
|
718 |
+
active = false;
|
719 |
+
|
720 |
+
// shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
|
721 |
+
$wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
|
722 |
+
$wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
|
723 |
+
|
724 |
+
if (settings.get('reposition')) {
|
725 |
+
setTimeout(function () { // small delay before binding onresize due to an IE8 bug.
|
726 |
+
$window.bind('resize.' + prefix, publicMethod.position);
|
727 |
+
}, 1);
|
728 |
+
}
|
729 |
+
|
730 |
+
if ($.isFunction(loadedCallback)) {
|
731 |
+
loadedCallback();
|
732 |
+
}
|
733 |
+
},
|
734 |
+
step: modalDimensions
|
735 |
+
});
|
736 |
+
};
|
737 |
+
|
738 |
+
publicMethod.resize = function (options) {
|
739 |
+
var scrolltop;
|
740 |
+
|
741 |
+
if (open) {
|
742 |
+
options = options || {};
|
743 |
+
|
744 |
+
if (options.width) {
|
745 |
+
settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
|
746 |
+
}
|
747 |
+
|
748 |
+
if (options.innerWidth) {
|
749 |
+
settings.w = setSize(options.innerWidth, 'x');
|
750 |
+
}
|
751 |
+
|
752 |
+
$loaded.css({width: settings.w});
|
753 |
+
|
754 |
+
if (options.height) {
|
755 |
+
settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
|
756 |
+
}
|
757 |
+
|
758 |
+
if (options.innerHeight) {
|
759 |
+
settings.h = setSize(options.innerHeight, 'y');
|
760 |
+
}
|
761 |
+
|
762 |
+
if (!options.innerHeight && !options.height) {
|
763 |
+
scrolltop = $loaded.scrollTop();
|
764 |
+
$loaded.css({height: "auto"});
|
765 |
+
settings.h = $loaded.height();
|
766 |
+
}
|
767 |
+
|
768 |
+
$loaded.css({height: settings.h});
|
769 |
+
|
770 |
+
if(scrolltop) {
|
771 |
+
$loaded.scrollTop(scrolltop);
|
772 |
+
}
|
773 |
+
|
774 |
+
publicMethod.position(settings.get('transition') === "none" ? 0 : settings.get('speed'));
|
775 |
+
}
|
776 |
+
};
|
777 |
+
|
778 |
+
publicMethod.prep = function (object) {
|
779 |
+
if (!open) {
|
780 |
+
return;
|
781 |
+
}
|
782 |
+
|
783 |
+
var callback, speed = settings.get('transition') === "none" ? 0 : settings.get('speed');
|
784 |
+
|
785 |
+
$loaded.remove();
|
786 |
+
|
787 |
+
$loaded = $tag(div, 'LoadedContent').append(object);
|
788 |
+
|
789 |
+
function getWidth() {
|
790 |
+
settings.w = settings.w || $loaded.width();
|
791 |
+
settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
|
792 |
+
return settings.w;
|
793 |
+
}
|
794 |
+
function getHeight() {
|
795 |
+
settings.h = settings.h || $loaded.height();
|
796 |
+
settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
|
797 |
+
return settings.h;
|
798 |
+
}
|
799 |
+
|
800 |
+
$loaded.hide()
|
801 |
+
.appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
|
802 |
+
.css({width: getWidth(), overflow: settings.get('scrolling') ? 'auto' : 'hidden'})
|
803 |
+
.css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
|
804 |
+
.prependTo($content);
|
805 |
+
|
806 |
+
$loadingBay.hide();
|
807 |
+
|
808 |
+
// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
|
809 |
+
|
810 |
+
$(photo).css({'float': 'none'});
|
811 |
+
|
812 |
+
setClass(settings.get('className'));
|
813 |
+
|
814 |
+
callback = function () {
|
815 |
+
var total = $related.length,
|
816 |
+
iframe,
|
817 |
+
complete;
|
818 |
+
|
819 |
+
if (!open) {
|
820 |
+
return;
|
821 |
+
}
|
822 |
+
|
823 |
+
function removeFilter() { // Needed for IE8 in versions of jQuery prior to 1.7.2
|
824 |
+
if ($.support.opacity === false) {
|
825 |
+
$box[0].style.removeAttribute('filter');
|
826 |
+
}
|
827 |
+
}
|
828 |
+
|
829 |
+
complete = function () {
|
830 |
+
clearTimeout(loadingTimer);
|
831 |
+
$loadingOverlay.hide();
|
832 |
+
trigger(event_complete);
|
833 |
+
settings.get('onComplete');
|
834 |
+
};
|
835 |
+
|
836 |
+
|
837 |
+
$title.html(settings.get('title')).show();
|
838 |
+
$loaded.show();
|
839 |
+
|
840 |
+
if (total > 1) { // handle grouping
|
841 |
+
if (typeof settings.get('current') === "string") {
|
842 |
+
$current.html(settings.get('current').replace('{current}', index + 1).replace('{total}', total)).show();
|
843 |
+
}
|
844 |
+
|
845 |
+
$next[(settings.get('loop') || index < total - 1) ? "show" : "hide"]().html(settings.get('next'));
|
846 |
+
$prev[(settings.get('loop') || index) ? "show" : "hide"]().html(settings.get('previous'));
|
847 |
+
|
848 |
+
slideshow();
|
849 |
+
|
850 |
+
// Preloads images within a rel group
|
851 |
+
if (settings.get('preloading')) {
|
852 |
+
$.each([getIndex(-1), getIndex(1)], function(){
|
853 |
+
var img,
|
854 |
+
i = $related[this],
|
855 |
+
settings = new Settings(i, $.data(i, colorbox)),
|
856 |
+
src = settings.get('href');
|
857 |
+
|
858 |
+
if (src && isImage(settings, src)) {
|
859 |
+
src = retinaUrl(settings, src);
|
860 |
+
img = document.createElement('img');
|
861 |
+
img.src = src;
|
862 |
+
}
|
863 |
+
});
|
864 |
+
}
|
865 |
+
} else {
|
866 |
+
$groupControls.hide();
|
867 |
+
}
|
868 |
+
|
869 |
+
if (settings.get('iframe')) {
|
870 |
+
|
871 |
+
iframe = settings.get('createIframe');
|
872 |
+
|
873 |
+
if (!settings.get('scrolling')) {
|
874 |
+
iframe.scrolling = "no";
|
875 |
+
}
|
876 |
+
|
877 |
+
$(iframe)
|
878 |
+
.attr({
|
879 |
+
src: settings.get('href'),
|
880 |
+
'class': prefix + 'Iframe'
|
881 |
+
})
|
882 |
+
.one('load', complete)
|
883 |
+
.appendTo($loaded);
|
884 |
+
|
885 |
+
$events.one(event_purge, function () {
|
886 |
+
iframe.src = "//about:blank";
|
887 |
+
});
|
888 |
+
|
889 |
+
if (settings.get('fastIframe')) {
|
890 |
+
$(iframe).trigger('load');
|
891 |
+
}
|
892 |
+
} else {
|
893 |
+
complete();
|
894 |
+
}
|
895 |
+
|
896 |
+
if (settings.get('transition') === 'fade') {
|
897 |
+
$box.fadeTo(speed, 1, removeFilter);
|
898 |
+
} else {
|
899 |
+
removeFilter();
|
900 |
+
}
|
901 |
+
};
|
902 |
+
|
903 |
+
if (settings.get('transition') === 'fade') {
|
904 |
+
$box.fadeTo(speed, 0, function () {
|
905 |
+
publicMethod.position(0, callback);
|
906 |
+
});
|
907 |
+
} else {
|
908 |
+
publicMethod.position(speed, callback);
|
909 |
+
}
|
910 |
+
};
|
911 |
+
|
912 |
+
function load () {
|
913 |
+
var href, setResize, prep = publicMethod.prep, $inline, request = ++requests;
|
914 |
+
|
915 |
+
active = true;
|
916 |
+
|
917 |
+
photo = false;
|
918 |
+
|
919 |
+
trigger(event_purge);
|
920 |
+
trigger(event_load);
|
921 |
+
settings.get('onLoad');
|
922 |
+
|
923 |
+
settings.h = settings.get('height') ?
|
924 |
+
setSize(settings.get('height'), 'y') - loadedHeight - interfaceHeight :
|
925 |
+
settings.get('innerHeight') && setSize(settings.get('innerHeight'), 'y');
|
926 |
+
|
927 |
+
settings.w = settings.get('width') ?
|
928 |
+
setSize(settings.get('width'), 'x') - loadedWidth - interfaceWidth :
|
929 |
+
settings.get('innerWidth') && setSize(settings.get('innerWidth'), 'x');
|
930 |
+
|
931 |
+
// Sets the minimum dimensions for use in image scaling
|
932 |
+
settings.mw = settings.w;
|
933 |
+
settings.mh = settings.h;
|
934 |
+
|
935 |
+
// Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
|
936 |
+
// If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
|
937 |
+
if (settings.get('maxWidth')) {
|
938 |
+
settings.mw = setSize(settings.get('maxWidth'), 'x') - loadedWidth - interfaceWidth;
|
939 |
+
settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
|
940 |
+
}
|
941 |
+
if (settings.get('maxHeight')) {
|
942 |
+
settings.mh = setSize(settings.get('maxHeight'), 'y') - loadedHeight - interfaceHeight;
|
943 |
+
settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
|
944 |
+
}
|
945 |
+
|
946 |
+
href = settings.get('href');
|
947 |
+
|
948 |
+
loadingTimer = setTimeout(function () {
|
949 |
+
$loadingOverlay.show();
|
950 |
+
}, 100);
|
951 |
+
|
952 |
+
if (settings.get('inline')) {
|
953 |
+
var $target = $(href);
|
954 |
+
// Inserts an empty placeholder where inline content is being pulled from.
|
955 |
+
// An event is bound to put inline content back when Colorbox closes or loads new content.
|
956 |
+
$inline = $('<div>').hide().insertBefore($target);
|
957 |
+
|
958 |
+
$events.one(event_purge, function () {
|
959 |
+
$inline.replaceWith($target);
|
960 |
+
});
|
961 |
+
|
962 |
+
prep($target);
|
963 |
+
} else if (settings.get('iframe')) {
|
964 |
+
// IFrame element won't be added to the DOM until it is ready to be displayed,
|
965 |
+
// to avoid problems with DOM-ready JS that might be trying to run in that iframe.
|
966 |
+
prep(" ");
|
967 |
+
} else if (settings.get('html')) {
|
968 |
+
prep(settings.get('html'));
|
969 |
+
} else if (isImage(settings, href)) {
|
970 |
+
|
971 |
+
href = retinaUrl(settings, href);
|
972 |
+
|
973 |
+
photo = settings.get('createImg');
|
974 |
+
|
975 |
+
$(photo)
|
976 |
+
.addClass(prefix + 'Photo')
|
977 |
+
.bind('error',function () {
|
978 |
+
prep($tag(div, 'Error').html(settings.get('imgError')));
|
979 |
+
})
|
980 |
+
.one('load', function () {
|
981 |
+
if (request !== requests) {
|
982 |
+
return;
|
983 |
+
}
|
984 |
+
|
985 |
+
// A small pause because some browsers will occassionaly report a
|
986 |
+
// img.width and img.height of zero immediately after the img.onload fires
|
987 |
+
setTimeout(function(){
|
988 |
+
var percent;
|
989 |
+
|
990 |
+
if (settings.get('retinaImage') && window.devicePixelRatio > 1) {
|
991 |
+
photo.height = photo.height / window.devicePixelRatio;
|
992 |
+
photo.width = photo.width / window.devicePixelRatio;
|
993 |
+
}
|
994 |
+
|
995 |
+
if (settings.get('scalePhotos')) {
|
996 |
+
setResize = function () {
|
997 |
+
photo.height -= photo.height * percent;
|
998 |
+
photo.width -= photo.width * percent;
|
999 |
+
};
|
1000 |
+
if (settings.mw && photo.width > settings.mw) {
|
1001 |
+
percent = (photo.width - settings.mw) / photo.width;
|
1002 |
+
setResize();
|
1003 |
+
}
|
1004 |
+
if (settings.mh && photo.height > settings.mh) {
|
1005 |
+
percent = (photo.height - settings.mh) / photo.height;
|
1006 |
+
setResize();
|
1007 |
+
}
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
if (settings.h) {
|
1011 |
+
photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
if ($related[1] && (settings.get('loop') || $related[index + 1])) {
|
1015 |
+
photo.style.cursor = 'pointer';
|
1016 |
+
photo.onclick = function () {
|
1017 |
+
publicMethod.next();
|
1018 |
+
};
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
photo.style.width = photo.width + 'px';
|
1022 |
+
photo.style.height = photo.height + 'px';
|
1023 |
+
prep(photo);
|
1024 |
+
}, 1);
|
1025 |
+
});
|
1026 |
+
|
1027 |
+
photo.src = href;
|
1028 |
+
|
1029 |
+
} else if (href) {
|
1030 |
+
$loadingBay.load(href, settings.get('data'), function (data, status) {
|
1031 |
+
if (request === requests) {
|
1032 |
+
prep(status === 'error' ? $tag(div, 'Error').html(settings.get('xhrError')) : $(this).contents());
|
1033 |
+
}
|
1034 |
+
});
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
// Navigates to the next page/image in a set.
|
1039 |
+
publicMethod.next = function () {
|
1040 |
+
if (!active && $related[1] && (settings.get('loop') || $related[index + 1])) {
|
1041 |
+
index = getIndex(1);
|
1042 |
+
launch($related[index]);
|
1043 |
+
}
|
1044 |
+
};
|
1045 |
+
|
1046 |
+
publicMethod.prev = function () {
|
1047 |
+
if (!active && $related[1] && (settings.get('loop') || index)) {
|
1048 |
+
index = getIndex(-1);
|
1049 |
+
launch($related[index]);
|
1050 |
+
}
|
1051 |
+
};
|
1052 |
+
|
1053 |
+
// Note: to use this within an iframe use the following format: parent.jQuery.colorbox.close();
|
1054 |
+
publicMethod.close = function () {
|
1055 |
+
if (open && !closing) {
|
1056 |
+
|
1057 |
+
closing = true;
|
1058 |
+
open = false;
|
1059 |
+
trigger(event_cleanup);
|
1060 |
+
settings.get('onCleanup');
|
1061 |
+
$window.unbind('.' + prefix);
|
1062 |
+
$overlay.fadeTo(settings.get('fadeOut') || 0, 0);
|
1063 |
+
|
1064 |
+
$box.stop().fadeTo(settings.get('fadeOut') || 0, 0, function () {
|
1065 |
+
$box.hide();
|
1066 |
+
$overlay.hide();
|
1067 |
+
trigger(event_purge);
|
1068 |
+
$loaded.remove();
|
1069 |
+
|
1070 |
+
setTimeout(function () {
|
1071 |
+
closing = false;
|
1072 |
+
trigger(event_closed);
|
1073 |
+
settings.get('onClosed');
|
1074 |
+
}, 1);
|
1075 |
+
});
|
1076 |
+
}
|
1077 |
+
};
|
1078 |
+
|
1079 |
+
// Removes changes Colorbox made to the document, but does not remove the plugin.
|
1080 |
+
publicMethod.remove = function () {
|
1081 |
+
if (!$box) { return; }
|
1082 |
+
|
1083 |
+
$box.stop();
|
1084 |
+
$[colorbox].close();
|
1085 |
+
$box.stop(false, true).remove();
|
1086 |
+
$overlay.remove();
|
1087 |
+
closing = false;
|
1088 |
+
$box = null;
|
1089 |
+
$('.' + boxElement)
|
1090 |
+
.removeData(colorbox)
|
1091 |
+
.removeClass(boxElement);
|
1092 |
+
|
1093 |
+
$(document).unbind('click.'+prefix).unbind('keydown.'+prefix);
|
1094 |
+
};
|
1095 |
+
|
1096 |
+
// A method for fetching the current element Colorbox is referencing.
|
1097 |
+
// returns a jQuery object.
|
1098 |
+
publicMethod.element = function () {
|
1099 |
+
return $(settings.el);
|
1100 |
+
};
|
1101 |
+
|
1102 |
+
publicMethod.settings = defaults;
|
1103 |
+
|
1104 |
+
}(jQuery, document, window));
|
lib/SocialLogin/.DS_Store
ADDED
Binary file
|
lib/SocialLogin/Google_Client.php
ADDED
@@ -0,0 +1,453 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2010 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
// Check for the required json and curl extensions, the Google APIs PHP Client
|
19 |
+
// won't function without them.
|
20 |
+
if (! function_exists('curl_init')) {
|
21 |
+
throw new Exception('Google PHP API Client requires the CURL PHP extension');
|
22 |
+
}
|
23 |
+
|
24 |
+
if (! function_exists('json_decode')) {
|
25 |
+
throw new Exception('Google PHP API Client requires the JSON PHP extension');
|
26 |
+
}
|
27 |
+
|
28 |
+
if (! function_exists('http_build_query')) {
|
29 |
+
throw new Exception('Google PHP API Client requires http_build_query()');
|
30 |
+
}
|
31 |
+
|
32 |
+
if (! ini_get('date.timezone') && function_exists('date_default_timezone_set')) {
|
33 |
+
date_default_timezone_set('UTC');
|
34 |
+
}
|
35 |
+
|
36 |
+
// hack around with the include paths a bit so the library 'just works'
|
37 |
+
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
|
38 |
+
|
39 |
+
require_once "config.php";
|
40 |
+
// If a local configuration file is found, merge it's values with the default configuration
|
41 |
+
if (file_exists(dirname(__FILE__) . '/local_config.php')) {
|
42 |
+
$defaultConfig = $apiConfig;
|
43 |
+
require_once (dirname(__FILE__) . '/local_config.php');
|
44 |
+
$apiConfig = array_merge($defaultConfig, $apiConfig);
|
45 |
+
}
|
46 |
+
|
47 |
+
// Include the top level classes, they each include their own dependencies
|
48 |
+
require_once 'service/Google_Model.php';
|
49 |
+
require_once 'service/Google_Service.php';
|
50 |
+
require_once 'service/Google_ServiceResource.php';
|
51 |
+
require_once 'auth/Google_AssertionCredentials.php';
|
52 |
+
require_once 'auth/Google_Signer.php';
|
53 |
+
require_once 'auth/Google_P12Signer.php';
|
54 |
+
require_once 'service/Google_BatchRequest.php';
|
55 |
+
require_once 'external/URITemplateParser.php';
|
56 |
+
require_once 'auth/Google_Auth.php';
|
57 |
+
require_once 'cache/Google_Cache.php';
|
58 |
+
require_once 'io/Google_IO.php';
|
59 |
+
require_once('service/Google_MediaFileUpload.php');
|
60 |
+
|
61 |
+
/**
|
62 |
+
* The Google API Client
|
63 |
+
* http://code.google.com/p/google-api-php-client/
|
64 |
+
*
|
65 |
+
* @author Chris Chabot <chabotc@google.com>
|
66 |
+
* @author Chirag Shah <chirags@google.com>
|
67 |
+
*/
|
68 |
+
class Google_Client {
|
69 |
+
/**
|
70 |
+
* @static
|
71 |
+
* @var Google_Auth $auth
|
72 |
+
*/
|
73 |
+
static $auth;
|
74 |
+
|
75 |
+
/**
|
76 |
+
* @static
|
77 |
+
* @var Google_IO $io
|
78 |
+
*/
|
79 |
+
static $io;
|
80 |
+
|
81 |
+
/**
|
82 |
+
* @static
|
83 |
+
* @var Google_Cache $cache
|
84 |
+
*/
|
85 |
+
static $cache;
|
86 |
+
|
87 |
+
/**
|
88 |
+
* @static
|
89 |
+
* @var boolean $useBatch
|
90 |
+
*/
|
91 |
+
static $useBatch = false;
|
92 |
+
|
93 |
+
/** @var array $scopes */
|
94 |
+
protected $scopes = array();
|
95 |
+
|
96 |
+
/** @var bool $useObjects */
|
97 |
+
protected $useObjects = false;
|
98 |
+
|
99 |
+
// definitions of services that are discovered.
|
100 |
+
protected $services = array();
|
101 |
+
|
102 |
+
// Used to track authenticated state, can't discover services after doing authenticate()
|
103 |
+
private $authenticated = false;
|
104 |
+
|
105 |
+
public function __construct($config = array()) {
|
106 |
+
global $apiConfig;
|
107 |
+
$apiConfig = array_merge($apiConfig, $config);
|
108 |
+
self::$cache = new $apiConfig['cacheClass']();
|
109 |
+
self::$auth = new $apiConfig['authClass']();
|
110 |
+
self::$io = new $apiConfig['ioClass']();
|
111 |
+
}
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Add a service
|
115 |
+
*/
|
116 |
+
public function addService($service, $version = false) {
|
117 |
+
global $apiConfig;
|
118 |
+
if ($this->authenticated) {
|
119 |
+
throw new Google_Exception('Cant add services after having authenticated');
|
120 |
+
}
|
121 |
+
$this->services[$service] = array();
|
122 |
+
if (isset($apiConfig['services'][$service])) {
|
123 |
+
// Merge the service descriptor with the default values
|
124 |
+
$this->services[$service] = array_merge($this->services[$service], $apiConfig['services'][$service]);
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
public function authenticate($code = null) {
|
129 |
+
$service = $this->prepareService();
|
130 |
+
$this->authenticated = true;
|
131 |
+
return self::$auth->authenticate($service, $code);
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* @return array
|
136 |
+
* @visible For Testing
|
137 |
+
*/
|
138 |
+
public function prepareService() {
|
139 |
+
$service = array();
|
140 |
+
$scopes = array();
|
141 |
+
if ($this->scopes) {
|
142 |
+
$scopes = $this->scopes;
|
143 |
+
} else {
|
144 |
+
foreach ($this->services as $key => $val) {
|
145 |
+
if (isset($val['scope'])) {
|
146 |
+
if (is_array($val['scope'])) {
|
147 |
+
$scopes = array_merge($val['scope'], $scopes);
|
148 |
+
} else {
|
149 |
+
$scopes[] = $val['scope'];
|
150 |
+
}
|
151 |
+
} else {
|
152 |
+
$scopes[] = 'https://www.googleapis.com/auth/' . $key;
|
153 |
+
}
|
154 |
+
unset($val['discoveryURI']);
|
155 |
+
unset($val['scope']);
|
156 |
+
$service = array_merge($service, $val);
|
157 |
+
}
|
158 |
+
}
|
159 |
+
$service['scope'] = implode(' ', $scopes);
|
160 |
+
return $service;
|
161 |
+
}
|
162 |
+
|
163 |
+
/**
|
164 |
+
* Set the OAuth 2.0 access token using the string that resulted from calling authenticate()
|
165 |
+
* or Google_Client#getAccessToken().
|
166 |
+
* @param string $accessToken JSON encoded string containing in the following format:
|
167 |
+
* {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
|
168 |
+
* "expires_in":3600, "id_token":"TOKEN", "created":1320790426}
|
169 |
+
*/
|
170 |
+
public function setAccessToken($accessToken) {
|
171 |
+
if ($accessToken == null || 'null' == $accessToken) {
|
172 |
+
$accessToken = null;
|
173 |
+
}
|
174 |
+
self::$auth->setAccessToken($accessToken);
|
175 |
+
}
|
176 |
+
|
177 |
+
/**
|
178 |
+
* Set the type of Auth class the client should use.
|
179 |
+
* @param string $authClassName
|
180 |
+
*/
|
181 |
+
public function setAuthClass($authClassName) {
|
182 |
+
self::$auth = new $authClassName();
|
183 |
+
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Construct the OAuth 2.0 authorization request URI.
|
187 |
+
* @return string
|
188 |
+
*/
|
189 |
+
public function createAuthUrl() {
|
190 |
+
$service = $this->prepareService();
|
191 |
+
return self::$auth->createAuthUrl($service['scope']);
|
192 |
+
}
|
193 |
+
|
194 |
+
/**
|
195 |
+
* Get the OAuth 2.0 access token.
|
196 |
+
* @return string $accessToken JSON encoded string in the following format:
|
197 |
+
* {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
|
198 |
+
* "expires_in":3600,"id_token":"TOKEN", "created":1320790426}
|
199 |
+
*/
|
200 |
+
public function getAccessToken() {
|
201 |
+
$token = self::$auth->getAccessToken();
|
202 |
+
return (null == $token || 'null' == $token) ? null : $token;
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Returns if the access_token is expired.
|
207 |
+
* @return bool Returns True if the access_token is expired.
|
208 |
+
*/
|
209 |
+
public function isAccessTokenExpired() {
|
210 |
+
return self::$auth->isAccessTokenExpired();
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Set the developer key to use, these are obtained through the API Console.
|
215 |
+
* @see http://code.google.com/apis/console-help/#generatingdevkeys
|
216 |
+
* @param string $developerKey
|
217 |
+
*/
|
218 |
+
public function setDeveloperKey($developerKey) {
|
219 |
+
self::$auth->setDeveloperKey($developerKey);
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Set OAuth 2.0 "state" parameter to achieve per-request customization.
|
224 |
+
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2
|
225 |
+
* @param string $state
|
226 |
+
*/
|
227 |
+
public function setState($state) {
|
228 |
+
self::$auth->setState($state);
|
229 |
+
}
|
230 |
+
|
231 |
+
/**
|
232 |
+
* @param string $accessType Possible values for access_type include:
|
233 |
+
* {@code "offline"} to request offline access from the user. (This is the default value)
|
234 |
+
* {@code "online"} to request online access from the user.
|
235 |
+
*/
|
236 |
+
public function setAccessType($accessType) {
|
237 |
+
self::$auth->setAccessType($accessType);
|
238 |
+
}
|
239 |
+
|
240 |
+
/**
|
241 |
+
* @param string $approvalPrompt Possible values for approval_prompt include:
|
242 |
+
* {@code "force"} to force the approval UI to appear. (This is the default value)
|
243 |
+
* {@code "auto"} to request auto-approval when possible.
|
244 |
+
*/
|
245 |
+
public function setApprovalPrompt($approvalPrompt) {
|
246 |
+
self::$auth->setApprovalPrompt($approvalPrompt);
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Set the application name, this is included in the User-Agent HTTP header.
|
251 |
+
* @param string $applicationName
|
252 |
+
*/
|
253 |
+
public function setApplicationName($applicationName) {
|
254 |
+
global $apiConfig;
|
255 |
+
$apiConfig['application_name'] = $applicationName;
|
256 |
+
}
|
257 |
+
|
258 |
+
/**
|
259 |
+
* Set the OAuth 2.0 Client ID.
|
260 |
+
* @param string $clientId
|
261 |
+
*/
|
262 |
+
public function setClientId($clientId) {
|
263 |
+
global $apiConfig;
|
264 |
+
$apiConfig['oauth2_client_id'] = $clientId;
|
265 |
+
self::$auth->clientId = $clientId;
|
266 |
+
}
|
267 |
+
|
268 |
+
/**
|
269 |
+
* Get the OAuth 2.0 Client ID.
|
270 |
+
*/
|
271 |
+
public function getClientId() {
|
272 |
+
return self::$auth->clientId;
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Set the OAuth 2.0 Client Secret.
|
277 |
+
* @param string $clientSecret
|
278 |
+
*/
|
279 |
+
public function setClientSecret($clientSecret) {
|
280 |
+
global $apiConfig;
|
281 |
+
$apiConfig['oauth2_client_secret'] = $clientSecret;
|
282 |
+
self::$auth->clientSecret = $clientSecret;
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Get the OAuth 2.0 Client Secret.
|
287 |
+
*/
|
288 |
+
public function getClientSecret() {
|
289 |
+
return self::$auth->clientSecret;
|
290 |
+
}
|
291 |
+
|
292 |
+
/**
|
293 |
+
* Set the OAuth 2.0 Redirect URI.
|
294 |
+
* @param string $redirectUri
|
295 |
+
*/
|
296 |
+
public function setRedirectUri($redirectUri) {
|
297 |
+
global $apiConfig;
|
298 |
+
$apiConfig['oauth2_redirect_uri'] = $redirectUri;
|
299 |
+
self::$auth->redirectUri = $redirectUri;
|
300 |
+
}
|
301 |
+
|
302 |
+
/**
|
303 |
+
* Get the OAuth 2.0 Redirect URI.
|
304 |
+
*/
|
305 |
+
public function getRedirectUri() {
|
306 |
+
return self::$auth->redirectUri;
|
307 |
+
}
|
308 |
+
|
309 |
+
/**
|
310 |
+
* Fetches a fresh OAuth 2.0 access token with the given refresh token.
|
311 |
+
* @param string $refreshToken
|
312 |
+
* @return void
|
313 |
+
*/
|
314 |
+
public function refreshToken($refreshToken) {
|
315 |
+
self::$auth->refreshToken($refreshToken);
|
316 |
+
}
|
317 |
+
|
318 |
+
/**
|
319 |
+
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
|
320 |
+
* token, if a token isn't provided.
|
321 |
+
* @throws Google_AuthException
|
322 |
+
* @param string|null $token The token (access token or a refresh token) that should be revoked.
|
323 |
+
* @return boolean Returns True if the revocation was successful, otherwise False.
|
324 |
+
*/
|
325 |
+
public function revokeToken($token = null) {
|
326 |
+
self::$auth->revokeToken($token);
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Verify an id_token. This method will verify the current id_token, if one
|
331 |
+
* isn't provided.
|
332 |
+
* @throws Google_AuthException
|
333 |
+
* @param string|null $token The token (id_token) that should be verified.
|
334 |
+
* @return Google_LoginTicket Returns an apiLoginTicket if the verification was
|
335 |
+
* successful.
|
336 |
+
*/
|
337 |
+
public function verifyIdToken($token = null) {
|
338 |
+
return self::$auth->verifyIdToken($token);
|
339 |
+
}
|
340 |
+
|
341 |
+
/**
|
342 |
+
* @param Google_AssertionCredentials $creds
|
343 |
+
* @return void
|
344 |
+
*/
|
345 |
+
public function setAssertionCredentials(Google_AssertionCredentials $creds) {
|
346 |
+
self::$auth->setAssertionCredentials($creds);
|
347 |
+
}
|
348 |
+
|
349 |
+
/**
|
350 |
+
* This function allows you to overrule the automatically generated scopes,
|
351 |
+
* so that you can ask for more or less permission in the auth flow
|
352 |
+
* Set this before you call authenticate() though!
|
353 |
+
* @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/moderator')
|
354 |
+
*/
|
355 |
+
public function setScopes($scopes) {
|
356 |
+
$this->scopes = is_string($scopes) ? explode(" ", $scopes) : $scopes;
|
357 |
+
}
|
358 |
+
|
359 |
+
/**
|
360 |
+
* Declare if objects should be returned by the api service classes.
|
361 |
+
*
|
362 |
+
* @param boolean $useObjects True if objects should be returned by the service classes.
|
363 |
+
* False if associative arrays should be returned (default behavior).
|
364 |
+
* @experimental
|
365 |
+
*/
|
366 |
+
public function setUseObjects($useObjects) {
|
367 |
+
global $apiConfig;
|
368 |
+
$apiConfig['use_objects'] = $useObjects;
|
369 |
+
}
|
370 |
+
|
371 |
+
/**
|
372 |
+
* Declare if objects should be returned by the api service classes.
|
373 |
+
*
|
374 |
+
* @param boolean $useBatch True if the experimental batch support should
|
375 |
+
* be enabled. Defaults to False.
|
376 |
+
* @experimental
|
377 |
+
*/
|
378 |
+
public function setUseBatch($useBatch) {
|
379 |
+
self::$useBatch = $useBatch;
|
380 |
+
}
|
381 |
+
|
382 |
+
/**
|
383 |
+
* @static
|
384 |
+
* @return Google_Auth the implementation of apiAuth.
|
385 |
+
*/
|
386 |
+
public static function getAuth() {
|
387 |
+
return Google_Client::$auth;
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* @static
|
392 |
+
* @return Google_IO the implementation of apiIo.
|
393 |
+
*/
|
394 |
+
public static function getIo() {
|
395 |
+
return Google_Client::$io;
|
396 |
+
}
|
397 |
+
|
398 |
+
/**
|
399 |
+
* @return Google_Cache the implementation of apiCache.
|
400 |
+
*/
|
401 |
+
public function getCache() {
|
402 |
+
return Google_Client::$cache;
|
403 |
+
}
|
404 |
+
}
|
405 |
+
|
406 |
+
// Exceptions that the Google PHP API Library can throw
|
407 |
+
class Google_Exception extends Exception {}
|
408 |
+
class Google_AuthException extends Google_Exception {}
|
409 |
+
class Google_CacheException extends Google_Exception {}
|
410 |
+
class Google_IOException extends Google_Exception {}
|
411 |
+
class Google_ServiceException extends Google_Exception {
|
412 |
+
/**
|
413 |
+
* Optional list of errors returned in a JSON body of an HTTP error response.
|
414 |
+
*/
|
415 |
+
protected $errors = array();
|
416 |
+
|
417 |
+
/**
|
418 |
+
* Override default constructor to add ability to set $errors.
|
419 |
+
*
|
420 |
+
* @param string $message
|
421 |
+
* @param int $code
|
422 |
+
* @param Exception|null $previous
|
423 |
+
* @param [{string, string}] errors List of errors returned in an HTTP
|
424 |
+
* response. Defaults to [].
|
425 |
+
*/
|
426 |
+
public function __construct($message, $code = 0, Exception $previous = null,
|
427 |
+
$errors = array()) {
|
428 |
+
if(version_compare(PHP_VERSION, '5.3.0') >= 0) {
|
429 |
+
parent::__construct($message, $code, $previous);
|
430 |
+
} else {
|
431 |
+
parent::__construct($message, $code);
|
432 |
+
}
|
433 |
+
|
434 |
+
$this->errors = $errors;
|
435 |
+
}
|
436 |
+
|
437 |
+
/**
|
438 |
+
* An example of the possible errors returned.
|
439 |
+
*
|
440 |
+
* {
|
441 |
+
* "domain": "global",
|
442 |
+
* "reason": "authError",
|
443 |
+
* "message": "Invalid Credentials",
|
444 |
+
* "locationType": "header",
|
445 |
+
* "location": "Authorization",
|
446 |
+
* }
|
447 |
+
*
|
448 |
+
* @return [{string, string}] List of errors return in an HTTP response or [].
|
449 |
+
*/
|
450 |
+
public function getErrors() {
|
451 |
+
return $this->errors;
|
452 |
+
}
|
453 |
+
}
|
lib/SocialLogin/auth/Google_AssertionCredentials.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2012 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Credentials object used for OAuth 2.0 Signed JWT assertion grants.
|
20 |
+
*
|
21 |
+
* @author Chirag Shah <chirags@google.com>
|
22 |
+
*/
|
23 |
+
class Google_AssertionCredentials {
|
24 |
+
const MAX_TOKEN_LIFETIME_SECS = 3600;
|
25 |
+
|
26 |
+
public $serviceAccountName;
|
27 |
+
public $scopes;
|
28 |
+
public $privateKey;
|
29 |
+
public $privateKeyPassword;
|
30 |
+
public $assertionType;
|
31 |
+
public $prn;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @param $serviceAccountName
|
35 |
+
* @param $scopes array List of scopes
|
36 |
+
* @param $privateKey
|
37 |
+
* @param string $privateKeyPassword
|
38 |
+
* @param string $assertionType
|
39 |
+
* @param bool|string $prn The email address of the user for which the
|
40 |
+
* application is requesting delegated access.
|
41 |
+
*/
|
42 |
+
public function __construct(
|
43 |
+
$serviceAccountName,
|
44 |
+
$scopes,
|
45 |
+
$privateKey,
|
46 |
+
$privateKeyPassword = 'notasecret',
|
47 |
+
$assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer',
|
48 |
+
$prn = false) {
|
49 |
+
$this->serviceAccountName = $serviceAccountName;
|
50 |
+
$this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes);
|
51 |
+
$this->privateKey = $privateKey;
|
52 |
+
$this->privateKeyPassword = $privateKeyPassword;
|
53 |
+
$this->assertionType = $assertionType;
|
54 |
+
$this->prn = $prn;
|
55 |
+
}
|
56 |
+
|
57 |
+
public function generateAssertion() {
|
58 |
+
$now = time();
|
59 |
+
|
60 |
+
$jwtParams = array(
|
61 |
+
'aud' => Google_OAuth2::OAUTH2_TOKEN_URI,
|
62 |
+
'scope' => $this->scopes,
|
63 |
+
'iat' => $now,
|
64 |
+
'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
|
65 |
+
'iss' => $this->serviceAccountName,
|
66 |
+
);
|
67 |
+
|
68 |
+
if ($this->prn !== false) {
|
69 |
+
$jwtParams['prn'] = $this->prn;
|
70 |
+
}
|
71 |
+
|
72 |
+
return $this->makeSignedJwt($jwtParams);
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Creates a signed JWT.
|
77 |
+
* @param array $payload
|
78 |
+
* @return string The signed JWT.
|
79 |
+
*/
|
80 |
+
private function makeSignedJwt($payload) {
|
81 |
+
$header = array('typ' => 'JWT', 'alg' => 'RS256');
|
82 |
+
|
83 |
+
$segments = array(
|
84 |
+
Google_Utils::urlSafeB64Encode(json_encode($header)),
|
85 |
+
Google_Utils::urlSafeB64Encode(json_encode($payload))
|
86 |
+
);
|
87 |
+
|
88 |
+
$signingInput = implode('.', $segments);
|
89 |
+
$signer = new Google_P12Signer($this->privateKey, $this->privateKeyPassword);
|
90 |
+
$signature = $signer->sign($signingInput);
|
91 |
+
$segments[] = Google_Utils::urlSafeB64Encode($signature);
|
92 |
+
|
93 |
+
return implode(".", $segments);
|
94 |
+
}
|
95 |
+
}
|
lib/SocialLogin/auth/Google_Auth.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2010 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
require_once "Google_AuthNone.php";
|
19 |
+
require_once "Google_OAuth2.php";
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Abstract class for the Authentication in the API client
|
23 |
+
* @author Chris Chabot <chabotc@google.com>
|
24 |
+
*
|
25 |
+
*/
|
26 |
+
abstract class Google_Auth {
|
27 |
+
abstract public function authenticate($service);
|
28 |
+
abstract public function sign(Google_HttpRequest $request);
|
29 |
+
abstract public function createAuthUrl($scope);
|
30 |
+
|
31 |
+
abstract public function getAccessToken();
|
32 |
+
abstract public function setAccessToken($accessToken);
|
33 |
+
abstract public function setDeveloperKey($developerKey);
|
34 |
+
abstract public function refreshToken($refreshToken);
|
35 |
+
abstract public function revokeToken();
|
36 |
+
}
|
lib/SocialLogin/auth/Google_AuthNone.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2010 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Do-nothing authentication implementation, use this if you want to make un-authenticated calls
|
20 |
+
* @author Chris Chabot <chabotc@google.com>
|
21 |
+
* @author Chirag Shah <chirags@google.com>
|
22 |
+
*/
|
23 |
+
class Google_AuthNone extends Google_Auth {
|
24 |
+
public $key = null;
|
25 |
+
|
26 |
+
public function __construct() {
|
27 |
+
global $apiConfig;
|
28 |
+
if (!empty($apiConfig['developer_key'])) {
|
29 |
+
$this->setDeveloperKey($apiConfig['developer_key']);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
public function setDeveloperKey($key) {$this->key = $key;}
|
34 |
+
public function authenticate($service) {/*noop*/}
|
35 |
+
public function setAccessToken($accessToken) {/* noop*/}
|
36 |
+
public function getAccessToken() {return null;}
|
37 |
+
public function createAuthUrl($scope) {return null;}
|
38 |
+
public function refreshToken($refreshToken) {/* noop*/}
|
39 |
+
public function revokeToken() {/* noop*/}
|
40 |
+
|
41 |
+
public function sign(Google_HttpRequest $request) {
|
42 |
+
if ($this->key) {
|
43 |
+
$request->setUrl($request->getUrl() . ((strpos($request->getUrl(), '?') === false) ? '?' : '&')
|
44 |
+
. 'key='.urlencode($this->key));
|
45 |
+
}
|
46 |
+
return $request;
|
47 |
+
}
|
48 |
+
}
|
lib/SocialLogin/auth/Google_LoginTicket.php
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2011 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Class to hold information about an authenticated login.
|
20 |
+
*
|
21 |
+
* @author Brian Eaton <beaton@google.com>
|
22 |
+
*/
|
23 |
+
class Google_LoginTicket {
|
24 |
+
const USER_ATTR = "id";
|
25 |
+
|
26 |
+
// Information from id token envelope.
|
27 |
+
private $envelope;
|
28 |
+
|
29 |
+
// Information from id token payload.
|
30 |
+
private $payload;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Creates a user based on the supplied token.
|
34 |
+
*
|
35 |
+
* @param string $envelope Header from a verified authentication token.
|
36 |
+
* @param string $payload Information from a verified authentication token.
|
37 |
+
*/
|
38 |
+
public function __construct($envelope, $payload) {
|
39 |
+
$this->envelope = $envelope;
|
40 |
+
$this->payload = $payload;
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Returns the numeric identifier for the user.
|
45 |
+
* @throws Google_AuthException
|
46 |
+
* @return
|
47 |
+
*/
|
48 |
+
public function getUserId() {
|
49 |
+
if (array_key_exists(self::USER_ATTR, $this->payload)) {
|
50 |
+
return $this->payload[self::USER_ATTR];
|
51 |
+
}
|
52 |
+
throw new Google_AuthException("No user_id in token");
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Returns attributes from the login ticket. This can contain
|
57 |
+
* various information about the user session.
|
58 |
+
* @return array
|
59 |
+
*/
|
60 |
+
public function getAttributes() {
|
61 |
+
return array("envelope" => $this->envelope, "payload" => $this->payload);
|
62 |
+
}
|
63 |
+
}
|
lib/SocialLogin/auth/Google_OAuth2.php
ADDED
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2008 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
require_once "Google_Verifier.php";
|
19 |
+
require_once "Google_LoginTicket.php";
|
20 |
+
require_once "service/Google_Utils.php";
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Authentication class that deals with the OAuth 2 web-server authentication flow
|
24 |
+
*
|
25 |
+
* @author Chris Chabot <chabotc@google.com>
|
26 |
+
* @author Chirag Shah <chirags@google.com>
|
27 |
+
*
|
28 |
+
*/
|
29 |
+
class Google_OAuth2 extends Google_Auth {
|
30 |
+
public $clientId;
|
31 |
+
public $clientSecret;
|
32 |
+
public $developerKey;
|
33 |
+
public $token;
|
34 |
+
public $redirectUri;
|
35 |
+
public $state;
|
36 |
+
public $accessType = 'offline';
|
37 |
+
public $approvalPrompt = 'force';
|
38 |
+
|
39 |
+
/** @var Google_AssertionCredentials $assertionCredentials */
|
40 |
+
public $assertionCredentials;
|
41 |
+
|
42 |
+
const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
|
43 |
+
const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token';
|
44 |
+
const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth';
|
45 |
+
const OAUTH2_FEDERATED_SIGNON_CERTS_URL = 'https://www.googleapis.com/oauth2/v1/certs';
|
46 |
+
const CLOCK_SKEW_SECS = 300; // five minutes in seconds
|
47 |
+
const AUTH_TOKEN_LIFETIME_SECS = 300; // five minutes in seconds
|
48 |
+
const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Instantiates the class, but does not initiate the login flow, leaving it
|
52 |
+
* to the discretion of the caller (which is done by calling authenticate()).
|
53 |
+
*/
|
54 |
+
public function __construct() {
|
55 |
+
global $apiConfig;
|
56 |
+
|
57 |
+
if (! empty($apiConfig['developer_key'])) {
|
58 |
+
$this->developerKey = $apiConfig['developer_key'];
|
59 |
+
}
|
60 |
+
|
61 |
+
if (! empty($apiConfig['oauth2_client_id'])) {
|
62 |
+
$this->clientId = $apiConfig['oauth2_client_id'];
|
63 |
+
}
|
64 |
+
|
65 |
+
if (! empty($apiConfig['oauth2_client_secret'])) {
|
66 |
+
$this->clientSecret = $apiConfig['oauth2_client_secret'];
|
67 |
+
}
|
68 |
+
|
69 |
+
if (! empty($apiConfig['oauth2_redirect_uri'])) {
|
70 |
+
$this->redirectUri = $apiConfig['oauth2_redirect_uri'];
|
71 |
+
}
|
72 |
+
|
73 |
+
if (! empty($apiConfig['oauth2_access_type'])) {
|
74 |
+
$this->accessType = $apiConfig['oauth2_access_type'];
|
75 |
+
}
|
76 |
+
|
77 |
+
if (! empty($apiConfig['oauth2_approval_prompt'])) {
|
78 |
+
$this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* @param $service
|
84 |
+
* @param string|null $code
|
85 |
+
* @throws Google_AuthException
|
86 |
+
* @return string
|
87 |
+
*/
|
88 |
+
public function authenticate($service, $code = null) {
|
89 |
+
if (!$code && isset($_GET['code'])) {
|
90 |
+
$code = $_GET['code'];
|
91 |
+
}
|
92 |
+
|
93 |
+
if ($code) {
|
94 |
+
// We got here from the redirect from a successful authorization grant, fetch the access token
|
95 |
+
$request = Google_Client::$io->makeRequest(new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), array(
|
96 |
+
'code' => $code,
|
97 |
+
'grant_type' => 'authorization_code',
|
98 |
+
'redirect_uri' => $this->redirectUri,
|
99 |
+
'client_id' => $this->clientId,
|
100 |
+
'client_secret' => $this->clientSecret
|
101 |
+
)));
|
102 |
+
|
103 |
+
if ($request->getResponseHttpCode() == 200) {
|
104 |
+
$this->setAccessToken($request->getResponseBody());
|
105 |
+
$this->token['created'] = time();
|
106 |
+
return $this->getAccessToken();
|
107 |
+
} else {
|
108 |
+
$response = $request->getResponseBody();
|
109 |
+
$decodedResponse = json_decode($response, true);
|
110 |
+
if ($decodedResponse != null && $decodedResponse['error']) {
|
111 |
+
$response = $decodedResponse['error'];
|
112 |
+
}
|
113 |
+
throw new Google_AuthException("Error fetching OAuth2 access token, message: '$response'", $request->getResponseHttpCode());
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
$authUrl = $this->createAuthUrl($service['scope']);
|
118 |
+
header('Location: ' . $authUrl);
|
119 |
+
return true;
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* Create a URL to obtain user authorization.
|
124 |
+
* The authorization endpoint allows the user to first
|
125 |
+
* authenticate, and then grant/deny the access request.
|
126 |
+
* @param string $scope The scope is expressed as a list of space-delimited strings.
|
127 |
+
* @return string
|
128 |
+
*/
|
129 |
+
public function createAuthUrl($scope) {
|
130 |
+
$params = array(
|
131 |
+
'response_type=code',
|
132 |
+
'redirect_uri=' . urlencode($this->redirectUri),
|
133 |
+
'client_id=' . urlencode($this->clientId),
|
134 |
+
'scope=' . urlencode($scope),
|
135 |
+
'access_type=' . urlencode($this->accessType),
|
136 |
+
'approval_prompt=' . urlencode($this->approvalPrompt)
|
137 |
+
);
|
138 |
+
|
139 |
+
if (isset($this->state)) {
|
140 |
+
$params[] = 'state=' . urlencode($this->state);
|
141 |
+
}
|
142 |
+
$params = implode('&', $params);
|
143 |
+
return self::OAUTH2_AUTH_URL . "?$params";
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* @param string $token
|
148 |
+
* @throws Google_AuthException
|
149 |
+
*/
|
150 |
+
public function setAccessToken($token) {
|
151 |
+
$token = json_decode($token, true);
|
152 |
+
if ($token == null) {
|
153 |
+
throw new Google_AuthException('Could not json decode the token');
|
154 |
+
}
|
155 |
+
if (! isset($token['access_token'])) {
|
156 |
+
throw new Google_AuthException("Invalid token format");
|
157 |
+
}
|
158 |
+
$this->token = $token;
|
159 |
+
}
|
160 |
+
|
161 |
+
public function getAccessToken() {
|
162 |
+
return json_encode($this->token);
|
163 |
+
}
|
164 |
+
|
165 |
+
public function setDeveloperKey($developerKey) {
|
166 |
+
$this->developerKey = $developerKey;
|
167 |
+
}
|
168 |
+
|
169 |
+
public function setState($state) {
|
170 |
+
$this->state = $state;
|
171 |
+
}
|
172 |
+
|
173 |
+
public function setAccessType($accessType) {
|
174 |
+
$this->accessType = $accessType;
|
175 |
+
}
|
176 |
+
|
177 |
+
public function setApprovalPrompt($approvalPrompt) {
|
178 |
+
$this->approvalPrompt = $approvalPrompt;
|
179 |
+
}
|
180 |
+
|
181 |
+
public function setAssertionCredentials(Google_AssertionCredentials $creds) {
|
182 |
+
$this->assertionCredentials = $creds;
|
183 |
+
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Include an accessToken in a given apiHttpRequest.
|
187 |
+
* @param Google_HttpRequest $request
|
188 |
+
* @return Google_HttpRequest
|
189 |
+
* @throws Google_AuthException
|
190 |
+
*/
|
191 |
+
public function sign(Google_HttpRequest $request) {
|
192 |
+
// add the developer key to the request before signing it
|
193 |
+
if ($this->developerKey) {
|
194 |
+
$requestUrl = $request->getUrl();
|
195 |
+
$requestUrl .= (strpos($request->getUrl(), '?') === false) ? '?' : '&';
|
196 |
+
$requestUrl .= 'key=' . urlencode($this->developerKey);
|
197 |
+
$request->setUrl($requestUrl);
|
198 |
+
}
|
199 |
+
|
200 |
+
// Cannot sign the request without an OAuth access token.
|
201 |
+
if (null == $this->token && null == $this->assertionCredentials) {
|
202 |
+
return $request;
|
203 |
+
}
|
204 |
+
|
205 |
+
// Check if the token is set to expire in the next 30 seconds
|
206 |
+
// (or has already expired).
|
207 |
+
if ($this->isAccessTokenExpired()) {
|
208 |
+
if ($this->assertionCredentials) {
|
209 |
+
$this->refreshTokenWithAssertion();
|
210 |
+
} else {
|
211 |
+
if (! array_key_exists('refresh_token', $this->token)) {
|
212 |
+
throw new Google_AuthException("The OAuth 2.0 access token has expired, "
|
213 |
+
. "and a refresh token is not available. Refresh tokens are not "
|
214 |
+
. "returned for responses that were auto-approved.");
|
215 |
+
}
|
216 |
+
$this->refreshToken($this->token['refresh_token']);
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
// Add the OAuth2 header to the request
|
221 |
+
$request->setRequestHeaders(
|
222 |
+
array('Authorization' => 'Bearer ' . $this->token['access_token'])
|
223 |
+
);
|
224 |
+
|
225 |
+
return $request;
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Fetches a fresh access token with the given refresh token.
|
230 |
+
* @param string $refreshToken
|
231 |
+
* @return void
|
232 |
+
*/
|
233 |
+
public function refreshToken($refreshToken) {
|
234 |
+
$this->refreshTokenRequest(array(
|
235 |
+
'client_id' => $this->clientId,
|
236 |
+
'client_secret' => $this->clientSecret,
|
237 |
+
'refresh_token' => $refreshToken,
|
238 |
+
'grant_type' => 'refresh_token'
|
239 |
+
));
|
240 |
+
}
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Fetches a fresh access token with a given assertion token.
|
244 |
+
* @param Google_AssertionCredentials $assertionCredentials optional.
|
245 |
+
* @return void
|
246 |
+
*/
|
247 |
+
public function refreshTokenWithAssertion($assertionCredentials = null) {
|
248 |
+
if (!$assertionCredentials) {
|
249 |
+
$assertionCredentials = $this->assertionCredentials;
|
250 |
+
}
|
251 |
+
|
252 |
+
$this->refreshTokenRequest(array(
|
253 |
+
'grant_type' => 'assertion',
|
254 |
+
'assertion_type' => $assertionCredentials->assertionType,
|
255 |
+
'assertion' => $assertionCredentials->generateAssertion(),
|
256 |
+
));
|
257 |
+
}
|
258 |
+
|
259 |
+
private function refreshTokenRequest($params) {
|
260 |
+
$http = new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), $params);
|
261 |
+
$request = Google_Client::$io->makeRequest($http);
|
262 |
+
|
263 |
+
$code = $request->getResponseHttpCode();
|
264 |
+
$body = $request->getResponseBody();
|
265 |
+
if (200 == $code) {
|
266 |
+
$token = json_decode($body, true);
|
267 |
+
if ($token == null) {
|
268 |
+
throw new Google_AuthException("Could not json decode the access token");
|
269 |
+
}
|
270 |
+
|
271 |
+
if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
|
272 |
+
throw new Google_AuthException("Invalid token format");
|
273 |
+
}
|
274 |
+
|
275 |
+
$this->token['access_token'] = $token['access_token'];
|
276 |
+
$this->token['expires_in'] = $token['expires_in'];
|
277 |
+
$this->token['created'] = time();
|
278 |
+
} else {
|
279 |
+
throw new Google_AuthException("Error refreshing the OAuth2 token, message: '$body'", $code);
|
280 |
+
}
|
281 |
+
}
|
282 |
+
|
283 |
+
/**
|
284 |
+
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
|
285 |
+
* token, if a token isn't provided.
|
286 |
+
* @throws Google_AuthException
|
287 |
+
* @param string|null $token The token (access token or a refresh token) that should be revoked.
|
288 |
+
* @return boolean Returns True if the revocation was successful, otherwise False.
|
289 |
+
*/
|
290 |
+
public function revokeToken($token = null) {
|
291 |
+
if (!$token) {
|
292 |
+
$token = $this->token['access_token'];
|
293 |
+
}
|
294 |
+
$request = new Google_HttpRequest(self::OAUTH2_REVOKE_URI, 'POST', array(), "token=$token");
|
295 |
+
$response = Google_Client::$io->makeRequest($request);
|
296 |
+
$code = $response->getResponseHttpCode();
|
297 |
+
if ($code == 200) {
|
298 |
+
$this->token = null;
|
299 |
+
return true;
|
300 |
+
}
|
301 |
+
|
302 |
+
return false;
|
303 |
+
}
|
304 |
+
|
305 |
+
/**
|
306 |
+
* Returns if the access_token is expired.
|
307 |
+
* @return bool Returns True if the access_token is expired.
|
308 |
+
*/
|
309 |
+
public function isAccessTokenExpired() {
|
310 |
+
if (null == $this->token) {
|
311 |
+
return true;
|
312 |
+
}
|
313 |
+
|
314 |
+
// If the token is set to expire in the next 30 seconds.
|
315 |
+
$expired = ($this->token['created']
|
316 |
+
+ ($this->token['expires_in'] - 30)) < time();
|
317 |
+
|
318 |
+
return $expired;
|
319 |
+
}
|
320 |
+
|
321 |
+
// Gets federated sign-on certificates to use for verifying identity tokens.
|
322 |
+
// Returns certs as array structure, where keys are key ids, and values
|
323 |
+
// are PEM encoded certificates.
|
324 |
+
private function getFederatedSignOnCerts() {
|
325 |
+
// This relies on makeRequest caching certificate responses.
|
326 |
+
$request = Google_Client::$io->makeRequest(new Google_HttpRequest(
|
327 |
+
self::OAUTH2_FEDERATED_SIGNON_CERTS_URL));
|
328 |
+
if ($request->getResponseHttpCode() == 200) {
|
329 |
+
$certs = json_decode($request->getResponseBody(), true);
|
330 |
+
if ($certs) {
|
331 |
+
return $certs;
|
332 |
+
}
|
333 |
+
}
|
334 |
+
throw new Google_AuthException(
|
335 |
+
"Failed to retrieve verification certificates: '" .
|
336 |
+
$request->getResponseBody() . "'.",
|
337 |
+
$request->getResponseHttpCode());
|
338 |
+
}
|
339 |
+
|
340 |
+
/**
|
341 |
+
* Verifies an id token and returns the authenticated apiLoginTicket.
|
342 |
+
* Throws an exception if the id token is not valid.
|
343 |
+
* The audience parameter can be used to control which id tokens are
|
344 |
+
* accepted. By default, the id token must have been issued to this OAuth2 client.
|
345 |
+
*
|
346 |
+
* @param $id_token
|
347 |
+
* @param $audience
|
348 |
+
* @return Google_LoginTicket
|
349 |
+
*/
|
350 |
+
public function verifyIdToken($id_token = null, $audience = null) {
|
351 |
+
if (!$id_token) {
|
352 |
+
$id_token = $this->token['id_token'];
|
353 |
+
}
|
354 |
+
|
355 |
+
$certs = $this->getFederatedSignonCerts();
|
356 |
+
if (!$audience) {
|
357 |
+
$audience = $this->clientId;
|
358 |
+
}
|
359 |
+
return $this->verifySignedJwtWithCerts($id_token, $certs, $audience);
|
360 |
+
}
|
361 |
+
|
362 |
+
// Verifies the id token, returns the verified token contents.
|
363 |
+
// Visible for testing.
|
364 |
+
function verifySignedJwtWithCerts($jwt, $certs, $required_audience) {
|
365 |
+
$segments = explode(".", $jwt);
|
366 |
+
if (count($segments) != 3) {
|
367 |
+
throw new Google_AuthException("Wrong number of segments in token: $jwt");
|
368 |
+
}
|
369 |
+
$signed = $segments[0] . "." . $segments[1];
|
370 |
+
$signature = Google_Utils::urlSafeB64Decode($segments[2]);
|
371 |
+
|
372 |
+
// Parse envelope.
|
373 |
+
$envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
|
374 |
+
if (!$envelope) {
|
375 |
+
throw new Google_AuthException("Can't parse token envelope: " . $segments[0]);
|
376 |
+
}
|
377 |
+
|
378 |
+
// Parse token
|
379 |
+
$json_body = Google_Utils::urlSafeB64Decode($segments[1]);
|
380 |
+
$payload = json_decode($json_body, true);
|
381 |
+
if (!$payload) {
|
382 |
+
throw new Google_AuthException("Can't parse token payload: " . $segments[1]);
|
383 |
+
}
|
384 |
+
|
385 |
+
// Check signature
|
386 |
+
$verified = false;
|
387 |
+
foreach ($certs as $keyName => $pem) {
|
388 |
+
$public_key = new Google_PemVerifier($pem);
|
389 |
+
if ($public_key->verify($signed, $signature)) {
|
390 |
+
$verified = true;
|
391 |
+
break;
|
392 |
+
}
|
393 |
+
}
|
394 |
+
|
395 |
+
if (!$verified) {
|
396 |
+
throw new Google_AuthException("Invalid token signature: $jwt");
|
397 |
+
}
|
398 |
+
|
399 |
+
// Check issued-at timestamp
|
400 |
+
$iat = 0;
|
401 |
+
if (array_key_exists("iat", $payload)) {
|
402 |
+
$iat = $payload["iat"];
|
403 |
+
}
|
404 |
+
if (!$iat) {
|
405 |
+
throw new Google_AuthException("No issue time in token: $json_body");
|
406 |
+
}
|
407 |
+
$earliest = $iat - self::CLOCK_SKEW_SECS;
|
408 |
+
|
409 |
+
// Check expiration timestamp
|
410 |
+
$now = time();
|
411 |
+
$exp = 0;
|
412 |
+
if (array_key_exists("exp", $payload)) {
|
413 |
+
$exp = $payload["exp"];
|
414 |
+
}
|
415 |
+
if (!$exp) {
|
416 |
+
throw new Google_AuthException("No expiration time in token: $json_body");
|
417 |
+
}
|
418 |
+
if ($exp >= $now + self::MAX_TOKEN_LIFETIME_SECS) {
|
419 |
+
throw new Google_AuthException(
|
420 |
+
"Expiration time too far in future: $json_body");
|
421 |
+
}
|
422 |
+
|
423 |
+
$latest = $exp + self::CLOCK_SKEW_SECS;
|
424 |
+
if ($now < $earliest) {
|
425 |
+
throw new Google_AuthException(
|
426 |
+
"Token used too early, $now < $earliest: $json_body");
|
427 |
+
}
|
428 |
+
if ($now > $latest) {
|
429 |
+
throw new Google_AuthException(
|
430 |
+
"Token used too late, $now > $latest: $json_body");
|
431 |
+
}
|
432 |
+
|
433 |
+
// TODO(beaton): check issuer field?
|
434 |
+
|
435 |
+
// Check audience
|
436 |
+
$aud = $payload["aud"];
|
437 |
+
if ($aud != $required_audience) {
|
438 |
+
throw new Google_AuthException("Wrong recipient, $aud != $required_audience: $json_body");
|
439 |
+
}
|
440 |
+
|
441 |
+
// All good.
|
442 |
+
return new Google_LoginTicket($envelope, $payload);
|
443 |
+
}
|
444 |
+
}
|
lib/SocialLogin/auth/Google_P12Signer.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2011 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Signs data.
|
20 |
+
*
|
21 |
+
* Only used for testing.
|
22 |
+
*
|
23 |
+
* @author Brian Eaton <beaton@google.com>
|
24 |
+
*/
|
25 |
+
class Google_P12Signer extends Google_Signer {
|
26 |
+
// OpenSSL private key resource
|
27 |
+
private $privateKey;
|
28 |
+
|
29 |
+
// Creates a new signer from a .p12 file.
|
30 |
+
function __construct($p12, $password) {
|
31 |
+
if (!function_exists('openssl_x509_read')) {
|
32 |
+
throw new Exception(
|
33 |
+
'The Google PHP API library needs the openssl PHP extension');
|
34 |
+
}
|
35 |
+
|
36 |
+
// This throws on error
|
37 |
+
$certs = array();
|
38 |
+
if (!openssl_pkcs12_read($p12, $certs, $password)) {
|
39 |
+
throw new Google_AuthException("Unable to parse the p12 file. " .
|
40 |
+
"Is this a .p12 file? Is the password correct? OpenSSL error: " .
|
41 |
+
openssl_error_string());
|
42 |
+
}
|
43 |
+
// TODO(beaton): is this part of the contract for the openssl_pkcs12_read
|
44 |
+
// method? What happens if there are multiple private keys? Do we care?
|
45 |
+
if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) {
|
46 |
+
throw new Google_AuthException("No private key found in p12 file.");
|
47 |
+
}
|
48 |
+
$this->privateKey = openssl_pkey_get_private($certs["pkey"]);
|
49 |
+
if (!$this->privateKey) {
|
50 |
+
throw new Google_AuthException("Unable to load private key in ");
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
function __destruct() {
|
55 |
+
if ($this->privateKey) {
|
56 |
+
openssl_pkey_free($this->privateKey);
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
function sign($data) {
|
61 |
+
if(version_compare(PHP_VERSION, '5.3.0') < 0) {
|
62 |
+
throw new Google_AuthException(
|
63 |
+
"PHP 5.3.0 or higher is required to use service accounts.");
|
64 |
+
}
|
65 |
+
if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
|
66 |
+
throw new Google_AuthException("Unable to sign data");
|
67 |
+
}
|
68 |
+
return $signature;
|
69 |
+
}
|
70 |
+
}
|
lib/SocialLogin/auth/Google_PemVerifier.php
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2011 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Verifies signatures using PEM encoded certificates.
|
20 |
+
*
|
21 |
+
* @author Brian Eaton <beaton@google.com>
|
22 |
+
*/
|
23 |
+
class Google_PemVerifier extends Google_Verifier {
|
24 |
+
private $publicKey;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Constructs a verifier from the supplied PEM-encoded certificate.
|
28 |
+
*
|
29 |
+
* $pem: a PEM encoded certificate (not a file).
|
30 |
+
* @param $pem
|
31 |
+
* @throws Google_AuthException
|
32 |
+
* @throws Google_Exception
|
33 |
+
*/
|
34 |
+
function __construct($pem) {
|
35 |
+
if (!function_exists('openssl_x509_read')) {
|
36 |
+
throw new Google_Exception('Google API PHP client needs the openssl PHP extension');
|
37 |
+
}
|
38 |
+
$this->publicKey = openssl_x509_read($pem);
|
39 |
+
if (!$this->publicKey) {
|
40 |
+
throw new Google_AuthException("Unable to parse PEM: $pem");
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
function __destruct() {
|
45 |
+
if ($this->publicKey) {
|
46 |
+
openssl_x509_free($this->publicKey);
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Verifies the signature on data.
|
52 |
+
*
|
53 |
+
* Returns true if the signature is valid, false otherwise.
|
54 |
+
* @param $data
|
55 |
+
* @param $signature
|
56 |
+
* @throws Google_AuthException
|
57 |
+
* @return bool
|
58 |
+
*/
|
59 |
+
function verify($data, $signature) {
|
60 |
+
$status = openssl_verify($data, $signature, $this->publicKey, "sha256");
|
61 |
+
if ($status === -1) {
|
62 |
+
throw new Google_AuthException('Signature verification error: ' . openssl_error_string());
|
63 |
+
}
|
64 |
+
return $status === 1;
|
65 |
+
}
|
66 |
+
}
|
lib/SocialLogin/auth/Google_Signer.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2011 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
require_once "Google_P12Signer.php";
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Signs data.
|
22 |
+
*
|
23 |
+
* @author Brian Eaton <beaton@google.com>
|
24 |
+
*/
|
25 |
+
abstract class Google_Signer {
|
26 |
+
/**
|
27 |
+
* Signs data, returns the signature as binary data.
|
28 |
+
*/
|
29 |
+
abstract public function sign($data);
|
30 |
+
}
|
lib/SocialLogin/auth/Google_Verifier.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2011 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
require_once "Google_PemVerifier.php";
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Verifies signatures.
|
22 |
+
*
|
23 |
+
* @author Brian Eaton <beaton@google.com>
|
24 |
+
*/
|
25 |
+
abstract class Google_Verifier {
|
26 |
+
/**
|
27 |
+
* Checks a signature, returns true if the signature is correct,
|
28 |
+
* false otherwise.
|
29 |
+
*/
|
30 |
+
abstract public function verify($data, $signature);
|
31 |
+
}
|
lib/SocialLogin/cache/Google_ApcCache.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2010 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* A persistent storage class based on the APC cache, which is not
|
20 |
+
* really very persistent, as soon as you restart your web server
|
21 |
+
* the storage will be wiped, however for debugging and/or speed
|
22 |
+
* it can be useful, kinda, and cache is a lot cheaper then storage.
|
23 |
+
*
|
24 |
+
* @author Chris Chabot <chabotc@google.com>
|
25 |
+
*/
|
26 |
+
class googleApcCache extends Google_Cache {
|
27 |
+
|
28 |
+
public function __construct() {
|
29 |
+
if (! function_exists('apc_add')) {
|
30 |
+
throw new Google_CacheException("Apc functions not available");
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
private function isLocked($key) {
|
35 |
+
if ((@apc_fetch($key . '.lock')) === false) {
|
36 |
+
return false;
|
37 |
+
}
|
38 |
+
return true;
|
39 |
+
}
|
40 |
+
|
41 |
+
private function createLock($key) {
|
42 |
+
// the interesting thing is that this could fail if the lock was created in the meantime..
|
43 |
+
// but we'll ignore that out of convenience
|
44 |
+
@apc_add($key . '.lock', '', 5);
|
45 |
+
}
|
46 |
+
|
47 |
+
private function removeLock($key) {
|
48 |
+
// suppress all warnings, if some other process removed it that's ok too
|
49 |
+
@apc_delete($key . '.lock');
|
50 |
+
}
|
51 |
+
|
52 |
+
private function waitForLock($key) {
|
53 |
+
// 20 x 250 = 5 seconds
|
54 |
+
$tries = 20;
|
55 |
+
$cnt = 0;
|
56 |
+
do {
|
57 |
+
// 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
|
58 |
+
usleep(250);
|
59 |
+
$cnt ++;
|
60 |
+
} while ($cnt <= $tries && $this->isLocked($key));
|
61 |
+
if ($this->isLocked($key)) {
|
62 |
+
// 5 seconds passed, assume the owning process died off and remove it
|
63 |
+
$this->removeLock($key);
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* @inheritDoc
|
69 |
+
*/
|
70 |
+
public function get($key, $expiration = false) {
|
71 |
+
|
72 |
+
if (($ret = @apc_fetch($key)) === false) {
|
73 |
+
return false;
|
74 |
+
}
|
75 |
+
if (!$expiration || (time() - $ret['time'] > $expiration)) {
|
76 |
+
$this->delete($key);
|
77 |
+
return false;
|
78 |
+
}
|
79 |
+
return unserialize($ret['data']);
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* @inheritDoc
|
84 |
+
*/
|
85 |
+
public function set($key, $value) {
|
86 |
+
if (@apc_store($key, array('time' => time(), 'data' => serialize($value))) == false) {
|
87 |
+
throw new Google_CacheException("Couldn't store data");
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* @inheritDoc
|
93 |
+
* @param String $key
|
94 |
+
*/
|
95 |
+
public function delete($key) {
|
96 |
+
@apc_delete($key);
|
97 |
+
}
|
98 |
+
}
|
lib/SocialLogin/cache/Google_Cache.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2008 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
require_once "Google_FileCache.php";
|
19 |
+
require_once "Google_MemcacheCache.php";
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Abstract storage class
|
23 |
+
*
|
24 |
+
* @author Chris Chabot <chabotc@google.com>
|
25 |
+
*/
|
26 |
+
abstract class Google_Cache {
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Retrieves the data for the given key, or false if they
|
30 |
+
* key is unknown or expired
|
31 |
+
*
|
32 |
+
* @param String $key The key who's data to retrieve
|
33 |
+
* @param boolean|int $expiration Expiration time in seconds
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
abstract function get($key, $expiration = false);
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Store the key => $value set. The $value is serialized
|
40 |
+
* by this function so can be of any type
|
41 |
+
*
|
42 |
+
* @param string $key Key of the data
|
43 |
+
* @param string $value data
|
44 |
+
*/
|
45 |
+
abstract function set($key, $value);
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Removes the key/data pair for the given $key
|
49 |
+
*
|
50 |
+
* @param String $key
|
51 |
+
*/
|
52 |
+
abstract function delete($key);
|
53 |
+
}
|
54 |
+
|
55 |
+
|
lib/SocialLogin/cache/Google_FileCache.php
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2008 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/*
|
19 |
+
* This class implements a basic on disk storage. While that does
|
20 |
+
* work quite well it's not the most elegant and scalable solution.
|
21 |
+
* It will also get you into a heap of trouble when you try to run
|
22 |
+
* this in a clustered environment. In those cases please use the
|
23 |
+
* MySql back-end
|
24 |
+
*
|
25 |
+
* @author Chris Chabot <chabotc@google.com>
|
26 |
+
*/
|
27 |
+
class Google_FileCache extends Google_Cache {
|
28 |
+
private $path;
|
29 |
+
|
30 |
+
public function __construct() {
|
31 |
+
global $apiConfig;
|
32 |
+
$this->path = $apiConfig['ioFileCache_directory'];
|
33 |
+
}
|
34 |
+
|
35 |
+
private function isLocked($storageFile) {
|
36 |
+
// our lock file convention is simple: /the/file/path.lock
|
37 |
+
return file_exists($storageFile . '.lock');
|
38 |
+
}
|
39 |
+
|
40 |
+
private function createLock($storageFile) {
|
41 |
+
$storageDir = dirname($storageFile);
|
42 |
+
if (! is_dir($storageDir)) {
|
43 |
+
// @codeCoverageIgnoreStart
|
44 |
+
if (! @mkdir($storageDir, 0755, true)) {
|
45 |
+
// make sure the failure isn't because of a concurrency issue
|
46 |
+
if (! is_dir($storageDir)) {
|
47 |
+
throw new Google_CacheException("Could not create storage directory: $storageDir");
|
48 |
+
}
|
49 |
+
}
|
50 |
+
// @codeCoverageIgnoreEnd
|
51 |
+
}
|
52 |
+
@touch($storageFile . '.lock');
|
53 |
+
}
|
54 |
+
|
55 |
+
private function removeLock($storageFile) {
|
56 |
+
// suppress all warnings, if some other process removed it that's ok too
|
57 |
+
@unlink($storageFile . '.lock');
|
58 |
+
}
|
59 |
+
|
60 |
+
private function waitForLock($storageFile) {
|
61 |
+
// 20 x 250 = 5 seconds
|
62 |
+
$tries = 20;
|
63 |
+
$cnt = 0;
|
64 |
+
do {
|
65 |
+
// make sure PHP picks up on file changes. This is an expensive action but really can't be avoided
|
66 |
+
clearstatcache();
|
67 |
+
// 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
|
68 |
+
usleep(250);
|
69 |
+
$cnt ++;
|
70 |
+
} while ($cnt <= $tries && $this->isLocked($storageFile));
|
71 |
+
if ($this->isLocked($storageFile)) {
|
72 |
+
// 5 seconds passed, assume the owning process died off and remove it
|
73 |
+
$this->removeLock($storageFile);
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
private function getCacheDir($hash) {
|
78 |
+
// use the first 2 characters of the hash as a directory prefix
|
79 |
+
// this should prevent slowdowns due to huge directory listings
|
80 |
+
// and thus give some basic amount of scalability
|
81 |
+
return $this->path . '/' . substr($hash, 0, 2);
|
82 |
+
}
|
83 |
+
|
84 |
+
private function getCacheFile($hash) {
|
85 |
+
return $this->getCacheDir($hash) . '/' . $hash;
|
86 |
+
}
|
87 |
+
|
88 |
+
public function get($key, $expiration = false) {
|
89 |
+
$storageFile = $this->getCacheFile(md5($key));
|
90 |
+
// See if this storage file is locked, if so we wait upto 5 seconds for the lock owning process to
|
91 |
+
// complete it's work. If the lock is not released within that time frame, it's cleaned up.
|
92 |
+
// This should give us a fair amount of 'Cache Stampeding' protection
|
93 |
+
if ($this->isLocked($storageFile)) {
|
94 |
+
$this->waitForLock($storageFile);
|
95 |
+
}
|
96 |
+
if (file_exists($storageFile) && is_readable($storageFile)) {
|
97 |
+
$now = time();
|
98 |
+
if (! $expiration || (($mtime = @filemtime($storageFile)) !== false && ($now - $mtime) < $expiration)) {
|
99 |
+
if (($data = @file_get_contents($storageFile)) !== false) {
|
100 |
+
$data = unserialize($data);
|
101 |
+
return $data;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
}
|
105 |
+
return false;
|
106 |
+
}
|
107 |
+
|
108 |
+
public function set($key, $value) {
|
109 |
+
$storageDir = $this->getCacheDir(md5($key));
|
110 |
+
$storageFile = $this->getCacheFile(md5($key));
|
111 |
+
if ($this->isLocked($storageFile)) {
|
112 |
+
// some other process is writing to this file too, wait until it's done to prevent hickups
|
113 |
+
$this->waitForLock($storageFile);
|
114 |
+
}
|
115 |
+
if (! is_dir($storageDir)) {
|
116 |
+
if (! @mkdir($storageDir, 0755, true)) {
|
117 |
+
throw new Google_CacheException("Could not create storage directory: $storageDir");
|
118 |
+
}
|
119 |
+
}
|
120 |
+
// we serialize the whole request object, since we don't only want the
|
121 |
+
// responseContent but also the postBody used, headers, size, etc
|
122 |
+
$data = serialize($value);
|
123 |
+
$this->createLock($storageFile);
|
124 |
+
if (! @file_put_contents($storageFile, $data)) {
|
125 |
+
$this->removeLock($storageFile);
|
126 |
+
throw new Google_CacheException("Could not store data in the file");
|
127 |
+
}
|
128 |
+
$this->removeLock($storageFile);
|
129 |
+
}
|
130 |
+
|
131 |
+
public function delete($key) {
|
132 |
+
$file = $this->getCacheFile(md5($key));
|
133 |
+
if (! @unlink($file)) {
|
134 |
+
throw new Google_CacheException("Cache file could not be deleted");
|
135 |
+
}
|
136 |
+
}
|
137 |
+
}
|
lib/SocialLogin/cache/Google_MemcacheCache.php
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2008 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* A persistent storage class based on the memcache, which is not
|
20 |
+
* really very persistent, as soon as you restart your memcache daemon
|
21 |
+
* the storage will be wiped, however for debugging and/or speed
|
22 |
+
* it can be useful, kinda, and cache is a lot cheaper then storage.
|
23 |
+
*
|
24 |
+
* @author Chris Chabot <chabotc@google.com>
|
25 |
+
*/
|
26 |
+
class Google_MemcacheCache extends Google_Cache {
|
27 |
+
private $connection = false;
|
28 |
+
|
29 |
+
public function __construct() {
|
30 |
+
global $apiConfig;
|
31 |
+
if (! function_exists('memcache_connect')) {
|
32 |
+
throw new Google_CacheException("Memcache functions not available");
|
33 |
+
}
|
34 |
+
$this->host = $apiConfig['ioMemCacheCache_host'];
|
35 |
+
$this->port = $apiConfig['ioMemCacheCache_port'];
|
36 |
+
if (empty($this->host) || empty($this->port)) {
|
37 |
+
throw new Google_CacheException("You need to supply a valid memcache host and port");
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
private function isLocked($key) {
|
42 |
+
$this->check();
|
43 |
+
if ((@memcache_get($this->connection, $key . '.lock')) === false) {
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
return true;
|
47 |
+
}
|
48 |
+
|
49 |
+
private function createLock($key) {
|
50 |
+
$this->check();
|
51 |
+
// the interesting thing is that this could fail if the lock was created in the meantime..
|
52 |
+
// but we'll ignore that out of convenience
|
53 |
+
@memcache_add($this->connection, $key . '.lock', '', 0, 5);
|
54 |
+
}
|
55 |
+
|
56 |
+
private function removeLock($key) {
|
57 |
+
$this->check();
|
58 |
+
// suppress all warnings, if some other process removed it that's ok too
|
59 |
+
@memcache_delete($this->connection, $key . '.lock');
|
60 |
+
}
|
61 |
+
|
62 |
+
private function waitForLock($key) {
|
63 |
+
$this->check();
|
64 |
+
// 20 x 250 = 5 seconds
|
65 |
+
$tries = 20;
|
66 |
+
$cnt = 0;
|
67 |
+
do {
|
68 |
+
// 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
|
69 |
+
usleep(250);
|
70 |
+
$cnt ++;
|
71 |
+
} while ($cnt <= $tries && $this->isLocked($key));
|
72 |
+
if ($this->isLocked($key)) {
|
73 |
+
// 5 seconds passed, assume the owning process died off and remove it
|
74 |
+
$this->removeLock($key);
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
// I prefer lazy initialization since the cache isn't used every request
|
79 |
+
// so this potentially saves a lot of overhead
|
80 |
+
private function connect() {
|
81 |
+
if (! $this->connection = @memcache_pconnect($this->host, $this->port)) {
|
82 |
+
throw new Google_CacheException("Couldn't connect to memcache server");
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
private function check() {
|
87 |
+
if (! $this->connection) {
|
88 |
+
$this->connect();
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* @inheritDoc
|
94 |
+
*/
|
95 |
+
public function get($key, $expiration = false) {
|
96 |
+
$this->check();
|
97 |
+
if (($ret = @memcache_get($this->connection, $key)) === false) {
|
98 |
+
return false;
|
99 |
+
}
|
100 |
+
if (! $expiration || (time() - $ret['time'] > $expiration)) {
|
101 |
+
$this->delete($key);
|
102 |
+
return false;
|
103 |
+
}
|
104 |
+
return $ret['data'];
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* @inheritDoc
|
109 |
+
* @param string $key
|
110 |
+
* @param string $value
|
111 |
+
* @throws Google_CacheException
|
112 |
+
*/
|
113 |
+
public function set($key, $value) {
|
114 |
+
$this->check();
|
115 |
+
// we store it with the cache_time default expiration so objects will at least get cleaned eventually.
|
116 |
+
if (@memcache_set($this->connection, $key, array('time' => time(),
|
117 |
+
'data' => $value), false) == false) {
|
118 |
+
throw new Google_CacheException("Couldn't store data in cache");
|
119 |
+
}
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* @inheritDoc
|
124 |
+
* @param String $key
|
125 |
+
*/
|
126 |
+
public function delete($key) {
|
127 |
+
$this->check();
|
128 |
+
@memcache_delete($this->connection, $key);
|
129 |
+
}
|
130 |
+
}
|
lib/SocialLogin/config.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright 2010 Google Inc.
|
4 |
+
*
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
* you may not use this file except in compliance with the License.
|
7 |
+
* You may obtain a copy of the License at
|
8 |
+
*
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Unless required by applicable law or agreed to in writing, software
|
12 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
* See the License for the specific language governing permissions and
|
15 |
+
* limitations under the License.
|
16 |
+
*/
|
17 |
+
|
18 |
+
global $apiConfig;
|
19 |
+
$apiConfig = array(
|
20 |
+
// True if objects should be returned by the service classes.
|
21 |
+
// False if associative arrays should be returned (default behavior).
|
22 |
+
'use_objects' => false,
|
23 |
+
|
24 |
+
// The application_name is included in the User-Agent HTTP header.
|
25 |
+
'application_name' => '',
|
26 |
+
|
27 |
+
// OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
|
28 |
+
'oauth2_client_id' => '',
|
29 |
+
'oauth2_client_secret' => '',
|
30 |
+
'oauth2_redirect_uri' => '',
|
31 |
+
|
32 |
+
// The developer key, you get this at https://code.google.com/apis/console
|
33 |
+
'developer_key' => '',
|
34 |
+
|
35 |
+
// Site name to show in the Google's OAuth 1 authentication screen.
|
36 |
+
'site_name' => 'www.example.org',
|
37 |
+
|
38 |
+
// Which Authentication, Storage and HTTP IO classes to use.
|
39 |
+
'authClass' => 'Google_OAuth2',
|
40 |
+
'ioClass' => 'Google_CurlIO',
|
41 |
+
'cacheClass' => 'Google_FileCache',
|
42 |
+
|
43 |
+
// Don't change these unless you're working against a special development or testing environment.
|
44 |
+
'basePath' => 'https://www.googleapis.com',
|
45 |
+
|
46 |
+
// IO Class dependent configuration, you only have to configure the values
|
47 |
+
// for the class that was configured as the ioClass above
|
48 |
+
'ioFileCache_directory' =>
|
49 |
+
(function_exists('sys_get_temp_dir') ?
|
50 |
+
sys_get_temp_dir() . '/Google_Client' :
|
51 |
+
'/tmp/Google_Client'),
|
52 |
+
|
53 |
+
// Definition of service specific values like scopes, oauth token URLs, etc
|
54 |
+
'services' => array(
|
55 |
+
'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
|
56 |
+
'calendar' => array(
|
57 |
+
'scope' => array(
|
58 |
+
"https://www.googleapis.com/auth/calendar",
|
59 |
+
"https://www.googleapis.com/auth/calendar.readonly",
|
60 |
+
)
|
61 |
+
),
|
62 |
+
'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
|
63 |
+
'latitude' => array(
|
64 |
+
'scope' => array(
|
65 |
+
'https://www.googleapis.com/auth/latitude.all.best',
|
66 |
+
'https://www.googleapis.com/auth/latitude.all.city',
|
67 |
+
)
|
68 |
+
),
|
69 |
+
'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
|
70 |
+
'oauth2' => array(
|
71 |
+
'scope' => array(
|
72 |
+
'https://www.googleapis.com/auth/userinfo.profile',
|
73 |
+
'https://www.googleapis.com/auth/userinfo.email',
|
74 |
+
)
|
75 |
+
),
|
76 |
+
'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.me'),
|
77 |
+
'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
|
78 |
+
'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
|
79 |
+
'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
|
80 |
+
)
|
81 |
+
);
|
lib/SocialLogin/contrib/Google_AdexchangebuyerService.php
ADDED
@@ -0,0 +1,567 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "directDeals" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $adexchangebuyerService = new Google_AdexchangebuyerService(...);
|
22 |
+
* $directDeals = $adexchangebuyerService->directDeals;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_DirectDealsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Retrieves the authenticated user's list of direct deals. (directDeals.list)
|
30 |
+
*
|
31 |
+
* @param array $optParams Optional parameters.
|
32 |
+
* @return Google_DirectDealsList
|
33 |
+
*/
|
34 |
+
public function listDirectDeals($optParams = array()) {
|
35 |
+
$params = array();
|
36 |
+
$params = array_merge($params, $optParams);
|
37 |
+
$data = $this->__call('list', array($params));
|
38 |
+
if ($this->useObjects()) {
|
39 |
+
return new Google_DirectDealsList($data);
|
40 |
+
} else {
|
41 |
+
return $data;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
/**
|
45 |
+
* Gets one direct deal by ID. (directDeals.get)
|
46 |
+
*
|
47 |
+
* @param string $id The direct deal id
|
48 |
+
* @param array $optParams Optional parameters.
|
49 |
+
* @return Google_DirectDeal
|
50 |
+
*/
|
51 |
+
public function get($id, $optParams = array()) {
|
52 |
+
$params = array('id' => $id);
|
53 |
+
$params = array_merge($params, $optParams);
|
54 |
+
$data = $this->__call('get', array($params));
|
55 |
+
if ($this->useObjects()) {
|
56 |
+
return new Google_DirectDeal($data);
|
57 |
+
} else {
|
58 |
+
return $data;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* The "accounts" collection of methods.
|
65 |
+
* Typical usage is:
|
66 |
+
* <code>
|
67 |
+
* $adexchangebuyerService = new Google_AdexchangebuyerService(...);
|
68 |
+
* $accounts = $adexchangebuyerService->accounts;
|
69 |
+
* </code>
|
70 |
+
*/
|
71 |
+
class Google_AccountsServiceResource extends Google_ServiceResource {
|
72 |
+
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Updates an existing account. This method supports patch semantics. (accounts.patch)
|
76 |
+
*
|
77 |
+
* @param int $id The account id
|
78 |
+
* @param Google_Account $postBody
|
79 |
+
* @param array $optParams Optional parameters.
|
80 |
+
* @return Google_Account
|
81 |
+
*/
|
82 |
+
public function patch($id, Google_Account $postBody, $optParams = array()) {
|
83 |
+
$params = array('id' => $id, 'postBody' => $postBody);
|
84 |
+
$params = array_merge($params, $optParams);
|
85 |
+
$data = $this->__call('patch', array($params));
|
86 |
+
if ($this->useObjects()) {
|
87 |
+
return new Google_Account($data);
|
88 |
+
} else {
|
89 |
+
return $data;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
/**
|
93 |
+
* Retrieves the authenticated user's list of accounts. (accounts.list)
|
94 |
+
*
|
95 |
+
* @param array $optParams Optional parameters.
|
96 |
+
* @return Google_AccountsList
|
97 |
+
*/
|
98 |
+
public function listAccounts($optParams = array()) {
|
99 |
+
$params = array();
|
100 |
+
$params = array_merge($params, $optParams);
|
101 |
+
$data = $this->__call('list', array($params));
|
102 |
+
if ($this->useObjects()) {
|
103 |
+
return new Google_AccountsList($data);
|
104 |
+
} else {
|
105 |
+
return $data;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
/**
|
109 |
+
* Updates an existing account. (accounts.update)
|
110 |
+
*
|
111 |
+
* @param int $id The account id
|
112 |
+
* @param Google_Account $postBody
|
113 |
+
* @param array $optParams Optional parameters.
|
114 |
+
* @return Google_Account
|
115 |
+
*/
|
116 |
+
public function update($id, Google_Account $postBody, $optParams = array()) {
|
117 |
+
$params = array('id' => $id, 'postBody' => $postBody);
|
118 |
+
$params = array_merge($params, $optParams);
|
119 |
+
$data = $this->__call('update', array($params));
|
120 |
+
if ($this->useObjects()) {
|
121 |
+
return new Google_Account($data);
|
122 |
+
} else {
|
123 |
+
return $data;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
/**
|
127 |
+
* Gets one account by ID. (accounts.get)
|
128 |
+
*
|
129 |
+
* @param int $id The account id
|
130 |
+
* @param array $optParams Optional parameters.
|
131 |
+
* @return Google_Account
|
132 |
+
*/
|
133 |
+
public function get($id, $optParams = array()) {
|
134 |
+
$params = array('id' => $id);
|
135 |
+
$params = array_merge($params, $optParams);
|
136 |
+
$data = $this->__call('get', array($params));
|
137 |
+
if ($this->useObjects()) {
|
138 |
+
return new Google_Account($data);
|
139 |
+
} else {
|
140 |
+
return $data;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* The "creatives" collection of methods.
|
147 |
+
* Typical usage is:
|
148 |
+
* <code>
|
149 |
+
* $adexchangebuyerService = new Google_AdexchangebuyerService(...);
|
150 |
+
* $creatives = $adexchangebuyerService->creatives;
|
151 |
+
* </code>
|
152 |
+
*/
|
153 |
+
class Google_CreativesServiceResource extends Google_ServiceResource {
|
154 |
+
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Submit a new creative. (creatives.insert)
|
158 |
+
*
|
159 |
+
* @param Google_Creative $postBody
|
160 |
+
* @param array $optParams Optional parameters.
|
161 |
+
* @return Google_Creative
|
162 |
+
*/
|
163 |
+
public function insert(Google_Creative $postBody, $optParams = array()) {
|
164 |
+
$params = array('postBody' => $postBody);
|
165 |
+
$params = array_merge($params, $optParams);
|
166 |
+
$data = $this->__call('insert', array($params));
|
167 |
+
if ($this->useObjects()) {
|
168 |
+
return new Google_Creative($data);
|
169 |
+
} else {
|
170 |
+
return $data;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
/**
|
174 |
+
* Retrieves a list of the authenticated user's active creatives. (creatives.list)
|
175 |
+
*
|
176 |
+
* @param array $optParams Optional parameters.
|
177 |
+
*
|
178 |
+
* @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.
|
179 |
+
* @opt_param string maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
180 |
+
* @return Google_CreativesList
|
181 |
+
*/
|
182 |
+
public function listCreatives($optParams = array()) {
|
183 |
+
$params = array();
|
184 |
+
$params = array_merge($params, $optParams);
|
185 |
+
$data = $this->__call('list', array($params));
|
186 |
+
if ($this->useObjects()) {
|
187 |
+
return new Google_CreativesList($data);
|
188 |
+
} else {
|
189 |
+
return $data;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
/**
|
193 |
+
* Gets the status for a single creative. (creatives.get)
|
194 |
+
*
|
195 |
+
* @param int $accountId The id for the account that will serve this creative.
|
196 |
+
* @param string $buyerCreativeId The buyer-specific id for this creative.
|
197 |
+
* @param string $adgroupId The adgroup this creative belongs to.
|
198 |
+
* @param array $optParams Optional parameters.
|
199 |
+
* @return Google_Creative
|
200 |
+
*/
|
201 |
+
public function get($accountId, $buyerCreativeId, $adgroupId, $optParams = array()) {
|
202 |
+
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'adgroupId' => $adgroupId);
|
203 |
+
$params = array_merge($params, $optParams);
|
204 |
+
$data = $this->__call('get', array($params));
|
205 |
+
if ($this->useObjects()) {
|
206 |
+
return new Google_Creative($data);
|
207 |
+
} else {
|
208 |
+
return $data;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Service definition for Google_Adexchangebuyer (v1).
|
215 |
+
*
|
216 |
+
* <p>
|
217 |
+
* Lets you manage your Ad Exchange Buyer account.
|
218 |
+
* </p>
|
219 |
+
*
|
220 |
+
* <p>
|
221 |
+
* For more information about this service, see the
|
222 |
+
* <a href="https://developers.google.com/ad-exchange/buyer-rest" target="_blank">API Documentation</a>
|
223 |
+
* </p>
|
224 |
+
*
|
225 |
+
* @author Google, Inc.
|
226 |
+
*/
|
227 |
+
class Google_AdexchangebuyerService extends Google_Service {
|
228 |
+
public $directDeals;
|
229 |
+
public $accounts;
|
230 |
+
public $creatives;
|
231 |
+
/**
|
232 |
+
* Constructs the internal representation of the Adexchangebuyer service.
|
233 |
+
*
|
234 |
+
* @param Google_Client $client
|
235 |
+
*/
|
236 |
+
public function __construct(Google_Client $client) {
|
237 |
+
$this->servicePath = 'adexchangebuyer/v1/';
|
238 |
+
$this->version = 'v1';
|
239 |
+
$this->serviceName = 'adexchangebuyer';
|
240 |
+
|
241 |
+
$client->addService($this->serviceName, $this->version);
|
242 |
+
$this->directDeals = new Google_DirectDealsServiceResource($this, $this->serviceName, 'directDeals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "path": "directdeals", "response": {"$ref": "DirectDealsList"}, "id": "adexchangebuyer.directDeals.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "adexchangebuyer.directDeals.get", "httpMethod": "GET", "path": "directdeals/{id}", "response": {"$ref": "DirectDeal"}}}}', true));
|
243 |
+
$this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "httpMethod": "PATCH", "path": "accounts/{id}", "id": "adexchangebuyer.accounts.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "path": "accounts", "response": {"$ref": "AccountsList"}, "id": "adexchangebuyer.accounts.list", "httpMethod": "GET"}, "update": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "httpMethod": "PUT", "path": "accounts/{id}", "id": "adexchangebuyer.accounts.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "adexchangebuyer.accounts.get", "httpMethod": "GET", "path": "accounts/{id}", "response": {"$ref": "Account"}}}}', true));
|
244 |
+
$this->creatives = new Google_CreativesServiceResource($this, $this->serviceName, 'creatives', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "request": {"$ref": "Creative"}, "response": {"$ref": "Creative"}, "httpMethod": "POST", "path": "creatives", "id": "adexchangebuyer.creatives.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "1000", "format": "uint32"}}, "response": {"$ref": "CreativesList"}, "httpMethod": "GET", "path": "creatives", "id": "adexchangebuyer.creatives.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"adgroupId": {"required": true, "type": "string", "location": "query", "format": "int64"}, "buyerCreativeId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "adexchangebuyer.creatives.get", "httpMethod": "GET", "path": "creatives/{accountId}/{buyerCreativeId}", "response": {"$ref": "Creative"}}}}', true));
|
245 |
+
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
class Google_Account extends Google_Model {
|
250 |
+
public $kind;
|
251 |
+
public $maximumTotalQps;
|
252 |
+
protected $__bidderLocationType = 'Google_AccountBidderLocation';
|
253 |
+
protected $__bidderLocationDataType = 'array';
|
254 |
+
public $bidderLocation;
|
255 |
+
public $cookieMatchingNid;
|
256 |
+
public $id;
|
257 |
+
public $cookieMatchingUrl;
|
258 |
+
public function setKind($kind) {
|
259 |
+
$this->kind = $kind;
|
260 |
+
}
|
261 |
+
public function getKind() {
|
262 |
+
return $this->kind;
|
263 |
+
}
|
264 |
+
public function setMaximumTotalQps($maximumTotalQps) {
|
265 |
+
$this->maximumTotalQps = $maximumTotalQps;
|
266 |
+
}
|
267 |
+
public function getMaximumTotalQps() {
|
268 |
+
return $this->maximumTotalQps;
|
269 |
+
}
|
270 |
+
public function setBidderLocation($bidderLocation) {
|
271 |
+
$this->assertIsArray($bidderLocation, 'Google_AccountBidderLocation', __METHOD__);
|
272 |
+
$this->bidderLocation = $bidderLocation;
|
273 |
+
}
|
274 |
+
public function getBidderLocation() {
|
275 |
+
return $this->bidderLocation;
|
276 |
+
}
|
277 |
+
public function setCookieMatchingNid($cookieMatchingNid) {
|
278 |
+
$this->cookieMatchingNid = $cookieMatchingNid;
|
279 |
+
}
|
280 |
+
public function getCookieMatchingNid() {
|
281 |
+
return $this->cookieMatchingNid;
|
282 |
+
}
|
283 |
+
public function setId($id) {
|
284 |
+
$this->id = $id;
|
285 |
+
}
|
286 |
+
public function getId() {
|
287 |
+
return $this->id;
|
288 |
+
}
|
289 |
+
public function setCookieMatchingUrl($cookieMatchingUrl) {
|
290 |
+
$this->cookieMatchingUrl = $cookieMatchingUrl;
|
291 |
+
}
|
292 |
+
public function getCookieMatchingUrl() {
|
293 |
+
return $this->cookieMatchingUrl;
|
294 |
+
}
|
295 |
+
}
|
296 |
+
|
297 |
+
class Google_AccountBidderLocation extends Google_Model {
|
298 |
+
public $url;
|
299 |
+
public $maximumQps;
|
300 |
+
public function setUrl($url) {
|
301 |
+
$this->url = $url;
|
302 |
+
}
|
303 |
+
public function getUrl() {
|
304 |
+
return $this->url;
|
305 |
+
}
|
306 |
+
public function setMaximumQps($maximumQps) {
|
307 |
+
$this->maximumQps = $maximumQps;
|
308 |
+
}
|
309 |
+
public function getMaximumQps() {
|
310 |
+
return $this->maximumQps;
|
311 |
+
}
|
312 |
+
}
|
313 |
+
|
314 |
+
class Google_AccountsList extends Google_Model {
|
315 |
+
protected $__itemsType = 'Google_Account';
|
316 |
+
protected $__itemsDataType = 'array';
|
317 |
+
public $items;
|
318 |
+
public $kind;
|
319 |
+
public function setItems($items) {
|
320 |
+
$this->assertIsArray($items, 'Google_Account', __METHOD__);
|
321 |
+
$this->items = $items;
|
322 |
+
}
|
323 |
+
public function getItems() {
|
324 |
+
return $this->items;
|
325 |
+
}
|
326 |
+
public function setKind($kind) {
|
327 |
+
$this->kind = $kind;
|
328 |
+
}
|
329 |
+
public function getKind() {
|
330 |
+
return $this->kind;
|
331 |
+
}
|
332 |
+
}
|
333 |
+
|
334 |
+
class Google_Creative extends Google_Model {
|
335 |
+
public $productCategories;
|
336 |
+
public $advertiserName;
|
337 |
+
public $adgroupId;
|
338 |
+
public $videoURL;
|
339 |
+
public $width;
|
340 |
+
public $attribute;
|
341 |
+
public $kind;
|
342 |
+
public $height;
|
343 |
+
public $advertiserId;
|
344 |
+
public $HTMLSnippet;
|
345 |
+
public $status;
|
346 |
+
public $buyerCreativeId;
|
347 |
+
public $clickThroughUrl;
|
348 |
+
public $vendorType;
|
349 |
+
public $disapprovalReasons;
|
350 |
+
public $sensitiveCategories;
|
351 |
+
public $accountId;
|
352 |
+
public function setProductCategories($productCategories) {
|
353 |
+
$this->productCategories = $productCategories;
|
354 |
+
}
|
355 |
+
public function getProductCategories() {
|
356 |
+
return $this->productCategories;
|
357 |
+
}
|
358 |
+
public function setAdvertiserName($advertiserName) {
|
359 |
+
$this->advertiserName = $advertiserName;
|
360 |
+
}
|
361 |
+
public function getAdvertiserName() {
|
362 |
+
return $this->advertiserName;
|
363 |
+
}
|
364 |
+
public function setAdgroupId($adgroupId) {
|
365 |
+
$this->adgroupId = $adgroupId;
|
366 |
+
}
|
367 |
+
public function getAdgroupId() {
|
368 |
+
return $this->adgroupId;
|
369 |
+
}
|
370 |
+
public function setVideoURL($videoURL) {
|
371 |
+
$this->videoURL = $videoURL;
|
372 |
+
}
|
373 |
+
public function getVideoURL() {
|
374 |
+
return $this->videoURL;
|
375 |
+
}
|
376 |
+
public function setWidth($width) {
|
377 |
+
$this->width = $width;
|
378 |
+
}
|
379 |
+
public function getWidth() {
|
380 |
+
return $this->width;
|
381 |
+
}
|
382 |
+
public function setAttribute($attribute) {
|
383 |
+
$this->attribute = $attribute;
|
384 |
+
}
|
385 |
+
public function getAttribute() {
|
386 |
+
return $this->attribute;
|
387 |
+
}
|
388 |
+
public function setKind($kind) {
|
389 |
+
$this->kind = $kind;
|
390 |
+
}
|
391 |
+
public function getKind() {
|
392 |
+
return $this->kind;
|
393 |
+
}
|
394 |
+
public function setHeight($height) {
|
395 |
+
$this->height = $height;
|
396 |
+
}
|
397 |
+
public function getHeight() {
|
398 |
+
return $this->height;
|
399 |
+
}
|
400 |
+
public function setAdvertiserId($advertiserId) {
|
401 |
+
$this->advertiserId = $advertiserId;
|
402 |
+
}
|
403 |
+
public function getAdvertiserId() {
|
404 |
+
return $this->advertiserId;
|
405 |
+
}
|
406 |
+
public function setHTMLSnippet($HTMLSnippet) {
|
407 |
+
$this->HTMLSnippet = $HTMLSnippet;
|
408 |
+
}
|
409 |
+
public function getHTMLSnippet() {
|
410 |
+
return $this->HTMLSnippet;
|
411 |
+
}
|
412 |
+
public function setStatus($status) {
|
413 |
+
$this->status = $status;
|
414 |
+
}
|
415 |
+
public function getStatus() {
|
416 |
+
return $this->status;
|
417 |
+
}
|
418 |
+
public function setBuyerCreativeId($buyerCreativeId) {
|
419 |
+
$this->buyerCreativeId = $buyerCreativeId;
|
420 |
+
}
|
421 |
+
public function getBuyerCreativeId() {
|
422 |
+
return $this->buyerCreativeId;
|
423 |
+
}
|
424 |
+
public function setClickThroughUrl($clickThroughUrl) {
|
425 |
+
$this->clickThroughUrl = $clickThroughUrl;
|
426 |
+
}
|
427 |
+
public function getClickThroughUrl() {
|
428 |
+
return $this->clickThroughUrl;
|
429 |
+
}
|
430 |
+
public function setVendorType($vendorType) {
|
431 |
+
$this->vendorType = $vendorType;
|
432 |
+
}
|
433 |
+
public function getVendorType() {
|
434 |
+
return $this->vendorType;
|
435 |
+
}
|
436 |
+
public function setDisapprovalReasons($disapprovalReasons) {
|
437 |
+
$this->disapprovalReasons = $disapprovalReasons;
|
438 |
+
}
|
439 |
+
public function getDisapprovalReasons() {
|
440 |
+
return $this->disapprovalReasons;
|
441 |
+
}
|
442 |
+
public function setSensitiveCategories($sensitiveCategories) {
|
443 |
+
$this->sensitiveCategories = $sensitiveCategories;
|
444 |
+
}
|
445 |
+
public function getSensitiveCategories() {
|
446 |
+
return $this->sensitiveCategories;
|
447 |
+
}
|
448 |
+
public function setAccountId($accountId) {
|
449 |
+
$this->accountId = $accountId;
|
450 |
+
}
|
451 |
+
public function getAccountId() {
|
452 |
+
return $this->accountId;
|
453 |
+
}
|
454 |
+
}
|
455 |
+
|
456 |
+
class Google_CreativesList extends Google_Model {
|
457 |
+
public $nextPageToken;
|
458 |
+
protected $__itemsType = 'Google_Creative';
|
459 |
+
protected $__itemsDataType = 'array';
|
460 |
+
public $items;
|
461 |
+
public $kind;
|
462 |
+
public function setNextPageToken($nextPageToken) {
|
463 |
+
$this->nextPageToken = $nextPageToken;
|
464 |
+
}
|
465 |
+
public function getNextPageToken() {
|
466 |
+
return $this->nextPageToken;
|
467 |
+
}
|
468 |
+
public function setItems($items) {
|
469 |
+
$this->assertIsArray($items, 'Google_Creative', __METHOD__);
|
470 |
+
$this->items = $items;
|
471 |
+
}
|
472 |
+
public function getItems() {
|
473 |
+
return $this->items;
|
474 |
+
}
|
475 |
+
public function setKind($kind) {
|
476 |
+
$this->kind = $kind;
|
477 |
+
}
|
478 |
+
public function getKind() {
|
479 |
+
return $this->kind;
|
480 |
+
}
|
481 |
+
}
|
482 |
+
|
483 |
+
class Google_DirectDeal extends Google_Model {
|
484 |
+
public $advertiser;
|
485 |
+
public $kind;
|
486 |
+
public $currencyCode;
|
487 |
+
public $fixedCpm;
|
488 |
+
public $startTime;
|
489 |
+
public $endTime;
|
490 |
+
public $sellerNetwork;
|
491 |
+
public $id;
|
492 |
+
public $accountId;
|
493 |
+
public function setAdvertiser($advertiser) {
|
494 |
+
$this->advertiser = $advertiser;
|
495 |
+
}
|
496 |
+
public function getAdvertiser() {
|
497 |
+
return $this->advertiser;
|
498 |
+
}
|
499 |
+
public function setKind($kind) {
|
500 |
+
$this->kind = $kind;
|
501 |
+
}
|
502 |
+
public function getKind() {
|
503 |
+
return $this->kind;
|
504 |
+
}
|
505 |
+
public function setCurrencyCode($currencyCode) {
|
506 |
+
$this->currencyCode = $currencyCode;
|
507 |
+
}
|
508 |
+
public function getCurrencyCode() {
|
509 |
+
return $this->currencyCode;
|
510 |
+
}
|
511 |
+
public function setFixedCpm($fixedCpm) {
|
512 |
+
$this->fixedCpm = $fixedCpm;
|
513 |
+
}
|
514 |
+
public function getFixedCpm() {
|
515 |
+
return $this->fixedCpm;
|
516 |
+
}
|
517 |
+
public function setStartTime($startTime) {
|
518 |
+
$this->startTime = $startTime;
|
519 |
+
}
|
520 |
+
public function getStartTime() {
|
521 |
+
return $this->startTime;
|
522 |
+
}
|
523 |
+
public function setEndTime($endTime) {
|
524 |
+
$this->endTime = $endTime;
|
525 |
+
}
|
526 |
+
public function getEndTime() {
|
527 |
+
return $this->endTime;
|
528 |
+
}
|
529 |
+
public function setSellerNetwork($sellerNetwork) {
|
530 |
+
$this->sellerNetwork = $sellerNetwork;
|
531 |
+
}
|
532 |
+
public function getSellerNetwork() {
|
533 |
+
return $this->sellerNetwork;
|
534 |
+
}
|
535 |
+
public function setId($id) {
|
536 |
+
$this->id = $id;
|
537 |
+
}
|
538 |
+
public function getId() {
|
539 |
+
return $this->id;
|
540 |
+
}
|
541 |
+
public function setAccountId($accountId) {
|
542 |
+
$this->accountId = $accountId;
|
543 |
+
}
|
544 |
+
public function getAccountId() {
|
545 |
+
return $this->accountId;
|
546 |
+
}
|
547 |
+
}
|
548 |
+
|
549 |
+
class Google_DirectDealsList extends Google_Model {
|
550 |
+
public $kind;
|
551 |
+
protected $__directDealsType = 'Google_DirectDeal';
|
552 |
+
protected $__directDealsDataType = 'array';
|
553 |
+
public $directDeals;
|
554 |
+
public function setKind($kind) {
|
555 |
+
$this->kind = $kind;
|
556 |
+
}
|
557 |
+
public function getKind() {
|
558 |
+
return $this->kind;
|
559 |
+
}
|
560 |
+
public function setDirectDeals($directDeals) {
|
561 |
+
$this->assertIsArray($directDeals, 'Google_DirectDeal', __METHOD__);
|
562 |
+
$this->directDeals = $directDeals;
|
563 |
+
}
|
564 |
+
public function getDirectDeals() {
|
565 |
+
return $this->directDeals;
|
566 |
+
}
|
567 |
+
}
|
lib/SocialLogin/contrib/Google_AdsenseService.php
ADDED
@@ -0,0 +1,1140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "urlchannels" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $adsenseService = new Google_AdsenseService(...);
|
22 |
+
* $urlchannels = $adsenseService->urlchannels;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_UrlchannelsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
|
30 |
+
*
|
31 |
+
* @param string $adClientId Ad client for which to list URL channels.
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
*
|
34 |
+
* @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
35 |
+
* @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
|
36 |
+
* @return Google_UrlChannels
|
37 |
+
*/
|
38 |
+
public function listUrlchannels($adClientId, $optParams = array()) {
|
39 |
+
$params = array('adClientId' => $adClientId);
|
40 |
+
$params = array_merge($params, $optParams);
|
41 |
+
$data = $this->__call('list', array($params));
|
42 |
+
if ($this->useObjects()) {
|
43 |
+
return new Google_UrlChannels($data);
|
44 |
+
} else {
|
45 |
+
return $data;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* The "adunits" collection of methods.
|
52 |
+
* Typical usage is:
|
53 |
+
* <code>
|
54 |
+
* $adsenseService = new Google_AdsenseService(...);
|
55 |
+
* $adunits = $adsenseService->adunits;
|
56 |
+
* </code>
|
57 |
+
*/
|
58 |
+
class Google_AdunitsServiceResource extends Google_ServiceResource {
|
59 |
+
|
60 |
+
|
61 |
+
/**
|
62 |
+
* List all ad units in the specified ad client for this AdSense account. (adunits.list)
|
63 |
+
*
|
64 |
+
* @param string $adClientId Ad client for which to list ad units.
|
65 |
+
* @param array $optParams Optional parameters.
|
66 |
+
*
|
67 |
+
* @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
|
68 |
+
* @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.
|
69 |
+
* @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
|
70 |
+
* @return Google_AdUnits
|
71 |
+
*/
|
72 |
+
public function listAdunits($adClientId, $optParams = array()) {
|
73 |
+
$params = array('adClientId' => $adClientId);
|
74 |
+
$params = array_merge($params, $optParams);
|
75 |
+
$data = $this->__call('list', array($params));
|
76 |
+
if ($this->useObjects()) {
|
77 |
+
return new Google_AdUnits($data);
|
78 |
+
} else {
|
79 |
+
return $data;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
/**
|
83 |
+
* Gets the specified ad unit in the specified ad client. (adunits.get)
|
84 |
+
*
|
85 |
+
* @param string $adClientId Ad client for which to get the ad unit.
|
86 |
+
* @param string $adUnitId Ad unit to retrieve.
|
87 |
+
* @param array $optParams Optional parameters.
|
88 |
+
* @return Google_AdUnit
|
89 |
+
*/
|
90 |
+
public function get($adClientId, $adUnitId, $optParams = array()) {
|
91 |
+
$params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
92 |
+
$params = array_merge($params, $optParams);
|
93 |
+
$data = $this->__call('get', array($params));
|
94 |
+
if ($this->useObjects()) {
|
95 |
+
return new Google_AdUnit($data);
|
96 |
+
} else {
|
97 |
+
return $data;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* The "customchannels" collection of methods.
|
104 |
+
* Typical usage is:
|
105 |
+
* <code>
|
106 |
+
* $adsenseService = new Google_AdsenseService(...);
|
107 |
+
* $customchannels = $adsenseService->customchannels;
|
108 |
+
* </code>
|
109 |
+
*/
|
110 |
+
class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
|
111 |
+
|
112 |
+
|
113 |
+
/**
|
114 |
+
* List all custom channels which the specified ad unit belongs to. (customchannels.list)
|
115 |
+
*
|
116 |
+
* @param string $adClientId Ad client which contains the ad unit.
|
117 |
+
* @param string $adUnitId Ad unit for which to list custom channels.
|
118 |
+
* @param array $optParams Optional parameters.
|
119 |
+
*
|
120 |
+
* @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.
|
121 |
+
* @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
|
122 |
+
* @return Google_CustomChannels
|
123 |
+
*/
|
124 |
+
public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
|
125 |
+
$params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
126 |
+
$params = array_merge($params, $optParams);
|
127 |
+
$data = $this->__call('list', array($params));
|
128 |
+
if ($this->useObjects()) {
|
129 |
+
return new Google_CustomChannels($data);
|
130 |
+
} else {
|
131 |
+
return $data;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* The "adclients" collection of methods.
|
138 |
+
* Typical usage is:
|
139 |
+
* <code>
|
140 |
+
* $adsenseService = new Google_AdsenseService(...);
|
141 |
+
* $adclients = $adsenseService->adclients;
|
142 |
+
* </code>
|
143 |
+
*/
|
144 |
+
class Google_AdclientsServiceResource extends Google_ServiceResource {
|
145 |
+
|
146 |
+
|
147 |
+
/**
|
148 |
+
* List all ad clients in this AdSense account. (adclients.list)
|
149 |
+
*
|
150 |
+
* @param array $optParams Optional parameters.
|
151 |
+
*
|
152 |
+
* @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.
|
153 |
+
* @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
|
154 |
+
* @return Google_AdClients
|
155 |
+
*/
|
156 |
+
public function listAdclients($optParams = array()) {
|
157 |
+
$params = array();
|
158 |
+
$params = array_merge($params, $optParams);
|
159 |
+
$data = $this->__call('list', array($params));
|
160 |
+
if ($this->useObjects()) {
|
161 |
+
return new Google_AdClients($data);
|
162 |
+
} else {
|
163 |
+
return $data;
|
164 |
+
}
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* The "reports" collection of methods.
|
170 |
+
* Typical usage is:
|
171 |
+
* <code>
|
172 |
+
* $adsenseService = new Google_AdsenseService(...);
|
173 |
+
* $reports = $adsenseService->reports;
|
174 |
+
* </code>
|
175 |
+
*/
|
176 |
+
class Google_ReportsServiceResource extends Google_ServiceResource {
|
177 |
+
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Generate an AdSense report based on the report request sent in the query parameters. Returns the
|
181 |
+
* result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
182 |
+
* (reports.generate)
|
183 |
+
*
|
184 |
+
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
185 |
+
* @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
186 |
+
* @param array $optParams Optional parameters.
|
187 |
+
*
|
188 |
+
* @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.
|
189 |
+
* @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
190 |
+
* @opt_param string metric Numeric columns to include in the report.
|
191 |
+
* @opt_param int maxResults The maximum number of rows of report data to return.
|
192 |
+
* @opt_param string filter Filters to be run on the report.
|
193 |
+
* @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
|
194 |
+
* @opt_param int startIndex Index of the first row of report data to return.
|
195 |
+
* @opt_param string dimension Dimensions to base the report on.
|
196 |
+
* @opt_param string accountId Accounts upon which to report.
|
197 |
+
* @return Google_AdsenseReportsGenerateResponse
|
198 |
+
*/
|
199 |
+
public function generate($startDate, $endDate, $optParams = array()) {
|
200 |
+
$params = array('startDate' => $startDate, 'endDate' => $endDate);
|
201 |
+
$params = array_merge($params, $optParams);
|
202 |
+
$data = $this->__call('generate', array($params));
|
203 |
+
if ($this->useObjects()) {
|
204 |
+
return new Google_AdsenseReportsGenerateResponse($data);
|
205 |
+
} else {
|
206 |
+
return $data;
|
207 |
+
}
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* The "accounts" collection of methods.
|
213 |
+
* Typical usage is:
|
214 |
+
* <code>
|
215 |
+
* $adsenseService = new Google_AdsenseService(...);
|
216 |
+
* $accounts = $adsenseService->accounts;
|
217 |
+
* </code>
|
218 |
+
*/
|
219 |
+
class Google_AccountsServiceResource extends Google_ServiceResource {
|
220 |
+
|
221 |
+
|
222 |
+
/**
|
223 |
+
* List all accounts available to this AdSense account. (accounts.list)
|
224 |
+
*
|
225 |
+
* @param array $optParams Optional parameters.
|
226 |
+
*
|
227 |
+
* @opt_param string pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
228 |
+
* @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
|
229 |
+
* @return Google_Accounts
|
230 |
+
*/
|
231 |
+
public function listAccounts($optParams = array()) {
|
232 |
+
$params = array();
|
233 |
+
$params = array_merge($params, $optParams);
|
234 |
+
$data = $this->__call('list', array($params));
|
235 |
+
if ($this->useObjects()) {
|
236 |
+
return new Google_Accounts($data);
|
237 |
+
} else {
|
238 |
+
return $data;
|
239 |
+
}
|
240 |
+
}
|
241 |
+
/**
|
242 |
+
* Get information about the selected AdSense account. (accounts.get)
|
243 |
+
*
|
244 |
+
* @param string $accountId Account to get information about.
|
245 |
+
* @param array $optParams Optional parameters.
|
246 |
+
*
|
247 |
+
* @opt_param bool tree Whether the tree of sub accounts should be returned.
|
248 |
+
* @return Google_Account
|
249 |
+
*/
|
250 |
+
public function get($accountId, $optParams = array()) {
|
251 |
+
$params = array('accountId' => $accountId);
|
252 |
+
$params = array_merge($params, $optParams);
|
253 |
+
$data = $this->__call('get', array($params));
|
254 |
+
if ($this->useObjects()) {
|
255 |
+
return new Google_Account($data);
|
256 |
+
} else {
|
257 |
+
return $data;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* The "urlchannels" collection of methods.
|
264 |
+
* Typical usage is:
|
265 |
+
* <code>
|
266 |
+
* $adsenseService = new Google_AdsenseService(...);
|
267 |
+
* $urlchannels = $adsenseService->urlchannels;
|
268 |
+
* </code>
|
269 |
+
*/
|
270 |
+
class Google_AccountsUrlchannelsServiceResource extends Google_ServiceResource {
|
271 |
+
|
272 |
+
|
273 |
+
/**
|
274 |
+
* List all URL channels in the specified ad client for the specified account. (urlchannels.list)
|
275 |
+
*
|
276 |
+
* @param string $accountId Account to which the ad client belongs.
|
277 |
+
* @param string $adClientId Ad client for which to list URL channels.
|
278 |
+
* @param array $optParams Optional parameters.
|
279 |
+
*
|
280 |
+
* @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
281 |
+
* @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
|
282 |
+
* @return Google_UrlChannels
|
283 |
+
*/
|
284 |
+
public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
|
285 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
|
286 |
+
$params = array_merge($params, $optParams);
|
287 |
+
$data = $this->__call('list', array($params));
|
288 |
+
if ($this->useObjects()) {
|
289 |
+
return new Google_UrlChannels($data);
|
290 |
+
} else {
|
291 |
+
return $data;
|
292 |
+
}
|
293 |
+
}
|
294 |
+
}
|
295 |
+
/**
|
296 |
+
* The "adunits" collection of methods.
|
297 |
+
* Typical usage is:
|
298 |
+
* <code>
|
299 |
+
* $adsenseService = new Google_AdsenseService(...);
|
300 |
+
* $adunits = $adsenseService->adunits;
|
301 |
+
* </code>
|
302 |
+
*/
|
303 |
+
class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
|
304 |
+
|
305 |
+
|
306 |
+
/**
|
307 |
+
* List all ad units in the specified ad client for the specified account. (adunits.list)
|
308 |
+
*
|
309 |
+
* @param string $accountId Account to which the ad client belongs.
|
310 |
+
* @param string $adClientId Ad client for which to list ad units.
|
311 |
+
* @param array $optParams Optional parameters.
|
312 |
+
*
|
313 |
+
* @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
|
314 |
+
* @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.
|
315 |
+
* @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
|
316 |
+
* @return Google_AdUnits
|
317 |
+
*/
|
318 |
+
public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
|
319 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
|
320 |
+
$params = array_merge($params, $optParams);
|
321 |
+
$data = $this->__call('list', array($params));
|
322 |
+
if ($this->useObjects()) {
|
323 |
+
return new Google_AdUnits($data);
|
324 |
+
} else {
|
325 |
+
return $data;
|
326 |
+
}
|
327 |
+
}
|
328 |
+
/**
|
329 |
+
* Gets the specified ad unit in the specified ad client for the specified account. (adunits.get)
|
330 |
+
*
|
331 |
+
* @param string $accountId Account to which the ad client belongs.
|
332 |
+
* @param string $adClientId Ad client for which to get the ad unit.
|
333 |
+
* @param string $adUnitId Ad unit to retrieve.
|
334 |
+
* @param array $optParams Optional parameters.
|
335 |
+
* @return Google_AdUnit
|
336 |
+
*/
|
337 |
+
public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
|
338 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
339 |
+
$params = array_merge($params, $optParams);
|
340 |
+
$data = $this->__call('get', array($params));
|
341 |
+
if ($this->useObjects()) {
|
342 |
+
return new Google_AdUnit($data);
|
343 |
+
} else {
|
344 |
+
return $data;
|
345 |
+
}
|
346 |
+
}
|
347 |
+
}
|
348 |
+
|
349 |
+
/**
|
350 |
+
* The "customchannels" collection of methods.
|
351 |
+
* Typical usage is:
|
352 |
+
* <code>
|
353 |
+
* $adsenseService = new Google_AdsenseService(...);
|
354 |
+
* $customchannels = $adsenseService->customchannels;
|
355 |
+
* </code>
|
356 |
+
*/
|
357 |
+
class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource {
|
358 |
+
|
359 |
+
|
360 |
+
/**
|
361 |
+
* List all custom channels which the specified ad unit belongs to. (customchannels.list)
|
362 |
+
*
|
363 |
+
* @param string $accountId Account to which the ad client belongs.
|
364 |
+
* @param string $adClientId Ad client which contains the ad unit.
|
365 |
+
* @param string $adUnitId Ad unit for which to list custom channels.
|
366 |
+
* @param array $optParams Optional parameters.
|
367 |
+
*
|
368 |
+
* @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.
|
369 |
+
* @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
|
370 |
+
* @return Google_CustomChannels
|
371 |
+
*/
|
372 |
+
public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
|
373 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
374 |
+
$params = array_merge($params, $optParams);
|
375 |
+
$data = $this->__call('list', array($params));
|
376 |
+
if ($this->useObjects()) {
|
377 |
+
return new Google_CustomChannels($data);
|
378 |
+
} else {
|
379 |
+
return $data;
|
380 |
+
}
|
381 |
+
}
|
382 |
+
}
|
383 |
+
/**
|
384 |
+
* The "adclients" collection of methods.
|
385 |
+
* Typical usage is:
|
386 |
+
* <code>
|
387 |
+
* $adsenseService = new Google_AdsenseService(...);
|
388 |
+
* $adclients = $adsenseService->adclients;
|
389 |
+
* </code>
|
390 |
+
*/
|
391 |
+
class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
|
392 |
+
|
393 |
+
|
394 |
+
/**
|
395 |
+
* List all ad clients in the specified account. (adclients.list)
|
396 |
+
*
|
397 |
+
* @param string $accountId Account for which to list ad clients.
|
398 |
+
* @param array $optParams Optional parameters.
|
399 |
+
*
|
400 |
+
* @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.
|
401 |
+
* @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
|
402 |
+
* @return Google_AdClients
|
403 |
+
*/
|
404 |
+
public function listAccountsAdclients($accountId, $optParams = array()) {
|
405 |
+
$params = array('accountId' => $accountId);
|
406 |
+
$params = array_merge($params, $optParams);
|
407 |
+
$data = $this->__call('list', array($params));
|
408 |
+
if ($this->useObjects()) {
|
409 |
+
return new Google_AdClients($data);
|
410 |
+
} else {
|
411 |
+
return $data;
|
412 |
+
}
|
413 |
+
}
|
414 |
+
}
|
415 |
+
/**
|
416 |
+
* The "reports" collection of methods.
|
417 |
+
* Typical usage is:
|
418 |
+
* <code>
|
419 |
+
* $adsenseService = new Google_AdsenseService(...);
|
420 |
+
* $reports = $adsenseService->reports;
|
421 |
+
* </code>
|
422 |
+
*/
|
423 |
+
class Google_AccountsReportsServiceResource extends Google_ServiceResource {
|
424 |
+
|
425 |
+
|
426 |
+
/**
|
427 |
+
* Generate an AdSense report based on the report request sent in the query parameters. Returns the
|
428 |
+
* result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
429 |
+
* (reports.generate)
|
430 |
+
*
|
431 |
+
* @param string $accountId Account upon which to report.
|
432 |
+
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
433 |
+
* @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
434 |
+
* @param array $optParams Optional parameters.
|
435 |
+
*
|
436 |
+
* @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.
|
437 |
+
* @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
438 |
+
* @opt_param string metric Numeric columns to include in the report.
|
439 |
+
* @opt_param int maxResults The maximum number of rows of report data to return.
|
440 |
+
* @opt_param string filter Filters to be run on the report.
|
441 |
+
* @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
|
442 |
+
* @opt_param int startIndex Index of the first row of report data to return.
|
443 |
+
* @opt_param string dimension Dimensions to base the report on.
|
444 |
+
* @return Google_AdsenseReportsGenerateResponse
|
445 |
+
*/
|
446 |
+
public function generate($accountId, $startDate, $endDate, $optParams = array()) {
|
447 |
+
$params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
|
448 |
+
$params = array_merge($params, $optParams);
|
449 |
+
$data = $this->__call('generate', array($params));
|
450 |
+
if ($this->useObjects()) {
|
451 |
+
return new Google_AdsenseReportsGenerateResponse($data);
|
452 |
+
} else {
|
453 |
+
return $data;
|
454 |
+
}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
/**
|
458 |
+
* The "customchannels" collection of methods.
|
459 |
+
* Typical usage is:
|
460 |
+
* <code>
|
461 |
+
* $adsenseService = new Google_AdsenseService(...);
|
462 |
+
* $customchannels = $adsenseService->customchannels;
|
463 |
+
* </code>
|
464 |
+
*/
|
465 |
+
class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource {
|
466 |
+
|
467 |
+
|
468 |
+
/**
|
469 |
+
* List all custom channels in the specified ad client for the specified account.
|
470 |
+
* (customchannels.list)
|
471 |
+
*
|
472 |
+
* @param string $accountId Account to which the ad client belongs.
|
473 |
+
* @param string $adClientId Ad client for which to list custom channels.
|
474 |
+
* @param array $optParams Optional parameters.
|
475 |
+
*
|
476 |
+
* @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.
|
477 |
+
* @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
|
478 |
+
* @return Google_CustomChannels
|
479 |
+
*/
|
480 |
+
public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
|
481 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
|
482 |
+
$params = array_merge($params, $optParams);
|
483 |
+
$data = $this->__call('list', array($params));
|
484 |
+
if ($this->useObjects()) {
|
485 |
+
return new Google_CustomChannels($data);
|
486 |
+
} else {
|
487 |
+
return $data;
|
488 |
+
}
|
489 |
+
}
|
490 |
+
/**
|
491 |
+
* Get the specified custom channel from the specified ad client for the specified account.
|
492 |
+
* (customchannels.get)
|
493 |
+
*
|
494 |
+
* @param string $accountId Account to which the ad client belongs.
|
495 |
+
* @param string $adClientId Ad client which contains the custom channel.
|
496 |
+
* @param string $customChannelId Custom channel to retrieve.
|
497 |
+
* @param array $optParams Optional parameters.
|
498 |
+
* @return Google_CustomChannel
|
499 |
+
*/
|
500 |
+
public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
|
501 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
502 |
+
$params = array_merge($params, $optParams);
|
503 |
+
$data = $this->__call('get', array($params));
|
504 |
+
if ($this->useObjects()) {
|
505 |
+
return new Google_CustomChannel($data);
|
506 |
+
} else {
|
507 |
+
return $data;
|
508 |
+
}
|
509 |
+
}
|
510 |
+
}
|
511 |
+
|
512 |
+
/**
|
513 |
+
* The "adunits" collection of methods.
|
514 |
+
* Typical usage is:
|
515 |
+
* <code>
|
516 |
+
* $adsenseService = new Google_AdsenseService(...);
|
517 |
+
* $adunits = $adsenseService->adunits;
|
518 |
+
* </code>
|
519 |
+
*/
|
520 |
+
class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource {
|
521 |
+
|
522 |
+
|
523 |
+
/**
|
524 |
+
* List all ad units in the specified custom channel. (adunits.list)
|
525 |
+
*
|
526 |
+
* @param string $accountId Account to which the ad client belongs.
|
527 |
+
* @param string $adClientId Ad client which contains the custom channel.
|
528 |
+
* @param string $customChannelId Custom channel for which to list ad units.
|
529 |
+
* @param array $optParams Optional parameters.
|
530 |
+
*
|
531 |
+
* @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
|
532 |
+
* @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
|
533 |
+
* @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.
|
534 |
+
* @return Google_AdUnits
|
535 |
+
*/
|
536 |
+
public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
|
537 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
538 |
+
$params = array_merge($params, $optParams);
|
539 |
+
$data = $this->__call('list', array($params));
|
540 |
+
if ($this->useObjects()) {
|
541 |
+
return new Google_AdUnits($data);
|
542 |
+
} else {
|
543 |
+
return $data;
|
544 |
+
}
|
545 |
+
}
|
546 |
+
}
|
547 |
+
|
548 |
+
/**
|
549 |
+
* The "customchannels" collection of methods.
|
550 |
+
* Typical usage is:
|
551 |
+
* <code>
|
552 |
+
* $adsenseService = new Google_AdsenseService(...);
|
553 |
+
* $customchannels = $adsenseService->customchannels;
|
554 |
+
* </code>
|
555 |
+
*/
|
556 |
+
class Google_CustomchannelsServiceResource extends Google_ServiceResource {
|
557 |
+
|
558 |
+
|
559 |
+
/**
|
560 |
+
* List all custom channels in the specified ad client for this AdSense account.
|
561 |
+
* (customchannels.list)
|
562 |
+
*
|
563 |
+
* @param string $adClientId Ad client for which to list custom channels.
|
564 |
+
* @param array $optParams Optional parameters.
|
565 |
+
*
|
566 |
+
* @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.
|
567 |
+
* @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
|
568 |
+
* @return Google_CustomChannels
|
569 |
+
*/
|
570 |
+
public function listCustomchannels($adClientId, $optParams = array()) {
|
571 |
+
$params = array('adClientId' => $adClientId);
|
572 |
+
$params = array_merge($params, $optParams);
|
573 |
+
$data = $this->__call('list', array($params));
|
574 |
+
if ($this->useObjects()) {
|
575 |
+
return new Google_CustomChannels($data);
|
576 |
+
} else {
|
577 |
+
return $data;
|
578 |
+
}
|
579 |
+
}
|
580 |
+
/**
|
581 |
+
* Get the specified custom channel from the specified ad client. (customchannels.get)
|
582 |
+
*
|
583 |
+
* @param string $adClientId Ad client which contains the custom channel.
|
584 |
+
* @param string $customChannelId Custom channel to retrieve.
|
585 |
+
* @param array $optParams Optional parameters.
|
586 |
+
* @return Google_CustomChannel
|
587 |
+
*/
|
588 |
+
public function get($adClientId, $customChannelId, $optParams = array()) {
|
589 |
+
$params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
590 |
+
$params = array_merge($params, $optParams);
|
591 |
+
$data = $this->__call('get', array($params));
|
592 |
+
if ($this->useObjects()) {
|
593 |
+
return new Google_CustomChannel($data);
|
594 |
+
} else {
|
595 |
+
return $data;
|
596 |
+
}
|
597 |
+
}
|
598 |
+
}
|
599 |
+
|
600 |
+
/**
|
601 |
+
* The "adunits" collection of methods.
|
602 |
+
* Typical usage is:
|
603 |
+
* <code>
|
604 |
+
* $adsenseService = new Google_AdsenseService(...);
|
605 |
+
* $adunits = $adsenseService->adunits;
|
606 |
+
* </code>
|
607 |
+
*/
|
608 |
+
class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
|
609 |
+
|
610 |
+
|
611 |
+
/**
|
612 |
+
* List all ad units in the specified custom channel. (adunits.list)
|
613 |
+
*
|
614 |
+
* @param string $adClientId Ad client which contains the custom channel.
|
615 |
+
* @param string $customChannelId Custom channel for which to list ad units.
|
616 |
+
* @param array $optParams Optional parameters.
|
617 |
+
*
|
618 |
+
* @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
|
619 |
+
* @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.
|
620 |
+
* @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
|
621 |
+
* @return Google_AdUnits
|
622 |
+
*/
|
623 |
+
public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
|
624 |
+
$params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
625 |
+
$params = array_merge($params, $optParams);
|
626 |
+
$data = $this->__call('list', array($params));
|
627 |
+
if ($this->useObjects()) {
|
628 |
+
return new Google_AdUnits($data);
|
629 |
+
} else {
|
630 |
+
return $data;
|
631 |
+
}
|
632 |
+
}
|
633 |
+
}
|
634 |
+
|
635 |
+
/**
|
636 |
+
* Service definition for Google_Adsense (v1.1).
|
637 |
+
*
|
638 |
+
* <p>
|
639 |
+
* Gives AdSense publishers access to their inventory and the ability to generate reports
|
640 |
+
* </p>
|
641 |
+
*
|
642 |
+
* <p>
|
643 |
+
* For more information about this service, see the
|
644 |
+
* <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
|
645 |
+
* </p>
|
646 |
+
*
|
647 |
+
* @author Google, Inc.
|
648 |
+
*/
|
649 |
+
class Google_AdsenseService extends Google_Service {
|
650 |
+
public $urlchannels;
|
651 |
+
public $adunits;
|
652 |
+
public $adunits_customchannels;
|
653 |
+
public $adclients;
|
654 |
+
public $reports;
|
655 |
+
public $accounts;
|
656 |
+
public $accounts_urlchannels;
|
657 |
+
public $accounts_adunits;
|
658 |
+
public $accounts_adunits_customchannels;
|
659 |
+
public $accounts_adclients;
|
660 |
+
public $accounts_reports;
|
661 |
+
public $accounts_customchannels;
|
662 |
+
public $accounts_customchannels_adunits;
|
663 |
+
public $customchannels;
|
664 |
+
public $customchannels_adunits;
|
665 |
+
/**
|
666 |
+
* Constructs the internal representation of the Adsense service.
|
667 |
+
*
|
668 |
+
* @param Google_Client $client
|
669 |
+
*/
|
670 |
+
public function __construct(Google_Client $client) {
|
671 |
+
$this->servicePath = 'adsense/v1.1/';
|
672 |
+
$this->version = 'v1.1';
|
673 |
+
$this->serviceName = 'adsense';
|
674 |
+
|
675 |
+
$client->addService($this->serviceName, $this->version);
|
676 |
+
$this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
|
677 |
+
$this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.get", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
|
678 |
+
$this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
|
679 |
+
$this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsense.adclients.list"}}}', true));
|
680 |
+
$this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsense.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
|
681 |
+
$this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "accounts", "id": "adsense.accounts.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"tree": {"type": "boolean", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
|
682 |
+
$this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.urlchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
|
683 |
+
$this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
|
684 |
+
$this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
|
685 |
+
$this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}}}', true));
|
686 |
+
$this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "accounts/{accountId}/reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
|
687 |
+
$this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
|
688 |
+
$this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
|
689 |
+
$this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
|
690 |
+
$this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
|
691 |
+
|
692 |
+
}
|
693 |
+
}
|
694 |
+
|
695 |
+
class Google_Account extends Google_Model {
|
696 |
+
public $kind;
|
697 |
+
public $id;
|
698 |
+
protected $__subAccountsType = 'Google_Account';
|
699 |
+
protected $__subAccountsDataType = 'array';
|
700 |
+
public $subAccounts;
|
701 |
+
public $name;
|
702 |
+
public function setKind($kind) {
|
703 |
+
$this->kind = $kind;
|
704 |
+
}
|
705 |
+
public function getKind() {
|
706 |
+
return $this->kind;
|
707 |
+
}
|
708 |
+
public function setId($id) {
|
709 |
+
$this->id = $id;
|
710 |
+
}
|
711 |
+
public function getId() {
|
712 |
+
return $this->id;
|
713 |
+
}
|
714 |
+
public function setSubAccounts($subAccounts) {
|
715 |
+
$this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
|
716 |
+
$this->subAccounts = $subAccounts;
|
717 |
+
}
|
718 |
+
public function getSubAccounts() {
|
719 |
+
return $this->subAccounts;
|
720 |
+
}
|
721 |
+
public function setName($name) {
|
722 |
+
$this->name = $name;
|
723 |
+
}
|
724 |
+
public function getName() {
|
725 |
+
return $this->name;
|
726 |
+
}
|
727 |
+
}
|
728 |
+
|
729 |
+
class Google_Accounts extends Google_Model {
|
730 |
+
public $nextPageToken;
|
731 |
+
protected $__itemsType = 'Google_Account';
|
732 |
+
protected $__itemsDataType = 'array';
|
733 |
+
public $items;
|
734 |
+
public $kind;
|
735 |
+
public $etag;
|
736 |
+
public function setNextPageToken($nextPageToken) {
|
737 |
+
$this->nextPageToken = $nextPageToken;
|
738 |
+
}
|
739 |
+
public function getNextPageToken() {
|
740 |
+
return $this->nextPageToken;
|
741 |
+
}
|
742 |
+
public function setItems($items) {
|
743 |
+
$this->assertIsArray($items, 'Google_Account', __METHOD__);
|
744 |
+
$this->items = $items;
|
745 |
+
}
|
746 |
+
public function getItems() {
|
747 |
+
return $this->items;
|
748 |
+
}
|
749 |
+
public function setKind($kind) {
|
750 |
+
$this->kind = $kind;
|
751 |
+
}
|
752 |
+
public function getKind() {
|
753 |
+
return $this->kind;
|
754 |
+
}
|
755 |
+
public function setEtag($etag) {
|
756 |
+
$this->etag = $etag;
|
757 |
+
}
|
758 |
+
public function getEtag() {
|
759 |
+
return $this->etag;
|
760 |
+
}
|
761 |
+
}
|
762 |
+
|
763 |
+
class Google_AdClient extends Google_Model {
|
764 |
+
public $productCode;
|
765 |
+
public $kind;
|
766 |
+
public $id;
|
767 |
+
public $supportsReporting;
|
768 |
+
public function setProductCode($productCode) {
|
769 |
+
$this->productCode = $productCode;
|
770 |
+
}
|
771 |
+
public function getProductCode() {
|
772 |
+
return $this->productCode;
|
773 |
+
}
|
774 |
+
public function setKind($kind) {
|
775 |
+
$this->kind = $kind;
|
776 |
+
}
|
777 |
+
public function getKind() {
|
778 |
+
return $this->kind;
|
779 |
+
}
|
780 |
+
public function setId($id) {
|
781 |
+
$this->id = $id;
|
782 |
+
}
|
783 |
+
public function getId() {
|
784 |
+
return $this->id;
|
785 |
+
}
|
786 |
+
public function setSupportsReporting($supportsReporting) {
|
787 |
+
$this->supportsReporting = $supportsReporting;
|
788 |
+
}
|
789 |
+
public function getSupportsReporting() {
|
790 |
+
return $this->supportsReporting;
|
791 |
+
}
|
792 |
+
}
|
793 |
+
|
794 |
+
class Google_AdClients extends Google_Model {
|
795 |
+
public $nextPageToken;
|
796 |
+
protected $__itemsType = 'Google_AdClient';
|
797 |
+
protected $__itemsDataType = 'array';
|
798 |
+
public $items;
|
799 |
+
public $kind;
|
800 |
+
public $etag;
|
801 |
+
public function setNextPageToken($nextPageToken) {
|
802 |
+
$this->nextPageToken = $nextPageToken;
|
803 |
+
}
|
804 |
+
public function getNextPageToken() {
|
805 |
+
return $this->nextPageToken;
|
806 |
+
}
|
807 |
+
public function setItems($items) {
|
808 |
+
$this->assertIsArray($items, 'Google_AdClient', __METHOD__);
|
809 |
+
$this->items = $items;
|
810 |
+
}
|
811 |
+
public function getItems() {
|
812 |
+
return $this->items;
|
813 |
+
}
|
814 |
+
public function setKind($kind) {
|
815 |
+
$this->kind = $kind;
|
816 |
+
}
|
817 |
+
public function getKind() {
|
818 |
+
return $this->kind;
|
819 |
+
}
|
820 |
+
public function setEtag($etag) {
|
821 |
+
$this->etag = $etag;
|
822 |
+
}
|
823 |
+
public function getEtag() {
|
824 |
+
return $this->etag;
|
825 |
+
}
|
826 |
+
}
|
827 |
+
|
828 |
+
class Google_AdUnit extends Google_Model {
|
829 |
+
public $status;
|
830 |
+
public $kind;
|
831 |
+
public $code;
|
832 |
+
public $id;
|
833 |
+
public $name;
|
834 |
+
public function setStatus($status) {
|
835 |
+
$this->status = $status;
|
836 |
+
}
|
837 |
+
public function getStatus() {
|
838 |
+
return $this->status;
|
839 |
+
}
|
840 |
+
public function setKind($kind) {
|
841 |
+
$this->kind = $kind;
|
842 |
+
}
|
843 |
+
public function getKind() {
|
844 |
+
return $this->kind;
|
845 |
+
}
|
846 |
+
public function setCode($code) {
|
847 |
+
$this->code = $code;
|
848 |
+
}
|
849 |
+
public function getCode() {
|
850 |
+
return $this->code;
|
851 |
+
}
|
852 |
+
public function setId($id) {
|
853 |
+
$this->id = $id;
|
854 |
+
}
|
855 |
+
public function getId() {
|
856 |
+
return $this->id;
|
857 |
+
}
|
858 |
+
public function setName($name) {
|
859 |
+
$this->name = $name;
|
860 |
+
}
|
861 |
+
public function getName() {
|
862 |
+
return $this->name;
|
863 |
+
}
|
864 |
+
}
|
865 |
+
|
866 |
+
class Google_AdUnits extends Google_Model {
|
867 |
+
public $nextPageToken;
|
868 |
+
protected $__itemsType = 'Google_AdUnit';
|
869 |
+
protected $__itemsDataType = 'array';
|
870 |
+
public $items;
|
871 |
+
public $kind;
|
872 |
+
public $etag;
|
873 |
+
public function setNextPageToken($nextPageToken) {
|
874 |
+
$this->nextPageToken = $nextPageToken;
|
875 |
+
}
|
876 |
+
public function getNextPageToken() {
|
877 |
+
return $this->nextPageToken;
|
878 |
+
}
|
879 |
+
public function setItems($items) {
|
880 |
+
$this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
|
881 |
+
$this->items = $items;
|
882 |
+
}
|
883 |
+
public function getItems() {
|
884 |
+
return $this->items;
|
885 |
+
}
|
886 |
+
public function setKind($kind) {
|
887 |
+
$this->kind = $kind;
|
888 |
+
}
|
889 |
+
public function getKind() {
|
890 |
+
return $this->kind;
|
891 |
+
}
|
892 |
+
public function setEtag($etag) {
|
893 |
+
$this->etag = $etag;
|
894 |
+
}
|
895 |
+
public function getEtag() {
|
896 |
+
return $this->etag;
|
897 |
+
}
|
898 |
+
}
|
899 |
+
|
900 |
+
class Google_AdsenseReportsGenerateResponse extends Google_Model {
|
901 |
+
public $kind;
|
902 |
+
public $rows;
|
903 |
+
public $warnings;
|
904 |
+
public $totals;
|
905 |
+
protected $__headersType = 'Google_AdsenseReportsGenerateResponseHeaders';
|
906 |
+
protected $__headersDataType = 'array';
|
907 |
+
public $headers;
|
908 |
+
public $totalMatchedRows;
|
909 |
+
public $averages;
|
910 |
+
public function setKind($kind) {
|
911 |
+
$this->kind = $kind;
|
912 |
+
}
|
913 |
+
public function getKind() {
|
914 |
+
return $this->kind;
|
915 |
+
}
|
916 |
+
public function setRows($rows) {
|
917 |
+
$this->rows = $rows;
|
918 |
+
}
|
919 |
+
public function getRows() {
|
920 |
+
return $this->rows;
|
921 |
+
}
|
922 |
+
public function setWarnings($warnings) {
|
923 |
+
$this->warnings = $warnings;
|
924 |
+
}
|
925 |
+
public function getWarnings() {
|
926 |
+
return $this->warnings;
|
927 |
+
}
|
928 |
+
public function setTotals($totals) {
|
929 |
+
$this->totals = $totals;
|
930 |
+
}
|
931 |
+
public function getTotals() {
|
932 |
+
return $this->totals;
|
933 |
+
}
|
934 |
+
public function setHeaders($headers) {
|
935 |
+
$this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
|
936 |
+
$this->headers = $headers;
|
937 |
+
}
|
938 |
+
public function getHeaders() {
|
939 |
+
return $this->headers;
|
940 |
+
}
|
941 |
+
public function setTotalMatchedRows($totalMatchedRows) {
|
942 |
+
$this->totalMatchedRows = $totalMatchedRows;
|
943 |
+
}
|
944 |
+
public function getTotalMatchedRows() {
|
945 |
+
return $this->totalMatchedRows;
|
946 |
+
}
|
947 |
+
public function setAverages($averages) {
|
948 |
+
$this->averages = $averages;
|
949 |
+
}
|
950 |
+
public function getAverages() {
|
951 |
+
return $this->averages;
|
952 |
+
}
|
953 |
+
}
|
954 |
+
|
955 |
+
class Google_AdsenseReportsGenerateResponseHeaders extends Google_Model {
|
956 |
+
public $currency;
|
957 |
+
public $type;
|
958 |
+
public $name;
|
959 |
+
public function setCurrency($currency) {
|
960 |
+
$this->currency = $currency;
|
961 |
+
}
|
962 |
+
public function getCurrency() {
|
963 |
+
return $this->currency;
|
964 |
+
}
|
965 |
+
public function setType($type) {
|
966 |
+
$this->type = $type;
|
967 |
+
}
|
968 |
+
public function getType() {
|
969 |
+
return $this->type;
|
970 |
+
}
|
971 |
+
public function setName($name) {
|
972 |
+
$this->name = $name;
|
973 |
+
}
|
974 |
+
public function getName() {
|
975 |
+
return $this->name;
|
976 |
+
}
|
977 |
+
}
|
978 |
+
|
979 |
+
class Google_CustomChannel extends Google_Model {
|
980 |
+
public $kind;
|
981 |
+
public $code;
|
982 |
+
protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
|
983 |
+
protected $__targetingInfoDataType = '';
|
984 |
+
public $targetingInfo;
|
985 |
+
public $id;
|
986 |
+
public $name;
|
987 |
+
public function setKind($kind) {
|
988 |
+
$this->kind = $kind;
|
989 |
+
}
|
990 |
+
public function getKind() {
|
991 |
+
return $this->kind;
|
992 |
+
}
|
993 |
+
public function setCode($code) {
|
994 |
+
$this->code = $code;
|
995 |
+
}
|
996 |
+
public function getCode() {
|
997 |
+
return $this->code;
|
998 |
+
}
|
999 |
+
public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
|
1000 |
+
$this->targetingInfo = $targetingInfo;
|
1001 |
+
}
|
1002 |
+
public function getTargetingInfo() {
|
1003 |
+
return $this->targetingInfo;
|
1004 |
+
}
|
1005 |
+
public function setId($id) {
|
1006 |
+
$this->id = $id;
|
1007 |
+
}
|
1008 |
+
public function getId() {
|
1009 |
+
return $this->id;
|
1010 |
+
}
|
1011 |
+
public function setName($name) {
|
1012 |
+
$this->name = $name;
|
1013 |
+
}
|
1014 |
+
public function getName() {
|
1015 |
+
return $this->name;
|
1016 |
+
}
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
class Google_CustomChannelTargetingInfo extends Google_Model {
|
1020 |
+
public $location;
|
1021 |
+
public $adsAppearOn;
|
1022 |
+
public $siteLanguage;
|
1023 |
+
public $description;
|
1024 |
+
public function setLocation($location) {
|
1025 |
+
$this->location = $location;
|
1026 |
+
}
|
1027 |
+
public function getLocation() {
|
1028 |
+
return $this->location;
|
1029 |
+
}
|
1030 |
+
public function setAdsAppearOn($adsAppearOn) {
|
1031 |
+
$this->adsAppearOn = $adsAppearOn;
|
1032 |
+
}
|
1033 |
+
public function getAdsAppearOn() {
|
1034 |
+
return $this->adsAppearOn;
|
1035 |
+
}
|
1036 |
+
public function setSiteLanguage($siteLanguage) {
|
1037 |
+
$this->siteLanguage = $siteLanguage;
|
1038 |
+
}
|
1039 |
+
public function getSiteLanguage() {
|
1040 |
+
return $this->siteLanguage;
|
1041 |
+
}
|
1042 |
+
public function setDescription($description) {
|
1043 |
+
$this->description = $description;
|
1044 |
+
}
|
1045 |
+
public function getDescription() {
|
1046 |
+
return $this->description;
|
1047 |
+
}
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
class Google_CustomChannels extends Google_Model {
|
1051 |
+
public $nextPageToken;
|
1052 |
+
protected $__itemsType = 'Google_CustomChannel';
|
1053 |
+
protected $__itemsDataType = 'array';
|
1054 |
+
public $items;
|
1055 |
+
public $kind;
|
1056 |
+
public $etag;
|
1057 |
+
public function setNextPageToken($nextPageToken) {
|
1058 |
+
$this->nextPageToken = $nextPageToken;
|
1059 |
+
}
|
1060 |
+
public function getNextPageToken() {
|
1061 |
+
return $this->nextPageToken;
|
1062 |
+
}
|
1063 |
+
public function setItems($items) {
|
1064 |
+
$this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
|
1065 |
+
$this->items = $items;
|
1066 |
+
}
|
1067 |
+
public function getItems() {
|
1068 |
+
return $this->items;
|
1069 |
+
}
|
1070 |
+
public function setKind($kind) {
|
1071 |
+
$this->kind = $kind;
|
1072 |
+
}
|
1073 |
+
public function getKind() {
|
1074 |
+
return $this->kind;
|
1075 |
+
}
|
1076 |
+
public function setEtag($etag) {
|
1077 |
+
$this->etag = $etag;
|
1078 |
+
}
|
1079 |
+
public function getEtag() {
|
1080 |
+
return $this->etag;
|
1081 |
+
}
|
1082 |
+
}
|
1083 |
+
|
1084 |
+
class Google_UrlChannel extends Google_Model {
|
1085 |
+
public $kind;
|
1086 |
+
public $id;
|
1087 |
+
public $urlPattern;
|
1088 |
+
public function setKind($kind) {
|
1089 |
+
$this->kind = $kind;
|
1090 |
+
}
|
1091 |
+
public function getKind() {
|
1092 |
+
return $this->kind;
|
1093 |
+
}
|
1094 |
+
public function setId($id) {
|
1095 |
+
$this->id = $id;
|
1096 |
+
}
|
1097 |
+
public function getId() {
|
1098 |
+
return $this->id;
|
1099 |
+
}
|
1100 |
+
public function setUrlPattern($urlPattern) {
|
1101 |
+
$this->urlPattern = $urlPattern;
|
1102 |
+
}
|
1103 |
+
public function getUrlPattern() {
|
1104 |
+
return $this->urlPattern;
|
1105 |
+
}
|
1106 |
+
}
|
1107 |
+
|
1108 |
+
class Google_UrlChannels extends Google_Model {
|
1109 |
+
public $nextPageToken;
|
1110 |
+
protected $__itemsType = 'Google_UrlChannel';
|
1111 |
+
protected $__itemsDataType = 'array';
|
1112 |
+
public $items;
|
1113 |
+
public $kind;
|
1114 |
+
public $etag;
|
1115 |
+
public function setNextPageToken($nextPageToken) {
|
1116 |
+
$this->nextPageToken = $nextPageToken;
|
1117 |
+
}
|
1118 |
+
public function getNextPageToken() {
|
1119 |
+
return $this->nextPageToken;
|
1120 |
+
}
|
1121 |
+
public function setItems($items) {
|
1122 |
+
$this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
|
1123 |
+
$this->items = $items;
|
1124 |
+
}
|
1125 |
+
public function getItems() {
|
1126 |
+
return $this->items;
|
1127 |
+
}
|
1128 |
+
public function setKind($kind) {
|
1129 |
+
$this->kind = $kind;
|
1130 |
+
}
|
1131 |
+
public function getKind() {
|
1132 |
+
return $this->kind;
|
1133 |
+
}
|
1134 |
+
public function setEtag($etag) {
|
1135 |
+
$this->etag = $etag;
|
1136 |
+
}
|
1137 |
+
public function getEtag() {
|
1138 |
+
return $this->etag;
|
1139 |
+
}
|
1140 |
+
}
|
lib/SocialLogin/contrib/Google_AdsensehostService.php
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "urlchannels" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
22 |
+
* $urlchannels = $adsensehostService->urlchannels;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_UrlchannelsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Add a new URL channel to the host AdSense account. (urlchannels.insert)
|
30 |
+
*
|
31 |
+
* @param string $adClientId Ad client to which the new URL channel will be added.
|
32 |
+
* @param Google_UrlChannel $postBody
|
33 |
+
* @param array $optParams Optional parameters.
|
34 |
+
* @return Google_UrlChannel
|
35 |
+
*/
|
36 |
+
public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
|
37 |
+
$params = array('adClientId' => $adClientId, 'postBody' => $postBody);
|
38 |
+
$params = array_merge($params, $optParams);
|
39 |
+
$data = $this->__call('insert', array($params));
|
40 |
+
if ($this->useObjects()) {
|
41 |
+
return new Google_UrlChannel($data);
|
42 |
+
} else {
|
43 |
+
return $data;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
/**
|
47 |
+
* List all host URL channels in the host AdSense account. (urlchannels.list)
|
48 |
+
*
|
49 |
+
* @param string $adClientId Ad client for which to list URL channels.
|
50 |
+
* @param array $optParams Optional parameters.
|
51 |
+
*
|
52 |
+
* @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
53 |
+
* @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
|
54 |
+
* @return Google_UrlChannels
|
55 |
+
*/
|
56 |
+
public function listUrlchannels($adClientId, $optParams = array()) {
|
57 |
+
$params = array('adClientId' => $adClientId);
|
58 |
+
$params = array_merge($params, $optParams);
|
59 |
+
$data = $this->__call('list', array($params));
|
60 |
+
if ($this->useObjects()) {
|
61 |
+
return new Google_UrlChannels($data);
|
62 |
+
} else {
|
63 |
+
return $data;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
/**
|
67 |
+
* Delete a URL channel from the host AdSense account. (urlchannels.delete)
|
68 |
+
*
|
69 |
+
* @param string $adClientId Ad client from which to delete the URL channel.
|
70 |
+
* @param string $urlChannelId URL channel to delete.
|
71 |
+
* @param array $optParams Optional parameters.
|
72 |
+
* @return Google_UrlChannel
|
73 |
+
*/
|
74 |
+
public function delete($adClientId, $urlChannelId, $optParams = array()) {
|
75 |
+
$params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
|
76 |
+
$params = array_merge($params, $optParams);
|
77 |
+
$data = $this->__call('delete', array($params));
|
78 |
+
if ($this->useObjects()) {
|
79 |
+
return new Google_UrlChannel($data);
|
80 |
+
} else {
|
81 |
+
return $data;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* The "adclients" collection of methods.
|
88 |
+
* Typical usage is:
|
89 |
+
* <code>
|
90 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
91 |
+
* $adclients = $adsensehostService->adclients;
|
92 |
+
* </code>
|
93 |
+
*/
|
94 |
+
class Google_AdclientsServiceResource extends Google_ServiceResource {
|
95 |
+
|
96 |
+
|
97 |
+
/**
|
98 |
+
* List all host ad clients in this AdSense account. (adclients.list)
|
99 |
+
*
|
100 |
+
* @param array $optParams Optional parameters.
|
101 |
+
*
|
102 |
+
* @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.
|
103 |
+
* @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
|
104 |
+
* @return Google_AdClients
|
105 |
+
*/
|
106 |
+
public function listAdclients($optParams = array()) {
|
107 |
+
$params = array();
|
108 |
+
$params = array_merge($params, $optParams);
|
109 |
+
$data = $this->__call('list', array($params));
|
110 |
+
if ($this->useObjects()) {
|
111 |
+
return new Google_AdClients($data);
|
112 |
+
} else {
|
113 |
+
return $data;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
/**
|
117 |
+
* Get information about one of the ad clients in the Host AdSense account. (adclients.get)
|
118 |
+
*
|
119 |
+
* @param string $adClientId Ad client to get.
|
120 |
+
* @param array $optParams Optional parameters.
|
121 |
+
* @return Google_AdClient
|
122 |
+
*/
|
123 |
+
public function get($adClientId, $optParams = array()) {
|
124 |
+
$params = array('adClientId' => $adClientId);
|
125 |
+
$params = array_merge($params, $optParams);
|
126 |
+
$data = $this->__call('get', array($params));
|
127 |
+
if ($this->useObjects()) {
|
128 |
+
return new Google_AdClient($data);
|
129 |
+
} else {
|
130 |
+
return $data;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* The "associationsessions" collection of methods.
|
137 |
+
* Typical usage is:
|
138 |
+
* <code>
|
139 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
140 |
+
* $associationsessions = $adsensehostService->associationsessions;
|
141 |
+
* </code>
|
142 |
+
*/
|
143 |
+
class Google_AssociationsessionsServiceResource extends Google_ServiceResource {
|
144 |
+
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Create an association session for initiating an association with an AdSense user.
|
148 |
+
* (associationsessions.start)
|
149 |
+
*
|
150 |
+
* @param string $productCode Products to associate with the user.
|
151 |
+
* @param string $websiteUrl The URL of the user's hosted website.
|
152 |
+
* @param array $optParams Optional parameters.
|
153 |
+
*
|
154 |
+
* @opt_param string websiteLocale The locale of the user's hosted website.
|
155 |
+
* @opt_param string userLocale The preferred locale of the user.
|
156 |
+
* @return Google_AssociationSession
|
157 |
+
*/
|
158 |
+
public function start($productCode, $websiteUrl, $optParams = array()) {
|
159 |
+
$params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
|
160 |
+
$params = array_merge($params, $optParams);
|
161 |
+
$data = $this->__call('start', array($params));
|
162 |
+
if ($this->useObjects()) {
|
163 |
+
return new Google_AssociationSession($data);
|
164 |
+
} else {
|
165 |
+
return $data;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
/**
|
169 |
+
* Verify an association session after the association callback returns from AdSense signup.
|
170 |
+
* (associationsessions.verify)
|
171 |
+
*
|
172 |
+
* @param string $token The token returned to the association callback URL.
|
173 |
+
* @param array $optParams Optional parameters.
|
174 |
+
* @return Google_AssociationSession
|
175 |
+
*/
|
176 |
+
public function verify($token, $optParams = array()) {
|
177 |
+
$params = array('token' => $token);
|
178 |
+
$params = array_merge($params, $optParams);
|
179 |
+
$data = $this->__call('verify', array($params));
|
180 |
+
if ($this->useObjects()) {
|
181 |
+
return new Google_AssociationSession($data);
|
182 |
+
} else {
|
183 |
+
return $data;
|
184 |
+
}
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* The "reports" collection of methods.
|
190 |
+
* Typical usage is:
|
191 |
+
* <code>
|
192 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
193 |
+
* $reports = $adsensehostService->reports;
|
194 |
+
* </code>
|
195 |
+
*/
|
196 |
+
class Google_ReportsServiceResource extends Google_ServiceResource {
|
197 |
+
|
198 |
+
|
199 |
+
/**
|
200 |
+
* Generate an AdSense report based on the report request sent in the query parameters. Returns the
|
201 |
+
* result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
202 |
+
* (reports.generate)
|
203 |
+
*
|
204 |
+
* @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
205 |
+
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
206 |
+
* @param array $optParams Optional parameters.
|
207 |
+
*
|
208 |
+
* @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.
|
209 |
+
* @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
210 |
+
* @opt_param string metric Numeric columns to include in the report.
|
211 |
+
* @opt_param string maxResults The maximum number of rows of report data to return.
|
212 |
+
* @opt_param string filter Filters to be run on the report.
|
213 |
+
* @opt_param string startIndex Index of the first row of report data to return.
|
214 |
+
* @opt_param string dimension Dimensions to base the report on.
|
215 |
+
* @return Google_Report
|
216 |
+
*/
|
217 |
+
public function generate($endDate, $startDate, $optParams = array()) {
|
218 |
+
$params = array('endDate' => $endDate, 'startDate' => $startDate);
|
219 |
+
$params = array_merge($params, $optParams);
|
220 |
+
$data = $this->__call('generate', array($params));
|
221 |
+
if ($this->useObjects()) {
|
222 |
+
return new Google_Report($data);
|
223 |
+
} else {
|
224 |
+
return $data;
|
225 |
+
}
|
226 |
+
}
|
227 |
+
}
|
228 |
+
|
229 |
+
/**
|
230 |
+
* The "accounts" collection of methods.
|
231 |
+
* Typical usage is:
|
232 |
+
* <code>
|
233 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
234 |
+
* $accounts = $adsensehostService->accounts;
|
235 |
+
* </code>
|
236 |
+
*/
|
237 |
+
class Google_AccountsServiceResource extends Google_ServiceResource {
|
238 |
+
|
239 |
+
|
240 |
+
/**
|
241 |
+
* List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
|
242 |
+
*
|
243 |
+
* @param string $filterAdClientId Ad clients to list accounts for.
|
244 |
+
* @param array $optParams Optional parameters.
|
245 |
+
* @return Google_Accounts
|
246 |
+
*/
|
247 |
+
public function listAccounts($filterAdClientId, $optParams = array()) {
|
248 |
+
$params = array('filterAdClientId' => $filterAdClientId);
|
249 |
+
$params = array_merge($params, $optParams);
|
250 |
+
$data = $this->__call('list', array($params));
|
251 |
+
if ($this->useObjects()) {
|
252 |
+
return new Google_Accounts($data);
|
253 |
+
} else {
|
254 |
+
return $data;
|
255 |
+
}
|
256 |
+
}
|
257 |
+
/**
|
258 |
+
* Get information about the selected associated AdSense account. (accounts.get)
|
259 |
+
*
|
260 |
+
* @param string $accountId Account to get information about.
|
261 |
+
* @param array $optParams Optional parameters.
|
262 |
+
* @return Google_Account
|
263 |
+
*/
|
264 |
+
public function get($accountId, $optParams = array()) {
|
265 |
+
$params = array('accountId' => $accountId);
|
266 |
+
$params = array_merge($params, $optParams);
|
267 |
+
$data = $this->__call('get', array($params));
|
268 |
+
if ($this->useObjects()) {
|
269 |
+
return new Google_Account($data);
|
270 |
+
} else {
|
271 |
+
return $data;
|
272 |
+
}
|
273 |
+
}
|
274 |
+
}
|
275 |
+
|
276 |
+
/**
|
277 |
+
* The "adunits" collection of methods.
|
278 |
+
* Typical usage is:
|
279 |
+
* <code>
|
280 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
281 |
+
* $adunits = $adsensehostService->adunits;
|
282 |
+
* </code>
|
283 |
+
*/
|
284 |
+
class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
|
285 |
+
|
286 |
+
|
287 |
+
/**
|
288 |
+
* Insert the supplied ad unit into the specified publisher AdSense account. (adunits.insert)
|
289 |
+
*
|
290 |
+
* @param string $accountId Account which will contain the ad unit.
|
291 |
+
* @param string $adClientId Ad client into which to insert the ad unit.
|
292 |
+
* @param Google_AdUnit $postBody
|
293 |
+
* @param array $optParams Optional parameters.
|
294 |
+
* @return Google_AdUnit
|
295 |
+
*/
|
296 |
+
public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
|
297 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
|
298 |
+
$params = array_merge($params, $optParams);
|
299 |
+
$data = $this->__call('insert', array($params));
|
300 |
+
if ($this->useObjects()) {
|
301 |
+
return new Google_AdUnit($data);
|
302 |
+
} else {
|
303 |
+
return $data;
|
304 |
+
}
|
305 |
+
}
|
306 |
+
/**
|
307 |
+
* Get the specified host ad unit in this AdSense account. (adunits.get)
|
308 |
+
*
|
309 |
+
* @param string $accountId Account which contains the ad unit.
|
310 |
+
* @param string $adClientId Ad client for which to get ad unit.
|
311 |
+
* @param string $adUnitId Ad unit to get.
|
312 |
+
* @param array $optParams Optional parameters.
|
313 |
+
* @return Google_AdUnit
|
314 |
+
*/
|
315 |
+
public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
|
316 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
317 |
+
$params = array_merge($params, $optParams);
|
318 |
+
$data = $this->__call('get', array($params));
|
319 |
+
if ($this->useObjects()) {
|
320 |
+
return new Google_AdUnit($data);
|
321 |
+
} else {
|
322 |
+
return $data;
|
323 |
+
}
|
324 |
+
}
|
325 |
+
/**
|
326 |
+
* Get ad code for the specified ad unit, attaching the specified host custom channels.
|
327 |
+
* (adunits.getAdCode)
|
328 |
+
*
|
329 |
+
* @param string $accountId Account which contains the ad client.
|
330 |
+
* @param string $adClientId Ad client with contains the ad unit.
|
331 |
+
* @param string $adUnitId Ad unit to get the code for.
|
332 |
+
* @param array $optParams Optional parameters.
|
333 |
+
*
|
334 |
+
* @opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
|
335 |
+
* @return Google_AdCode
|
336 |
+
*/
|
337 |
+
public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
|
338 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
339 |
+
$params = array_merge($params, $optParams);
|
340 |
+
$data = $this->__call('getAdCode', array($params));
|
341 |
+
if ($this->useObjects()) {
|
342 |
+
return new Google_AdCode($data);
|
343 |
+
} else {
|
344 |
+
return $data;
|
345 |
+
}
|
346 |
+
}
|
347 |
+
/**
|
348 |
+
* List all ad units in the specified publisher's AdSense account. (adunits.list)
|
349 |
+
*
|
350 |
+
* @param string $accountId Account which contains the ad client.
|
351 |
+
* @param string $adClientId Ad client for which to list ad units.
|
352 |
+
* @param array $optParams Optional parameters.
|
353 |
+
*
|
354 |
+
* @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
|
355 |
+
* @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.
|
356 |
+
* @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
|
357 |
+
* @return Google_AdUnits
|
358 |
+
*/
|
359 |
+
public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
|
360 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
|
361 |
+
$params = array_merge($params, $optParams);
|
362 |
+
$data = $this->__call('list', array($params));
|
363 |
+
if ($this->useObjects()) {
|
364 |
+
return new Google_AdUnits($data);
|
365 |
+
} else {
|
366 |
+
return $data;
|
367 |
+
}
|
368 |
+
}
|
369 |
+
/**
|
370 |
+
* Update the supplied ad unit in the specified publisher AdSense account. (adunits.update)
|
371 |
+
*
|
372 |
+
* @param string $accountId Account which contains the ad client.
|
373 |
+
* @param string $adClientId Ad client which contains the ad unit.
|
374 |
+
* @param Google_AdUnit $postBody
|
375 |
+
* @param array $optParams Optional parameters.
|
376 |
+
* @return Google_AdUnit
|
377 |
+
*/
|
378 |
+
public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
|
379 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
|
380 |
+
$params = array_merge($params, $optParams);
|
381 |
+
$data = $this->__call('update', array($params));
|
382 |
+
if ($this->useObjects()) {
|
383 |
+
return new Google_AdUnit($data);
|
384 |
+
} else {
|
385 |
+
return $data;
|
386 |
+
}
|
387 |
+
}
|
388 |
+
/**
|
389 |
+
* Update the supplied ad unit in the specified publisher AdSense account. This method supports
|
390 |
+
* patch semantics. (adunits.patch)
|
391 |
+
*
|
392 |
+
* @param string $accountId Account which contains the ad client.
|
393 |
+
* @param string $adClientId Ad client which contains the ad unit.
|
394 |
+
* @param string $adUnitId Ad unit to get.
|
395 |
+
* @param Google_AdUnit $postBody
|
396 |
+
* @param array $optParams Optional parameters.
|
397 |
+
* @return Google_AdUnit
|
398 |
+
*/
|
399 |
+
public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
|
400 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
|
401 |
+
$params = array_merge($params, $optParams);
|
402 |
+
$data = $this->__call('patch', array($params));
|
403 |
+
if ($this->useObjects()) {
|
404 |
+
return new Google_AdUnit($data);
|
405 |
+
} else {
|
406 |
+
return $data;
|
407 |
+
}
|
408 |
+
}
|
409 |
+
/**
|
410 |
+
* Delete the specified ad unit from the specified publisher AdSense account. (adunits.delete)
|
411 |
+
*
|
412 |
+
* @param string $accountId Account which contains the ad unit.
|
413 |
+
* @param string $adClientId Ad client for which to get ad unit.
|
414 |
+
* @param string $adUnitId Ad unit to delete.
|
415 |
+
* @param array $optParams Optional parameters.
|
416 |
+
* @return Google_AdUnit
|
417 |
+
*/
|
418 |
+
public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
|
419 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
|
420 |
+
$params = array_merge($params, $optParams);
|
421 |
+
$data = $this->__call('delete', array($params));
|
422 |
+
if ($this->useObjects()) {
|
423 |
+
return new Google_AdUnit($data);
|
424 |
+
} else {
|
425 |
+
return $data;
|
426 |
+
}
|
427 |
+
}
|
428 |
+
}
|
429 |
+
/**
|
430 |
+
* The "adclients" collection of methods.
|
431 |
+
* Typical usage is:
|
432 |
+
* <code>
|
433 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
434 |
+
* $adclients = $adsensehostService->adclients;
|
435 |
+
* </code>
|
436 |
+
*/
|
437 |
+
class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
|
438 |
+
|
439 |
+
|
440 |
+
/**
|
441 |
+
* List all hosted ad clients in the specified hosted account. (adclients.list)
|
442 |
+
*
|
443 |
+
* @param string $accountId Account for which to list ad clients.
|
444 |
+
* @param array $optParams Optional parameters.
|
445 |
+
*
|
446 |
+
* @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.
|
447 |
+
* @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
|
448 |
+
* @return Google_AdClients
|
449 |
+
*/
|
450 |
+
public function listAccountsAdclients($accountId, $optParams = array()) {
|
451 |
+
$params = array('accountId' => $accountId);
|
452 |
+
$params = array_merge($params, $optParams);
|
453 |
+
$data = $this->__call('list', array($params));
|
454 |
+
if ($this->useObjects()) {
|
455 |
+
return new Google_AdClients($data);
|
456 |
+
} else {
|
457 |
+
return $data;
|
458 |
+
}
|
459 |
+
}
|
460 |
+
/**
|
461 |
+
* Get information about one of the ad clients in the specified publisher's AdSense account.
|
462 |
+
* (adclients.get)
|
463 |
+
*
|
464 |
+
* @param string $accountId Account which contains the ad client.
|
465 |
+
* @param string $adClientId Ad client to get.
|
466 |
+
* @param array $optParams Optional parameters.
|
467 |
+
* @return Google_AdClient
|
468 |
+
*/
|
469 |
+
public function get($accountId, $adClientId, $optParams = array()) {
|
470 |
+
$params = array('accountId' => $accountId, 'adClientId' => $adClientId);
|
471 |
+
$params = array_merge($params, $optParams);
|
472 |
+
$data = $this->__call('get', array($params));
|
473 |
+
if ($this->useObjects()) {
|
474 |
+
return new Google_AdClient($data);
|
475 |
+
} else {
|
476 |
+
return $data;
|
477 |
+
}
|
478 |
+
}
|
479 |
+
}
|
480 |
+
/**
|
481 |
+
* The "reports" collection of methods.
|
482 |
+
* Typical usage is:
|
483 |
+
* <code>
|
484 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
485 |
+
* $reports = $adsensehostService->reports;
|
486 |
+
* </code>
|
487 |
+
*/
|
488 |
+
class Google_AccountsReportsServiceResource extends Google_ServiceResource {
|
489 |
+
|
490 |
+
|
491 |
+
/**
|
492 |
+
* Generate an AdSense report based on the report request sent in the query parameters. Returns the
|
493 |
+
* result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
494 |
+
* (reports.generate)
|
495 |
+
*
|
496 |
+
* @param string $accountId Hosted account upon which to report.
|
497 |
+
* @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
498 |
+
* @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
499 |
+
* @param array $optParams Optional parameters.
|
500 |
+
*
|
501 |
+
* @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.
|
502 |
+
* @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
503 |
+
* @opt_param string metric Numeric columns to include in the report.
|
504 |
+
* @opt_param string maxResults The maximum number of rows of report data to return.
|
505 |
+
* @opt_param string filter Filters to be run on the report.
|
506 |
+
* @opt_param string startIndex Index of the first row of report data to return.
|
507 |
+
* @opt_param string dimension Dimensions to base the report on.
|
508 |
+
* @return Google_Report
|
509 |
+
*/
|
510 |
+
public function generate($accountId, $startDate, $endDate, $optParams = array()) {
|
511 |
+
$params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
|
512 |
+
$params = array_merge($params, $optParams);
|
513 |
+
$data = $this->__call('generate', array($params));
|
514 |
+
if ($this->useObjects()) {
|
515 |
+
return new Google_Report($data);
|
516 |
+
} else {
|
517 |
+
return $data;
|
518 |
+
}
|
519 |
+
}
|
520 |
+
}
|
521 |
+
|
522 |
+
/**
|
523 |
+
* The "customchannels" collection of methods.
|
524 |
+
* Typical usage is:
|
525 |
+
* <code>
|
526 |
+
* $adsensehostService = new Google_AdsensehostService(...);
|
527 |
+
* $customchannels = $adsensehostService->customchannels;
|
528 |
+
* </code>
|
529 |
+
*/
|
530 |
+
class Google_CustomchannelsServiceResource extends Google_ServiceResource {
|
531 |
+
|
532 |
+
|
533 |
+
/**
|
534 |
+
* Add a new custom channel to the host AdSense account. (customchannels.insert)
|
535 |
+
*
|
536 |
+
* @param string $adClientId Ad client to which the new custom channel will be added.
|
537 |
+
* @param Google_CustomChannel $postBody
|
538 |
+
* @param array $optParams Optional parameters.
|
539 |
+
* @return Google_CustomChannel
|
540 |
+
*/
|
541 |
+
public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
|
542 |
+
$params = array('adClientId' => $adClientId, 'postBody' => $postBody);
|
543 |
+
$params = array_merge($params, $optParams);
|
544 |
+
$data = $this->__call('insert', array($params));
|
545 |
+
if ($this->useObjects()) {
|
546 |
+
return new Google_CustomChannel($data);
|
547 |
+
} else {
|
548 |
+
return $data;
|
549 |
+
}
|
550 |
+
}
|
551 |
+
/**
|
552 |
+
* Get a specific custom channel from the host AdSense account. (customchannels.get)
|
553 |
+
*
|
554 |
+
* @param string $adClientId Ad client from which to get the custom channel.
|
555 |
+
* @param string $customChannelId Custom channel to get.
|
556 |
+
* @param array $optParams Optional parameters.
|
557 |
+
* @return Google_CustomChannel
|
558 |
+
*/
|
559 |
+
public function get($adClientId, $customChannelId, $optParams = array()) {
|
560 |
+
$params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
561 |
+
$params = array_merge($params, $optParams);
|
562 |
+
$data = $this->__call('get', array($params));
|
563 |
+
if ($this->useObjects()) {
|
564 |
+
return new Google_CustomChannel($data);
|
565 |
+
} else {
|
566 |
+
return $data;
|
567 |
+
}
|
568 |
+
}
|
569 |
+
/**
|
570 |
+
* List all host custom channels in this AdSense account. (customchannels.list)
|
571 |
+
*
|
572 |
+
* @param string $adClientId Ad client for which to list custom channels.
|
573 |
+
* @param array $optParams Optional parameters.
|
574 |
+
*
|
575 |
+
* @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.
|
576 |
+
* @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
|
577 |
+
* @return Google_CustomChannels
|
578 |
+
*/
|
579 |
+
public function listCustomchannels($adClientId, $optParams = array()) {
|
580 |
+
$params = array('adClientId' => $adClientId);
|
581 |
+
$params = array_merge($params, $optParams);
|
582 |
+
$data = $this->__call('list', array($params));
|
583 |
+
if ($this->useObjects()) {
|
584 |
+
return new Google_CustomChannels($data);
|
585 |
+
} else {
|
586 |
+
return $data;
|
587 |
+
}
|
588 |
+
}
|
589 |
+
/**
|
590 |
+
* Update a custom channel in the host AdSense account. (customchannels.update)
|
591 |
+
*
|
592 |
+
* @param string $adClientId Ad client in which the custom channel will be updated.
|
593 |
+
* @param Google_CustomChannel $postBody
|
594 |
+
* @param array $optParams Optional parameters.
|
595 |
+
* @return Google_CustomChannel
|
596 |
+
*/
|
597 |
+
public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
|
598 |
+
$params = array('adClientId' => $adClientId, 'postBody' => $postBody);
|
599 |
+
$params = array_merge($params, $optParams);
|
600 |
+
$data = $this->__call('update', array($params));
|
601 |
+
if ($this->useObjects()) {
|
602 |
+
return new Google_CustomChannel($data);
|
603 |
+
} else {
|
604 |
+
return $data;
|
605 |
+
}
|
606 |
+
}
|
607 |
+
/**
|
608 |
+
* Update a custom channel in the host AdSense account. This method supports patch semantics.
|
609 |
+
* (customchannels.patch)
|
610 |
+
*
|
611 |
+
* @param string $adClientId Ad client in which the custom channel will be updated.
|
612 |
+
* @param string $customChannelId Custom channel to get.
|
613 |
+
* @param Google_CustomChannel $postBody
|
614 |
+
* @param array $optParams Optional parameters.
|
615 |
+
* @return Google_CustomChannel
|
616 |
+
*/
|
617 |
+
public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
|
618 |
+
$params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
|
619 |
+
$params = array_merge($params, $optParams);
|
620 |
+
$data = $this->__call('patch', array($params));
|
621 |
+
if ($this->useObjects()) {
|
622 |
+
return new Google_CustomChannel($data);
|
623 |
+
} else {
|
624 |
+
return $data;
|
625 |
+
}
|
626 |
+
}
|
627 |
+
/**
|
628 |
+
* Delete a specific custom channel from the host AdSense account. (customchannels.delete)
|
629 |
+
*
|
630 |
+
* @param string $adClientId Ad client from which to delete the custom channel.
|
631 |
+
* @param string $customChannelId Custom channel to delete.
|
632 |
+
* @param array $optParams Optional parameters.
|
633 |
+
* @return Google_CustomChannel
|
634 |
+
*/
|
635 |
+
public function delete($adClientId, $customChannelId, $optParams = array()) {
|
636 |
+
$params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
|
637 |
+
$params = array_merge($params, $optParams);
|
638 |
+
$data = $this->__call('delete', array($params));
|
639 |
+
if ($this->useObjects()) {
|
640 |
+
return new Google_CustomChannel($data);
|
641 |
+
} else {
|
642 |
+
return $data;
|
643 |
+
}
|
644 |
+
}
|
645 |
+
}
|
646 |
+
|
647 |
+
/**
|
648 |
+
* Service definition for Google_Adsensehost (v4.1).
|
649 |
+
*
|
650 |
+
* <p>
|
651 |
+
* Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
|
652 |
+
* </p>
|
653 |
+
*
|
654 |
+
* <p>
|
655 |
+
* For more information about this service, see the
|
656 |
+
* <a href="https://developers.google.com/adsense/host/" target="_blank">API Documentation</a>
|
657 |
+
* </p>
|
658 |
+
*
|
659 |
+
* @author Google, Inc.
|
660 |
+
*/
|
661 |
+
class Google_AdsensehostService extends Google_Service {
|
662 |
+
public $urlchannels;
|
663 |
+
public $adclients;
|
664 |
+
public $associationsessions;
|
665 |
+
public $reports;
|
666 |
+
public $accounts;
|
667 |
+
public $accounts_adunits;
|
668 |
+
public $accounts_adclients;
|
669 |
+
public $accounts_reports;
|
670 |
+
public $customchannels;
|
671 |
+
/**
|
672 |
+
* Constructs the internal representation of the Adsensehost service.
|
673 |
+
*
|
674 |
+
* @param Google_Client $client
|
675 |
+
*/
|
676 |
+
public function __construct(Google_Client $client) {
|
677 |
+
$this->servicePath = 'adsensehost/v4.1/';
|
678 |
+
$this->version = 'v4.1';
|
679 |
+
$this->serviceName = 'adsensehost';
|
680 |
+
|
681 |
+
$client->addService($this->serviceName, $this->version);
|
682 |
+
$this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/urlchannels", "id": "adsensehost.urlchannels.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "urlChannelId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.urlchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "response": {"$ref": "UrlChannel"}}}}', true));
|
683 |
+
$this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsensehost.adclients.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.adclients.get", "httpMethod": "GET", "path": "adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
|
684 |
+
$this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"websiteLocale": {"type": "string", "location": "query"}, "productCode": {"repeated": true, "required": true, "type": "string", "location": "query", "enum": ["AFC", "AFF", "AFMC", "AFS"]}, "userLocale": {"type": "string", "location": "query"}, "websiteUrl": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.start", "httpMethod": "GET", "path": "associationsessions/start", "response": {"$ref": "AssociationSession"}}, "verify": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"token": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.verify", "httpMethod": "GET", "path": "associationsessions/verify", "response": {"$ref": "AssociationSession"}}}}', true));
|
685 |
+
$this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsensehost.reports.generate", "httpMethod": "GET", "path": "reports", "response": {"$ref": "Report"}}}}', true));
|
686 |
+
$this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"filterAdClientId": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "adsensehost.accounts.list", "httpMethod": "GET", "path": "accounts", "response": {"$ref": "Accounts"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
|
687 |
+
$this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "POST", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}, "getAdCode": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "hostCustomChannelId": {"repeated": true, "type": "string", "location": "query"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.getAdCode", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "response": {"$ref": "AdCode"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PUT", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PATCH", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.delete", "httpMethod": "DELETE", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
|
688 |
+
$this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
|
689 |
+
$this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.reports.generate", "httpMethod": "GET", "path": "accounts/{accountId}/reports", "response": {"$ref": "Report"}}}}', true));
|
690 |
+
$this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PUT", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PATCH", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
|
691 |
+
|
692 |
+
}
|
693 |
+
}
|
694 |
+
|
695 |
+
class Google_Account extends Google_Model {
|
696 |
+
public $status;
|
697 |
+
public $kind;
|
698 |
+
public $id;
|
699 |
+
public $name;
|
700 |
+
public function setStatus($status) {
|
701 |
+
$this->status = $status;
|
702 |
+
}
|
703 |
+
public function getStatus() {
|
704 |
+
return $this->status;
|
705 |
+
}
|
706 |
+
public function setKind($kind) {
|
707 |
+
$this->kind = $kind;
|
708 |
+
}
|
709 |
+
public function getKind() {
|
710 |
+
return $this->kind;
|
711 |
+
}
|
712 |
+
public function setId($id) {
|
713 |
+
$this->id = $id;
|
714 |
+
}
|
715 |
+
public function getId() {
|
716 |
+
return $this->id;
|
717 |
+
}
|
718 |
+
public function setName($name) {
|
719 |
+
$this->name = $name;
|
720 |
+
}
|
721 |
+
public function getName() {
|
722 |
+
return $this->name;
|
723 |
+
}
|
724 |
+
}
|
725 |
+
|
726 |
+
class Google_Accounts extends Google_Model {
|
727 |
+
protected $__itemsType = 'Google_Account';
|
728 |
+
protected $__itemsDataType = 'array';
|
729 |
+
public $items;
|
730 |
+
public $kind;
|
731 |
+
public $etag;
|
732 |
+
public function setItems($items) {
|
733 |
+
$this->assertIsArray($items, 'Google_Account', __METHOD__);
|
734 |
+
$this->items = $items;
|
735 |
+
}
|
736 |
+
public function getItems() {
|
737 |
+
return $this->items;
|
738 |
+
}
|
739 |
+
public function setKind($kind) {
|
740 |
+
$this->kind = $kind;
|
741 |
+
}
|
742 |
+
public function getKind() {
|
743 |
+
return $this->kind;
|
744 |
+
}
|
745 |
+
public function setEtag($etag) {
|
746 |
+
$this->etag = $etag;
|
747 |
+
}
|
748 |
+
public function getEtag() {
|
749 |
+
return $this->etag;
|
750 |
+
}
|
751 |
+
}
|
752 |
+
|
753 |
+
class Google_AdClient extends Google_Model {
|
754 |
+
public $productCode;
|
755 |
+
public $kind;
|
756 |
+
public $id;
|
757 |
+
public $arcOptIn;
|
758 |
+
public $supportsReporting;
|
759 |
+
public function setProductCode($productCode) {
|
760 |
+
$this->productCode = $productCode;
|
761 |
+
}
|
762 |
+
public function getProductCode() {
|
763 |
+
return $this->productCode;
|
764 |
+
}
|
765 |
+
public function setKind($kind) {
|
766 |
+
$this->kind = $kind;
|
767 |
+
}
|
768 |
+
public function getKind() {
|
769 |
+
return $this->kind;
|
770 |
+
}
|
771 |
+
public function setId($id) {
|
772 |
+
$this->id = $id;
|
773 |
+
}
|
774 |
+
public function getId() {
|
775 |
+
return $this->id;
|
776 |
+
}
|
777 |
+
public function setArcOptIn($arcOptIn) {
|
778 |
+
$this->arcOptIn = $arcOptIn;
|
779 |
+
}
|
780 |
+
public function getArcOptIn() {
|
781 |
+
return $this->arcOptIn;
|
782 |
+
}
|
783 |
+
public function setSupportsReporting($supportsReporting) {
|
784 |
+
$this->supportsReporting = $supportsReporting;
|
785 |
+
}
|
786 |
+
public function getSupportsReporting() {
|
787 |
+
return $this->supportsReporting;
|
788 |
+
}
|
789 |
+
}
|
790 |
+
|
791 |
+
class Google_AdClients extends Google_Model {
|
792 |
+
public $nextPageToken;
|
793 |
+
protected $__itemsType = 'Google_AdClient';
|
794 |
+
protected $__itemsDataType = 'array';
|
795 |
+
public $items;
|
796 |
+
public $kind;
|
797 |
+
public $etag;
|
798 |
+
public function setNextPageToken($nextPageToken) {
|
799 |
+
$this->nextPageToken = $nextPageToken;
|
800 |
+
}
|
801 |
+
public function getNextPageToken() {
|
802 |
+
return $this->nextPageToken;
|
803 |
+
}
|
804 |
+
public function setItems($items) {
|
805 |
+
$this->assertIsArray($items, 'Google_AdClient', __METHOD__);
|
806 |
+
$this->items = $items;
|
807 |
+
}
|
808 |
+
public function getItems() {
|
809 |
+
return $this->items;
|
810 |
+
}
|
811 |
+
public function setKind($kind) {
|
812 |
+
$this->kind = $kind;
|
813 |
+
}
|
814 |
+
public function getKind() {
|
815 |
+
return $this->kind;
|
816 |
+
}
|
817 |
+
public function setEtag($etag) {
|
818 |
+
$this->etag = $etag;
|
819 |
+
}
|
820 |
+
public function getEtag() {
|
821 |
+
return $this->etag;
|
822 |
+
}
|
823 |
+
}
|
824 |
+
|
825 |
+
class Google_AdCode extends Google_Model {
|
826 |
+
public $adCode;
|
827 |
+
public $kind;
|
828 |
+
public function setAdCode($adCode) {
|
829 |
+
$this->adCode = $adCode;
|
830 |
+
}
|
831 |
+
public function getAdCode() {
|
832 |
+
return $this->adCode;
|
833 |
+
}
|
834 |
+
public function setKind($kind) {
|
835 |
+
$this->kind = $kind;
|
836 |
+
}
|
837 |
+
public function getKind() {
|
838 |
+
return $this->kind;
|
839 |
+
}
|
840 |
+
}
|
841 |
+
|
842 |
+
class Google_AdStyle extends Google_Model {
|
843 |
+
public $corners;
|
844 |
+
protected $__colorsType = 'Google_AdStyleColors';
|
845 |
+
protected $__colorsDataType = '';
|
846 |
+
public $colors;
|
847 |
+
protected $__fontType = 'Google_AdStyleFont';
|
848 |
+
protected $__fontDataType = '';
|
849 |
+
public $font;
|
850 |
+
public $kind;
|
851 |
+
public function setCorners($corners) {
|
852 |
+
$this->corners = $corners;
|
853 |
+
}
|
854 |
+
public function getCorners() {
|
855 |
+
return $this->corners;
|
856 |
+
}
|
857 |
+
public function setColors(Google_AdStyleColors $colors) {
|
858 |
+
$this->colors = $colors;
|
859 |
+
}
|
860 |
+
public function getColors() {
|
861 |
+
return $this->colors;
|
862 |
+
}
|
863 |
+
public function setFont(Google_AdStyleFont $font) {
|
864 |
+
$this->font = $font;
|
865 |
+
}
|
866 |
+
public function getFont() {
|
867 |
+
return $this->font;
|
868 |
+
}
|
869 |
+
public function setKind($kind) {
|
870 |
+
$this->kind = $kind;
|
871 |
+
}
|
872 |
+
public function getKind() {
|
873 |
+
return $this->kind;
|
874 |
+
}
|
875 |
+
}
|
876 |
+
|
877 |
+
class Google_AdStyleColors extends Google_Model {
|
878 |
+
public $url;
|
879 |
+
public $text;
|
880 |
+
public $border;
|
881 |
+
public $background;
|
882 |
+
public $title;
|
883 |
+
public function setUrl($url) {
|
884 |
+
$this->url = $url;
|
885 |
+
}
|
886 |
+
public function getUrl() {
|
887 |
+
return $this->url;
|
888 |
+
}
|
889 |
+
public function setText($text) {
|
890 |
+
$this->text = $text;
|
891 |
+
}
|
892 |
+
public function getText() {
|
893 |
+
return $this->text;
|
894 |
+
}
|
895 |
+
public function setBorder($border) {
|
896 |
+
$this->border = $border;
|
897 |
+
}
|
898 |
+
public function getBorder() {
|
899 |
+
return $this->border;
|
900 |
+
}
|
901 |
+
public function setBackground($background) {
|
902 |
+
$this->background = $background;
|
903 |
+
}
|
904 |
+
public function getBackground() {
|
905 |
+
return $this->background;
|
906 |
+
}
|
907 |
+
public function setTitle($title) {
|
908 |
+
$this->title = $title;
|
909 |
+
}
|
910 |
+
public function getTitle() {
|
911 |
+
return $this->title;
|
912 |
+
}
|
913 |
+
}
|
914 |
+
|
915 |
+
class Google_AdStyleFont extends Google_Model {
|
916 |
+
public $family;
|
917 |
+
public $size;
|
918 |
+
public function setFamily($family) {
|
919 |
+
$this->family = $family;
|
920 |
+
}
|
921 |
+
public function getFamily() {
|
922 |
+
return $this->family;
|
923 |
+
}
|
924 |
+
public function setSize($size) {
|
925 |
+
$this->size = $size;
|
926 |
+
}
|
927 |
+
public function getSize() {
|
928 |
+
return $this->size;
|
929 |
+
}
|
930 |
+
}
|
931 |
+
|
932 |
+
class Google_AdUnit extends Google_Model {
|
933 |
+
public $status;
|
934 |
+
public $kind;
|
935 |
+
public $code;
|
936 |
+
public $name;
|
937 |
+
protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
|
938 |
+
protected $__contentAdsSettingsDataType = '';
|
939 |
+
public $contentAdsSettings;
|
940 |
+
public $id;
|
941 |
+
protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
|
942 |
+
protected $__mobileContentAdsSettingsDataType = '';
|
943 |
+
public $mobileContentAdsSettings;
|
944 |
+
protected $__customStyleType = 'Google_AdStyle';
|
945 |
+
protected $__customStyleDataType = '';
|
946 |
+
public $customStyle;
|
947 |
+
public function setStatus($status) {
|
948 |
+
$this->status = $status;
|
949 |
+
}
|
950 |
+
public function getStatus() {
|
951 |
+
return $this->status;
|
952 |
+
}
|
953 |
+
public function setKind($kind) {
|
954 |
+
$this->kind = $kind;
|
955 |
+
}
|
956 |
+
public function getKind() {
|
957 |
+
return $this->kind;
|
958 |
+
}
|
959 |
+
public function setCode($code) {
|
960 |
+
$this->code = $code;
|
961 |
+
}
|
962 |
+
public function getCode() {
|
963 |
+
return $this->code;
|
964 |
+
}
|
965 |
+
public function setName($name) {
|
966 |
+
$this->name = $name;
|
967 |
+
}
|
968 |
+
public function getName() {
|
969 |
+
return $this->name;
|
970 |
+
}
|
971 |
+
public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
|
972 |
+
$this->contentAdsSettings = $contentAdsSettings;
|
973 |
+
}
|
974 |
+
public function getContentAdsSettings() {
|
975 |
+
return $this->contentAdsSettings;
|
976 |
+
}
|
977 |
+
public function setId($id) {
|
978 |
+
$this->id = $id;
|
979 |
+
}
|
980 |
+
public function getId() {
|
981 |
+
return $this->id;
|
982 |
+
}
|
983 |
+
public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
|
984 |
+
$this->mobileContentAdsSettings = $mobileContentAdsSettings;
|
985 |
+
}
|
986 |
+
public function getMobileContentAdsSettings() {
|
987 |
+
return $this->mobileContentAdsSettings;
|
988 |
+
}
|
989 |
+
public function setCustomStyle(Google_AdStyle $customStyle) {
|
990 |
+
$this->customStyle = $customStyle;
|
991 |
+
}
|
992 |
+
public function getCustomStyle() {
|
993 |
+
return $this->customStyle;
|
994 |
+
}
|
995 |
+
}
|
996 |
+
|
997 |
+
class Google_AdUnitContentAdsSettings extends Google_Model {
|
998 |
+
public $type;
|
999 |
+
protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
|
1000 |
+
protected $__backupOptionDataType = '';
|
1001 |
+
public $backupOption;
|
1002 |
+
public $size;
|
1003 |
+
public function setType($type) {
|
1004 |
+
$this->type = $type;
|
1005 |
+
}
|
1006 |
+
public function getType() {
|
1007 |
+
return $this->type;
|
1008 |
+
}
|
1009 |
+
public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
|
1010 |
+
$this->backupOption = $backupOption;
|
1011 |
+
}
|
1012 |
+
public function getBackupOption() {
|
1013 |
+
return $this->backupOption;
|
1014 |
+
}
|
1015 |
+
public function setSize($size) {
|
1016 |
+
$this->size = $size;
|
1017 |
+
}
|
1018 |
+
public function getSize() {
|
1019 |
+
return $this->size;
|
1020 |
+
}
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
|
1024 |
+
public $color;
|
1025 |
+
public $url;
|
1026 |
+
public $type;
|
1027 |
+
public function setColor($color) {
|
1028 |
+
$this->color = $color;
|
1029 |
+
}
|
1030 |
+
public function getColor() {
|
1031 |
+
return $this->color;
|
1032 |
+
}
|
1033 |
+
public function setUrl($url) {
|
1034 |
+
$this->url = $url;
|
1035 |
+
}
|
1036 |
+
public function getUrl() {
|
1037 |
+
return $this->url;
|
1038 |
+
}
|
1039 |
+
public function setType($type) {
|
1040 |
+
$this->type = $type;
|
1041 |
+
}
|
1042 |
+
public function getType() {
|
1043 |
+
return $this->type;
|
1044 |
+
}
|
1045 |
+
}
|
1046 |
+
|
1047 |
+
class Google_AdUnitMobileContentAdsSettings extends Google_Model {
|
1048 |
+
public $scriptingLanguage;
|
1049 |
+
public $type;
|
1050 |
+
public $markupLanguage;
|
1051 |
+
public $size;
|
1052 |
+
public function setScriptingLanguage($scriptingLanguage) {
|
1053 |
+
$this->scriptingLanguage = $scriptingLanguage;
|
1054 |
+
}
|
1055 |
+
public function getScriptingLanguage() {
|
1056 |
+
return $this->scriptingLanguage;
|
1057 |
+
}
|
1058 |
+
public function setType($type) {
|
1059 |
+
$this->type = $type;
|
1060 |
+
}
|
1061 |
+
public function getType() {
|
1062 |
+
return $this->type;
|
1063 |
+
}
|
1064 |
+
public function setMarkupLanguage($markupLanguage) {
|
1065 |
+
$this->markupLanguage = $markupLanguage;
|
1066 |
+
}
|
1067 |
+
public function getMarkupLanguage() {
|
1068 |
+
return $this->markupLanguage;
|
1069 |
+
}
|
1070 |
+
public function setSize($size) {
|
1071 |
+
$this->size = $size;
|
1072 |
+
}
|
1073 |
+
public function getSize() {
|
1074 |
+
return $this->size;
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
class Google_AdUnits extends Google_Model {
|
1079 |
+
public $nextPageToken;
|
1080 |
+
protected $__itemsType = 'Google_AdUnit';
|
1081 |
+
protected $__itemsDataType = 'array';
|
1082 |
+
public $items;
|
1083 |
+
public $kind;
|
1084 |
+
public $etag;
|
1085 |
+
public function setNextPageToken($nextPageToken) {
|
1086 |
+
$this->nextPageToken = $nextPageToken;
|
1087 |
+
}
|
1088 |
+
public function getNextPageToken() {
|
1089 |
+
return $this->nextPageToken;
|
1090 |
+
}
|
1091 |
+
public function setItems($items) {
|
1092 |
+
$this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
|
1093 |
+
$this->items = $items;
|
1094 |
+
}
|
1095 |
+
public function getItems() {
|
1096 |
+
return $this->items;
|
1097 |
+
}
|
1098 |
+
public function setKind($kind) {
|
1099 |
+
$this->kind = $kind;
|
1100 |
+
}
|
1101 |
+
public function getKind() {
|
1102 |
+
return $this->kind;
|
1103 |
+
}
|
1104 |
+
public function setEtag($etag) {
|
1105 |
+
$this->etag = $etag;
|
1106 |
+
}
|
1107 |
+
public function getEtag() {
|
1108 |
+
return $this->etag;
|
1109 |
+
}
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
class Google_AssociationSession extends Google_Model {
|
1113 |
+
public $status;
|
1114 |
+
public $productCodes;
|
1115 |
+
public $kind;
|
1116 |
+
public $userLocale;
|
1117 |
+
public $websiteLocale;
|
1118 |
+
public $redirectUrl;
|
1119 |
+
public $websiteUrl;
|
1120 |
+
public $id;
|
1121 |
+
public $accountId;
|
1122 |
+
public function setStatus($status) {
|
1123 |
+
$this->status = $status;
|
1124 |
+
}
|
1125 |
+
public function getStatus() {
|
1126 |
+
return $this->status;
|
1127 |
+
}
|
1128 |
+
public function setProductCodes($productCodes) {
|
1129 |
+
$this->productCodes = $productCodes;
|
1130 |
+
}
|
1131 |
+
public function getProductCodes() {
|
1132 |
+
return $this->productCodes;
|
1133 |
+
}
|
1134 |
+
public function setKind($kind) {
|
1135 |
+
$this->kind = $kind;
|
1136 |
+
}
|
1137 |
+
public function getKind() {
|
1138 |
+
return $this->kind;
|
1139 |
+
}
|
1140 |
+
public function setUserLocale($userLocale) {
|
1141 |
+
$this->userLocale = $userLocale;
|
1142 |
+
}
|
1143 |
+
public function getUserLocale() {
|
1144 |
+
return $this->userLocale;
|
1145 |
+
}
|
1146 |
+
public function setWebsiteLocale($websiteLocale) {
|
1147 |
+
$this->websiteLocale = $websiteLocale;
|
1148 |
+
}
|
1149 |
+
public function getWebsiteLocale() {
|
1150 |
+
return $this->websiteLocale;
|
1151 |
+
}
|
1152 |
+
public function setRedirectUrl($redirectUrl) {
|
1153 |
+
$this->redirectUrl = $redirectUrl;
|
1154 |
+
}
|
1155 |
+
public function getRedirectUrl() {
|
1156 |
+
return $this->redirectUrl;
|
1157 |
+
}
|
1158 |
+
public function setWebsiteUrl($websiteUrl) {
|
1159 |
+
$this->websiteUrl = $websiteUrl;
|
1160 |
+
}
|
1161 |
+
public function getWebsiteUrl() {
|
1162 |
+
return $this->websiteUrl;
|
1163 |
+
}
|
1164 |
+
public function setId($id) {
|
1165 |
+
$this->id = $id;
|
1166 |
+
}
|
1167 |
+
public function getId() {
|
1168 |
+
return $this->id;
|
1169 |
+
}
|
1170 |
+
public function setAccountId($accountId) {
|
1171 |
+
$this->accountId = $accountId;
|
1172 |
+
}
|
1173 |
+
public function getAccountId() {
|
1174 |
+
return $this->accountId;
|
1175 |
+
}
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
class Google_CustomChannel extends Google_Model {
|
1179 |
+
public $kind;
|
1180 |
+
public $code;
|
1181 |
+
public $id;
|
1182 |
+
public $name;
|
1183 |
+
public function setKind($kind) {
|
1184 |
+
$this->kind = $kind;
|
1185 |
+
}
|
1186 |
+
public function getKind() {
|
1187 |
+
return $this->kind;
|
1188 |
+
}
|
1189 |
+
public function setCode($code) {
|
1190 |
+
$this->code = $code;
|
1191 |
+
}
|
1192 |
+
public function getCode() {
|
1193 |
+
return $this->code;
|
1194 |
+
}
|
1195 |
+
public function setId($id) {
|
1196 |
+
$this->id = $id;
|
1197 |
+
}
|
1198 |
+
public function getId() {
|
1199 |
+
return $this->id;
|
1200 |
+
}
|
1201 |
+
public function setName($name) {
|
1202 |
+
$this->name = $name;
|
1203 |
+
}
|
1204 |
+
public function getName() {
|
1205 |
+
return $this->name;
|
1206 |
+
}
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
class Google_CustomChannels extends Google_Model {
|
1210 |
+
public $nextPageToken;
|
1211 |
+
protected $__itemsType = 'Google_CustomChannel';
|
1212 |
+
protected $__itemsDataType = 'array';
|
1213 |
+
public $items;
|
1214 |
+
public $kind;
|
1215 |
+
public $etag;
|
1216 |
+
public function setNextPageToken($nextPageToken) {
|
1217 |
+
$this->nextPageToken = $nextPageToken;
|
1218 |
+
}
|
1219 |
+
public function getNextPageToken() {
|
1220 |
+
return $this->nextPageToken;
|
1221 |
+
}
|
1222 |
+
public function setItems($items) {
|
1223 |
+
$this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
|
1224 |
+
$this->items = $items;
|
1225 |
+
}
|
1226 |
+
public function getItems() {
|
1227 |
+
return $this->items;
|
1228 |
+
}
|
1229 |
+
public function setKind($kind) {
|
1230 |
+
$this->kind = $kind;
|
1231 |
+
}
|
1232 |
+
public function getKind() {
|
1233 |
+
return $this->kind;
|
1234 |
+
}
|
1235 |
+
public function setEtag($etag) {
|
1236 |
+
$this->etag = $etag;
|
1237 |
+
}
|
1238 |
+
public function getEtag() {
|
1239 |
+
return $this->etag;
|
1240 |
+
}
|
1241 |
+
}
|
1242 |
+
|
1243 |
+
class Google_Report extends Google_Model {
|
1244 |
+
public $kind;
|
1245 |
+
public $rows;
|
1246 |
+
public $warnings;
|
1247 |
+
public $totals;
|
1248 |
+
protected $__headersType = 'Google_ReportHeaders';
|
1249 |
+
protected $__headersDataType = 'array';
|
1250 |
+
public $headers;
|
1251 |
+
public $totalMatchedRows;
|
1252 |
+
public $averages;
|
1253 |
+
public function setKind($kind) {
|
1254 |
+
$this->kind = $kind;
|
1255 |
+
}
|
1256 |
+
public function getKind() {
|
1257 |
+
return $this->kind;
|
1258 |
+
}
|
1259 |
+
public function setRows($rows) {
|
1260 |
+
$this->rows = $rows;
|
1261 |
+
}
|
1262 |
+
public function getRows() {
|
1263 |
+
return $this->rows;
|
1264 |
+
}
|
1265 |
+
public function setWarnings($warnings) {
|
1266 |
+
$this->warnings = $warnings;
|
1267 |
+
}
|
1268 |
+
public function getWarnings() {
|
1269 |
+
return $this->warnings;
|
1270 |
+
}
|
1271 |
+
public function setTotals($totals) {
|
1272 |
+
$this->totals = $totals;
|
1273 |
+
}
|
1274 |
+
public function getTotals() {
|
1275 |
+
return $this->totals;
|
1276 |
+
}
|
1277 |
+
public function setHeaders($headers) {
|
1278 |
+
$this->assertIsArray($headers, 'Google_ReportHeaders', __METHOD__);
|
1279 |
+
$this->headers = $headers;
|
1280 |
+
}
|
1281 |
+
public function getHeaders() {
|
1282 |
+
return $this->headers;
|
1283 |
+
}
|
1284 |
+
public function setTotalMatchedRows($totalMatchedRows) {
|
1285 |
+
$this->totalMatchedRows = $totalMatchedRows;
|
1286 |
+
}
|
1287 |
+
public function getTotalMatchedRows() {
|
1288 |
+
return $this->totalMatchedRows;
|
1289 |
+
}
|
1290 |
+
public function setAverages($averages) {
|
1291 |
+
$this->averages = $averages;
|
1292 |
+
}
|
1293 |
+
public function getAverages() {
|
1294 |
+
return $this->averages;
|
1295 |
+
}
|
1296 |
+
}
|
1297 |
+
|
1298 |
+
class Google_ReportHeaders extends Google_Model {
|
1299 |
+
public $currency;
|
1300 |
+
public $type;
|
1301 |
+
public $name;
|
1302 |
+
public function setCurrency($currency) {
|
1303 |
+
$this->currency = $currency;
|
1304 |
+
}
|
1305 |
+
public function getCurrency() {
|
1306 |
+
return $this->currency;
|
1307 |
+
}
|
1308 |
+
public function setType($type) {
|
1309 |
+
$this->type = $type;
|
1310 |
+
}
|
1311 |
+
public function getType() {
|
1312 |
+
return $this->type;
|
1313 |
+
}
|
1314 |
+
public function setName($name) {
|
1315 |
+
$this->name = $name;
|
1316 |
+
}
|
1317 |
+
public function getName() {
|
1318 |
+
return $this->name;
|
1319 |
+
}
|
1320 |
+
}
|
1321 |
+
|
1322 |
+
class Google_UrlChannel extends Google_Model {
|
1323 |
+
public $kind;
|
1324 |
+
public $id;
|
1325 |
+
public $urlPattern;
|
1326 |
+
public function setKind($kind) {
|
1327 |
+
$this->kind = $kind;
|
1328 |
+
}
|
1329 |
+
public function getKind() {
|
1330 |
+
return $this->kind;
|
1331 |
+
}
|
1332 |
+
public function setId($id) {
|
1333 |
+
$this->id = $id;
|
1334 |
+
}
|
1335 |
+
public function getId() {
|
1336 |
+
return $this->id;
|
1337 |
+
}
|
1338 |
+
public function setUrlPattern($urlPattern) {
|
1339 |
+
$this->urlPattern = $urlPattern;
|
1340 |
+
}
|
1341 |
+
public function getUrlPattern() {
|
1342 |
+
return $this->urlPattern;
|
1343 |
+
}
|
1344 |
+
}
|
1345 |
+
|
1346 |
+
class Google_UrlChannels extends Google_Model {
|
1347 |
+
public $nextPageToken;
|
1348 |
+
protected $__itemsType = 'Google_UrlChannel';
|
1349 |
+
protected $__itemsDataType = 'array';
|
1350 |
+
public $items;
|
1351 |
+
public $kind;
|
1352 |
+
public $etag;
|
1353 |
+
public function setNextPageToken($nextPageToken) {
|
1354 |
+
$this->nextPageToken = $nextPageToken;
|
1355 |
+
}
|
1356 |
+
public function getNextPageToken() {
|
1357 |
+
return $this->nextPageToken;
|
1358 |
+
}
|
1359 |
+
public function setItems($items) {
|
1360 |
+
$this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
|
1361 |
+
$this->items = $items;
|
1362 |
+
}
|
1363 |
+
public function getItems() {
|
1364 |
+
return $this->items;
|
1365 |
+
}
|
1366 |
+
public function setKind($kind) {
|
1367 |
+
$this->kind = $kind;
|
1368 |
+
}
|
1369 |
+
public function getKind() {
|
1370 |
+
return $this->kind;
|
1371 |
+
}
|
1372 |
+
public function setEtag($etag) {
|
1373 |
+
$this->etag = $etag;
|
1374 |
+
}
|
1375 |
+
public function getEtag() {
|
1376 |
+
return $this->etag;
|
1377 |
+
}
|
1378 |
+
}
|
lib/SocialLogin/contrib/Google_AnalyticsService.php
ADDED
@@ -0,0 +1,1887 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "management" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
22 |
+
* $management = $analyticsService->management;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_ManagementServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* The "webproperties" collection of methods.
|
32 |
+
* Typical usage is:
|
33 |
+
* <code>
|
34 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
35 |
+
* $webproperties = $analyticsService->webproperties;
|
36 |
+
* </code>
|
37 |
+
*/
|
38 |
+
class Google_ManagementWebpropertiesServiceResource extends Google_ServiceResource {
|
39 |
+
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Lists web properties to which the user has access. (webproperties.list)
|
43 |
+
*
|
44 |
+
* @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
|
45 |
+
* @param array $optParams Optional parameters.
|
46 |
+
*
|
47 |
+
* @opt_param int max-results The maximum number of web properties to include in this response.
|
48 |
+
* @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.
|
49 |
+
* @return Google_Webproperties
|
50 |
+
*/
|
51 |
+
public function listManagementWebproperties($accountId, $optParams = array()) {
|
52 |
+
$params = array('accountId' => $accountId);
|
53 |
+
$params = array_merge($params, $optParams);
|
54 |
+
$data = $this->__call('list', array($params));
|
55 |
+
if ($this->useObjects()) {
|
56 |
+
return new Google_Webproperties($data);
|
57 |
+
} else {
|
58 |
+
return $data;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
/**
|
63 |
+
* The "segments" collection of methods.
|
64 |
+
* Typical usage is:
|
65 |
+
* <code>
|
66 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
67 |
+
* $segments = $analyticsService->segments;
|
68 |
+
* </code>
|
69 |
+
*/
|
70 |
+
class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
|
71 |
+
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Lists advanced segments to which the user has access. (segments.list)
|
75 |
+
*
|
76 |
+
* @param array $optParams Optional parameters.
|
77 |
+
*
|
78 |
+
* @opt_param int max-results The maximum number of advanced segments to include in this response.
|
79 |
+
* @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
80 |
+
* @return Google_Segments
|
81 |
+
*/
|
82 |
+
public function listManagementSegments($optParams = array()) {
|
83 |
+
$params = array();
|
84 |
+
$params = array_merge($params, $optParams);
|
85 |
+
$data = $this->__call('list', array($params));
|
86 |
+
if ($this->useObjects()) {
|
87 |
+
return new Google_Segments($data);
|
88 |
+
} else {
|
89 |
+
return $data;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
/**
|
94 |
+
* The "accounts" collection of methods.
|
95 |
+
* Typical usage is:
|
96 |
+
* <code>
|
97 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
98 |
+
* $accounts = $analyticsService->accounts;
|
99 |
+
* </code>
|
100 |
+
*/
|
101 |
+
class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
|
102 |
+
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Lists all accounts to which the user has access. (accounts.list)
|
106 |
+
*
|
107 |
+
* @param array $optParams Optional parameters.
|
108 |
+
*
|
109 |
+
* @opt_param int max-results The maximum number of accounts to include in this response.
|
110 |
+
* @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
111 |
+
* @return Google_Accounts
|
112 |
+
*/
|
113 |
+
public function listManagementAccounts($optParams = array()) {
|
114 |
+
$params = array();
|
115 |
+
$params = array_merge($params, $optParams);
|
116 |
+
$data = $this->__call('list', array($params));
|
117 |
+
if ($this->useObjects()) {
|
118 |
+
return new Google_Accounts($data);
|
119 |
+
} else {
|
120 |
+
return $data;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
/**
|
125 |
+
* The "goals" collection of methods.
|
126 |
+
* Typical usage is:
|
127 |
+
* <code>
|
128 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
129 |
+
* $goals = $analyticsService->goals;
|
130 |
+
* </code>
|
131 |
+
*/
|
132 |
+
class Google_ManagementGoalsServiceResource extends Google_ServiceResource {
|
133 |
+
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Lists goals to which the user has access. (goals.list)
|
137 |
+
*
|
138 |
+
* @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.
|
139 |
+
* @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.
|
140 |
+
* @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.
|
141 |
+
* @param array $optParams Optional parameters.
|
142 |
+
*
|
143 |
+
* @opt_param int max-results The maximum number of goals to include in this response.
|
144 |
+
* @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.
|
145 |
+
* @return Google_Goals
|
146 |
+
*/
|
147 |
+
public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
|
148 |
+
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
|
149 |
+
$params = array_merge($params, $optParams);
|
150 |
+
$data = $this->__call('list', array($params));
|
151 |
+
if ($this->useObjects()) {
|
152 |
+
return new Google_Goals($data);
|
153 |
+
} else {
|
154 |
+
return $data;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
+
/**
|
159 |
+
* The "profiles" collection of methods.
|
160 |
+
* Typical usage is:
|
161 |
+
* <code>
|
162 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
163 |
+
* $profiles = $analyticsService->profiles;
|
164 |
+
* </code>
|
165 |
+
*/
|
166 |
+
class Google_ManagementProfilesServiceResource extends Google_ServiceResource {
|
167 |
+
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Lists profiles to which the user has access. (profiles.list)
|
171 |
+
*
|
172 |
+
* @param string $accountId Account ID for the profiles to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
|
173 |
+
* @param string $webPropertyId Web property ID for the profiles to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
|
174 |
+
* @param array $optParams Optional parameters.
|
175 |
+
*
|
176 |
+
* @opt_param int max-results The maximum number of profiles to include in this response.
|
177 |
+
* @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.
|
178 |
+
* @return Google_Profiles
|
179 |
+
*/
|
180 |
+
public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
|
181 |
+
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
|
182 |
+
$params = array_merge($params, $optParams);
|
183 |
+
$data = $this->__call('list', array($params));
|
184 |
+
if ($this->useObjects()) {
|
185 |
+
return new Google_Profiles($data);
|
186 |
+
} else {
|
187 |
+
return $data;
|
188 |
+
}
|
189 |
+
}
|
190 |
+
}
|
191 |
+
|
192 |
+
/**
|
193 |
+
* The "data" collection of methods.
|
194 |
+
* Typical usage is:
|
195 |
+
* <code>
|
196 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
197 |
+
* $data = $analyticsService->data;
|
198 |
+
* </code>
|
199 |
+
*/
|
200 |
+
class Google_DataServiceResource extends Google_ServiceResource {
|
201 |
+
|
202 |
+
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* The "mcf" collection of methods.
|
207 |
+
* Typical usage is:
|
208 |
+
* <code>
|
209 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
210 |
+
* $mcf = $analyticsService->mcf;
|
211 |
+
* </code>
|
212 |
+
*/
|
213 |
+
class Google_DataMcfServiceResource extends Google_ServiceResource {
|
214 |
+
|
215 |
+
|
216 |
+
/**
|
217 |
+
* Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
|
218 |
+
*
|
219 |
+
* @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.
|
220 |
+
* @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
|
221 |
+
* @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
|
222 |
+
* @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.
|
223 |
+
* @param array $optParams Optional parameters.
|
224 |
+
*
|
225 |
+
* @opt_param int max-results The maximum number of entries to include in this feed.
|
226 |
+
* @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
|
227 |
+
* @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
|
228 |
+
* @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.
|
229 |
+
* @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
|
230 |
+
* @return Google_McfData
|
231 |
+
*/
|
232 |
+
public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
|
233 |
+
$params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
|
234 |
+
$params = array_merge($params, $optParams);
|
235 |
+
$data = $this->__call('get', array($params));
|
236 |
+
if ($this->useObjects()) {
|
237 |
+
return new Google_McfData($data);
|
238 |
+
} else {
|
239 |
+
return $data;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
}
|
243 |
+
/**
|
244 |
+
* The "ga" collection of methods.
|
245 |
+
* Typical usage is:
|
246 |
+
* <code>
|
247 |
+
* $analyticsService = new Google_AnalyticsService(...);
|
248 |
+
* $ga = $analyticsService->ga;
|
249 |
+
* </code>
|
250 |
+
*/
|
251 |
+
class Google_DataGaServiceResource extends Google_ServiceResource {
|
252 |
+
|
253 |
+
|
254 |
+
/**
|
255 |
+
* Returns Analytics data for a profile. (ga.get)
|
256 |
+
*
|
257 |
+
* @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.
|
258 |
+
* @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
|
259 |
+
* @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
|
260 |
+
* @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
|
261 |
+
* @param array $optParams Optional parameters.
|
262 |
+
*
|
263 |
+
* @opt_param int max-results The maximum number of entries to include in this feed.
|
264 |
+
* @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
|
265 |
+
* @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
266 |
+
* @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.
|
267 |
+
* @opt_param string segment An Analytics advanced segment to be applied to data.
|
268 |
+
* @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
|
269 |
+
* @return Google_GaData
|
270 |
+
*/
|
271 |
+
public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
|
272 |
+
$params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
|
273 |
+
$params = array_merge($params, $optParams);
|
274 |
+
$data = $this->__call('get', array($params));
|
275 |
+
if ($this->useObjects()) {
|
276 |
+
return new Google_GaData($data);
|
277 |
+
} else {
|
278 |
+
return $data;
|
279 |
+
}
|
280 |
+
}
|
281 |
+
}
|
282 |
+
|
283 |
+
/**
|
284 |
+
* Service definition for Google_Analytics (v3).
|
285 |
+
*
|
286 |
+
* <p>
|
287 |
+
* View and manage your Google Analytics data
|
288 |
+
* </p>
|
289 |
+
*
|
290 |
+
* <p>
|
291 |
+
* For more information about this service, see the
|
292 |
+
* <a href="http://code.google.com/apis/analytics" target="_blank">API Documentation</a>
|
293 |
+
* </p>
|
294 |
+
*
|
295 |
+
* @author Google, Inc.
|
296 |
+
*/
|
297 |
+
class Google_AnalyticsService extends Google_Service {
|
298 |
+
public $management_webproperties;
|
299 |
+
public $management_segments;
|
300 |
+
public $management_accounts;
|
301 |
+
public $management_goals;
|
302 |
+
public $management_profiles;
|
303 |
+
public $data_mcf;
|
304 |
+
public $data_ga;
|
305 |
+
/**
|
306 |
+
* Constructs the internal representation of the Analytics service.
|
307 |
+
*
|
308 |
+
* @param Google_Client $client
|
309 |
+
*/
|
310 |
+
public function __construct(Google_Client $client) {
|
311 |
+
$this->servicePath = 'analytics/v3/';
|
312 |
+
$this->version = 'v3';
|
313 |
+
$this->serviceName = 'analytics';
|
314 |
+
|
315 |
+
$client->addService($this->serviceName, $this->version);
|
316 |
+
$this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.webproperties.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties", "response": {"$ref": "Webproperties"}}}}', true));
|
317 |
+
$this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Segments"}, "httpMethod": "GET", "path": "management/segments", "id": "analytics.management.segments.list"}}}', true));
|
318 |
+
$this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "management/accounts", "id": "analytics.management.accounts.list"}}}', true));
|
319 |
+
$this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "profileId": {"required": true, "type": "string", "location": "path"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.goals.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "response": {"$ref": "Goals"}}}}', true));
|
320 |
+
$this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.profiles.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "response": {"$ref": "Profiles"}}}}', true));
|
321 |
+
$this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.mcf.get", "httpMethod": "GET", "path": "data/mcf", "response": {"$ref": "McfData"}}}}', true));
|
322 |
+
$this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "segment": {"type": "string", "location": "query"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.ga.get", "httpMethod": "GET", "path": "data/ga", "response": {"$ref": "GaData"}}}}', true));
|
323 |
+
|
324 |
+
}
|
325 |
+
}
|
326 |
+
|
327 |
+
class Google_Account extends Google_Model {
|
328 |
+
public $kind;
|
329 |
+
public $name;
|
330 |
+
public $created;
|
331 |
+
public $updated;
|
332 |
+
protected $__childLinkType = 'Google_AccountChildLink';
|
333 |
+
protected $__childLinkDataType = '';
|
334 |
+
public $childLink;
|
335 |
+
public $id;
|
336 |
+
public $selfLink;
|
337 |
+
public function setKind($kind) {
|
338 |
+
$this->kind = $kind;
|
339 |
+
}
|
340 |
+
public function getKind() {
|
341 |
+
return $this->kind;
|
342 |
+
}
|
343 |
+
public function setName($name) {
|
344 |
+
$this->name = $name;
|
345 |
+
}
|
346 |
+
public function getName() {
|
347 |
+
return $this->name;
|
348 |
+
}
|
349 |
+
public function setCreated($created) {
|
350 |
+
$this->created = $created;
|
351 |
+
}
|
352 |
+
public function getCreated() {
|
353 |
+
return $this->created;
|
354 |
+
}
|
355 |
+
public function setUpdated($updated) {
|
356 |
+
$this->updated = $updated;
|
357 |
+
}
|
358 |
+
public function getUpdated() {
|
359 |
+
return $this->updated;
|
360 |
+
}
|
361 |
+
public function setChildLink(Google_AccountChildLink $childLink) {
|
362 |
+
$this->childLink = $childLink;
|
363 |
+
}
|
364 |
+
public function getChildLink() {
|
365 |
+
return $this->childLink;
|
366 |
+
}
|
367 |
+
public function setId($id) {
|
368 |
+
$this->id = $id;
|
369 |
+
}
|
370 |
+
public function getId() {
|
371 |
+
return $this->id;
|
372 |
+
}
|
373 |
+
public function setSelfLink($selfLink) {
|
374 |
+
$this->selfLink = $selfLink;
|
375 |
+
}
|
376 |
+
public function getSelfLink() {
|
377 |
+
return $this->selfLink;
|
378 |
+
}
|
379 |
+
}
|
380 |
+
|
381 |
+
class Google_AccountChildLink extends Google_Model {
|
382 |
+
public $href;
|
383 |
+
public $type;
|
384 |
+
public function setHref($href) {
|
385 |
+
$this->href = $href;
|
386 |
+
}
|
387 |
+
public function getHref() {
|
388 |
+
return $this->href;
|
389 |
+
}
|
390 |
+
public function setType($type) {
|
391 |
+
$this->type = $type;
|
392 |
+
}
|
393 |
+
public function getType() {
|
394 |
+
return $this->type;
|
395 |
+
}
|
396 |
+
}
|
397 |
+
|
398 |
+
class Google_Accounts extends Google_Model {
|
399 |
+
public $username;
|
400 |
+
public $kind;
|
401 |
+
protected $__itemsType = 'Google_Account';
|
402 |
+
protected $__itemsDataType = 'array';
|
403 |
+
public $items;
|
404 |
+
public $itemsPerPage;
|
405 |
+
public $previousLink;
|
406 |
+
public $startIndex;
|
407 |
+
public $nextLink;
|
408 |
+
public $totalResults;
|
409 |
+
public function setUsername($username) {
|
410 |
+
$this->username = $username;
|
411 |
+
}
|
412 |
+
public function getUsername() {
|
413 |
+
return $this->username;
|
414 |
+
}
|
415 |
+
public function setKind($kind) {
|
416 |
+
$this->kind = $kind;
|
417 |
+
}
|
418 |
+
public function getKind() {
|
419 |
+
return $this->kind;
|
420 |
+
}
|
421 |
+
public function setItems(/* array(Google_Account) */ $items) {
|
422 |
+
$this->assertIsArray($items, 'Google_Account', __METHOD__);
|
423 |
+
$this->items = $items;
|
424 |
+
}
|
425 |
+
public function getItems() {
|
426 |
+
return $this->items;
|
427 |
+
}
|
428 |
+
public function setItemsPerPage($itemsPerPage) {
|
429 |
+
$this->itemsPerPage = $itemsPerPage;
|
430 |
+
}
|
431 |
+
public function getItemsPerPage() {
|
432 |
+
return $this->itemsPerPage;
|
433 |
+
}
|
434 |
+
public function setPreviousLink($previousLink) {
|
435 |
+
$this->previousLink = $previousLink;
|
436 |
+
}
|
437 |
+
public function getPreviousLink() {
|
438 |
+
return $this->previousLink;
|
439 |
+
}
|
440 |
+
public function setStartIndex($startIndex) {
|
441 |
+
$this->startIndex = $startIndex;
|
442 |
+
}
|
443 |
+
public function getStartIndex() {
|
444 |
+
return $this->startIndex;
|
445 |
+
}
|
446 |
+
public function setNextLink($nextLink) {
|
447 |
+
$this->nextLink = $nextLink;
|
448 |
+
}
|
449 |
+
public function getNextLink() {
|
450 |
+
return $this->nextLink;
|
451 |
+
}
|
452 |
+
public function setTotalResults($totalResults) {
|
453 |
+
$this->totalResults = $totalResults;
|
454 |
+
}
|
455 |
+
public function getTotalResults() {
|
456 |
+
return $this->totalResults;
|
457 |
+
}
|
458 |
+
}
|
459 |
+
|
460 |
+
class Google_GaData extends Google_Model {
|
461 |
+
public $kind;
|
462 |
+
public $rows;
|
463 |
+
public $containsSampledData;
|
464 |
+
public $totalResults;
|
465 |
+
public $itemsPerPage;
|
466 |
+
public $totalsForAllResults;
|
467 |
+
public $nextLink;
|
468 |
+
public $id;
|
469 |
+
protected $__queryType = 'Google_GaDataQuery';
|
470 |
+
protected $__queryDataType = '';
|
471 |
+
public $query;
|
472 |
+
public $previousLink;
|
473 |
+
protected $__profileInfoType = 'Google_GaDataProfileInfo';
|
474 |
+
protected $__profileInfoDataType = '';
|
475 |
+
public $profileInfo;
|
476 |
+
protected $__columnHeadersType = 'Google_GaDataColumnHeaders';
|
477 |
+
protected $__columnHeadersDataType = 'array';
|
478 |
+
public $columnHeaders;
|
479 |
+
public $selfLink;
|
480 |
+
public function setKind($kind) {
|
481 |
+
$this->kind = $kind;
|
482 |
+
}
|
483 |
+
public function getKind() {
|
484 |
+
return $this->kind;
|
485 |
+
}
|
486 |
+
public function setRows(/* array(Google_string) */ $rows) {
|
487 |
+
$this->assertIsArray($rows, 'Google_string', __METHOD__);
|
488 |
+
$this->rows = $rows;
|
489 |
+
}
|
490 |
+
public function getRows() {
|
491 |
+
return $this->rows;
|
492 |
+
}
|
493 |
+
public function setContainsSampledData($containsSampledData) {
|
494 |
+
$this->containsSampledData = $containsSampledData;
|
495 |
+
}
|
496 |
+
public function getContainsSampledData() {
|
497 |
+
return $this->containsSampledData;
|
498 |
+
}
|
499 |
+
public function setTotalResults($totalResults) {
|
500 |
+
$this->totalResults = $totalResults;
|
501 |
+
}
|
502 |
+
public function getTotalResults() {
|
503 |
+
return $this->totalResults;
|
504 |
+
}
|
505 |
+
public function setItemsPerPage($itemsPerPage) {
|
506 |
+
$this->itemsPerPage = $itemsPerPage;
|
507 |
+
}
|
508 |
+
public function getItemsPerPage() {
|
509 |
+
return $this->itemsPerPage;
|
510 |
+
}
|
511 |
+
public function setTotalsForAllResults($totalsForAllResults) {
|
512 |
+
$this->totalsForAllResults = $totalsForAllResults;
|
513 |
+
}
|
514 |
+
public function getTotalsForAllResults() {
|
515 |
+
return $this->totalsForAllResults;
|
516 |
+
}
|
517 |
+
public function setNextLink($nextLink) {
|
518 |
+
$this->nextLink = $nextLink;
|
519 |
+
}
|
520 |
+
public function getNextLink() {
|
521 |
+
return $this->nextLink;
|
522 |
+
}
|
523 |
+
public function setId($id) {
|
524 |
+
$this->id = $id;
|
525 |
+
}
|
526 |
+
public function getId() {
|
527 |
+
return $this->id;
|
528 |
+
}
|
529 |
+
public function setQuery(Google_GaDataQuery $query) {
|
530 |
+
$this->query = $query;
|
531 |
+
}
|
532 |
+
public function getQuery() {
|
533 |
+
return $this->query;
|
534 |
+
}
|
535 |
+
public function setPreviousLink($previousLink) {
|
536 |
+
$this->previousLink = $previousLink;
|
537 |
+
}
|
538 |
+
public function getPreviousLink() {
|
539 |
+
return $this->previousLink;
|
540 |
+
}
|
541 |
+
public function setProfileInfo(Google_GaDataProfileInfo $profileInfo) {
|
542 |
+
$this->profileInfo = $profileInfo;
|
543 |
+
}
|
544 |
+
public function getProfileInfo() {
|
545 |
+
return $this->profileInfo;
|
546 |
+
}
|
547 |
+
public function setColumnHeaders(/* array(Google_GaDataColumnHeaders) */ $columnHeaders) {
|
548 |
+
$this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
|
549 |
+
$this->columnHeaders = $columnHeaders;
|
550 |
+
}
|
551 |
+
public function getColumnHeaders() {
|
552 |
+
return $this->columnHeaders;
|
553 |
+
}
|
554 |
+
public function setSelfLink($selfLink) {
|
555 |
+
$this->selfLink = $selfLink;
|
556 |
+
}
|
557 |
+
public function getSelfLink() {
|
558 |
+
return $this->selfLink;
|
559 |
+
}
|
560 |
+
}
|
561 |
+
|
562 |
+
class Google_GaDataColumnHeaders extends Google_Model {
|
563 |
+
public $dataType;
|
564 |
+
public $columnType;
|
565 |
+
public $name;
|
566 |
+
public function setDataType($dataType) {
|
567 |
+
$this->dataType = $dataType;
|
568 |
+
}
|
569 |
+
public function getDataType() {
|
570 |
+
return $this->dataType;
|
571 |
+
}
|
572 |
+
public function setColumnType($columnType) {
|
573 |
+
$this->columnType = $columnType;
|
574 |
+
}
|
575 |
+
public function getColumnType() {
|
576 |
+
return $this->columnType;
|
577 |
+
}
|
578 |
+
public function setName($name) {
|
579 |
+
$this->name = $name;
|
580 |
+
}
|
581 |
+
public function getName() {
|
582 |
+
return $this->name;
|
583 |
+
}
|
584 |
+
}
|
585 |
+
|
586 |
+
class Google_GaDataProfileInfo extends Google_Model {
|
587 |
+
public $webPropertyId;
|
588 |
+
public $internalWebPropertyId;
|
589 |
+
public $tableId;
|
590 |
+
public $profileId;
|
591 |
+
public $profileName;
|
592 |
+
public $accountId;
|
593 |
+
public function setWebPropertyId($webPropertyId) {
|
594 |
+
$this->webPropertyId = $webPropertyId;
|
595 |
+
}
|
596 |
+
public function getWebPropertyId() {
|
597 |
+
return $this->webPropertyId;
|
598 |
+
}
|
599 |
+
public function setInternalWebPropertyId($internalWebPropertyId) {
|
600 |
+
$this->internalWebPropertyId = $internalWebPropertyId;
|
601 |
+
}
|
602 |
+
public function getInternalWebPropertyId() {
|
603 |
+
return $this->internalWebPropertyId;
|
604 |
+
}
|
605 |
+
public function setTableId($tableId) {
|
606 |
+
$this->tableId = $tableId;
|
607 |
+
}
|
608 |
+
public function getTableId() {
|
609 |
+
return $this->tableId;
|
610 |
+
}
|
611 |
+
public function setProfileId($profileId) {
|
612 |
+
$this->profileId = $profileId;
|
613 |
+
}
|
614 |
+
public function getProfileId() {
|
615 |
+
return $this->profileId;
|
616 |
+
}
|
617 |
+
public function setProfileName($profileName) {
|
618 |
+
$this->profileName = $profileName;
|
619 |
+
}
|
620 |
+
public function getProfileName() {
|
621 |
+
return $this->profileName;
|
622 |
+
}
|
623 |
+
public function setAccountId($accountId) {
|
624 |
+
$this->accountId = $accountId;
|
625 |
+
}
|
626 |
+
public function getAccountId() {
|
627 |
+
return $this->accountId;
|
628 |
+
}
|
629 |
+
}
|
630 |
+
|
631 |
+
class Google_GaDataQuery extends Google_Model {
|
632 |
+
public $max_results;
|
633 |
+
public $sort;
|
634 |
+
public $dimensions;
|
635 |
+
public $start_date;
|
636 |
+
public $start_index;
|
637 |
+
public $segment;
|
638 |
+
public $ids;
|
639 |
+
public $metrics;
|
640 |
+
public $filters;
|
641 |
+
public $end_date;
|
642 |
+
public function setMax_results($max_results) {
|
643 |
+
$this->max_results = $max_results;
|
644 |
+
}
|
645 |
+
public function getMax_results() {
|
646 |
+
return $this->max_results;
|
647 |
+
}
|
648 |
+
public function setSort(/* array(Google_string) */ $sort) {
|
649 |
+
$this->assertIsArray($sort, 'Google_string', __METHOD__);
|
650 |
+
$this->sort = $sort;
|
651 |
+
}
|
652 |
+
public function getSort() {
|
653 |
+
return $this->sort;
|
654 |
+
}
|
655 |
+
public function setDimensions($dimensions) {
|
656 |
+
$this->dimensions = $dimensions;
|
657 |
+
}
|
658 |
+
public function getDimensions() {
|
659 |
+
return $this->dimensions;
|
660 |
+
}
|
661 |
+
public function setStart_date($start_date) {
|
662 |
+
$this->start_date = $start_date;
|
663 |
+
}
|
664 |
+
public function getStart_date() {
|
665 |
+
return $this->start_date;
|
666 |
+
}
|
667 |
+
public function setStart_index($start_index) {
|
668 |
+
$this->start_index = $start_index;
|
669 |
+
}
|
670 |
+
public function getStart_index() {
|
671 |
+
return $this->start_index;
|
672 |
+
}
|
673 |
+
public function setSegment($segment) {
|
674 |
+
$this->segment = $segment;
|
675 |
+
}
|
676 |
+
public function getSegment() {
|
677 |
+
return $this->segment;
|
678 |
+
}
|
679 |
+
public function setIds($ids) {
|
680 |
+
$this->ids = $ids;
|
681 |
+
}
|
682 |
+
public function getIds() {
|
683 |
+
return $this->ids;
|
684 |
+
}
|
685 |
+
public function setMetrics(/* array(Google_string) */ $metrics) {
|
686 |
+
$this->assertIsArray($metrics, 'Google_string', __METHOD__);
|
687 |
+
$this->metrics = $metrics;
|
688 |
+
}
|
689 |
+
public function getMetrics() {
|
690 |
+
return $this->metrics;
|
691 |
+
}
|
692 |
+
public function setFilters($filters) {
|
693 |
+
$this->filters = $filters;
|
694 |
+
}
|
695 |
+
public function getFilters() {
|
696 |
+
return $this->filters;
|
697 |
+
}
|
698 |
+
public function setEnd_date($end_date) {
|
699 |
+
$this->end_date = $end_date;
|
700 |
+
}
|
701 |
+
public function getEnd_date() {
|
702 |
+
return $this->end_date;
|
703 |
+
}
|
704 |
+
}
|
705 |
+
|
706 |
+
class Google_Goal extends Google_Model {
|
707 |
+
public $kind;
|
708 |
+
protected $__visitTimeOnSiteDetailsType = 'Google_GoalVisitTimeOnSiteDetails';
|
709 |
+
protected $__visitTimeOnSiteDetailsDataType = '';
|
710 |
+
public $visitTimeOnSiteDetails;
|
711 |
+
public $name;
|
712 |
+
public $created;
|
713 |
+
protected $__urlDestinationDetailsType = 'Google_GoalUrlDestinationDetails';
|
714 |
+
protected $__urlDestinationDetailsDataType = '';
|
715 |
+
public $urlDestinationDetails;
|
716 |
+
public $updated;
|
717 |
+
public $value;
|
718 |
+
protected $__visitNumPagesDetailsType = 'Google_GoalVisitNumPagesDetails';
|
719 |
+
protected $__visitNumPagesDetailsDataType = '';
|
720 |
+
public $visitNumPagesDetails;
|
721 |
+
public $internalWebPropertyId;
|
722 |
+
protected $__eventDetailsType = 'Google_GoalEventDetails';
|
723 |
+
protected $__eventDetailsDataType = '';
|
724 |
+
public $eventDetails;
|
725 |
+
public $webPropertyId;
|
726 |
+
public $active;
|
727 |
+
public $profileId;
|
728 |
+
protected $__parentLinkType = 'Google_GoalParentLink';
|
729 |
+
protected $__parentLinkDataType = '';
|
730 |
+
public $parentLink;
|
731 |
+
public $type;
|
732 |
+
public $id;
|
733 |
+
public $selfLink;
|
734 |
+
public $accountId;
|
735 |
+
public function setKind($kind) {
|
736 |
+
$this->kind = $kind;
|
737 |
+
}
|
738 |
+
public function getKind() {
|
739 |
+
return $this->kind;
|
740 |
+
}
|
741 |
+
public function setVisitTimeOnSiteDetails(Google_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
|
742 |
+
$this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
|
743 |
+
}
|
744 |
+
public function getVisitTimeOnSiteDetails() {
|
745 |
+
return $this->visitTimeOnSiteDetails;
|
746 |
+
}
|
747 |
+
public function setName($name) {
|
748 |
+
$this->name = $name;
|
749 |
+
}
|
750 |
+
public function getName() {
|
751 |
+
return $this->name;
|
752 |
+
}
|
753 |
+
public function setCreated($created) {
|
754 |
+
$this->created = $created;
|
755 |
+
}
|
756 |
+
public function getCreated() {
|
757 |
+
return $this->created;
|
758 |
+
}
|
759 |
+
public function setUrlDestinationDetails(Google_GoalUrlDestinationDetails $urlDestinationDetails) {
|
760 |
+
$this->urlDestinationDetails = $urlDestinationDetails;
|
761 |
+
}
|
762 |
+
public function getUrlDestinationDetails() {
|
763 |
+
return $this->urlDestinationDetails;
|
764 |
+
}
|
765 |
+
public function setUpdated($updated) {
|
766 |
+
$this->updated = $updated;
|
767 |
+
}
|
768 |
+
public function getUpdated() {
|
769 |
+
return $this->updated;
|
770 |
+
}
|
771 |
+
public function setValue($value) {
|
772 |
+
$this->value = $value;
|
773 |
+
}
|
774 |
+
public function getValue() {
|
775 |
+
return $this->value;
|
776 |
+
}
|
777 |
+
public function setVisitNumPagesDetails(Google_GoalVisitNumPagesDetails $visitNumPagesDetails) {
|
778 |
+
$this->visitNumPagesDetails = $visitNumPagesDetails;
|
779 |
+
}
|
780 |
+
public function getVisitNumPagesDetails() {
|
781 |
+
return $this->visitNumPagesDetails;
|
782 |
+
}
|
783 |
+
public function setInternalWebPropertyId($internalWebPropertyId) {
|
784 |
+
$this->internalWebPropertyId = $internalWebPropertyId;
|
785 |
+
}
|
786 |
+
public function getInternalWebPropertyId() {
|
787 |
+
return $this->internalWebPropertyId;
|
788 |
+
}
|
789 |
+
public function setEventDetails(Google_GoalEventDetails $eventDetails) {
|
790 |
+
$this->eventDetails = $eventDetails;
|
791 |
+
}
|
792 |
+
public function getEventDetails() {
|
793 |
+
return $this->eventDetails;
|
794 |
+
}
|
795 |
+
public function setWebPropertyId($webPropertyId) {
|
796 |
+
$this->webPropertyId = $webPropertyId;
|
797 |
+
}
|
798 |
+
public function getWebPropertyId() {
|
799 |
+
return $this->webPropertyId;
|
800 |
+
}
|
801 |
+
public function setActive($active) {
|
802 |
+
$this->active = $active;
|
803 |
+
}
|
804 |
+
public function getActive() {
|
805 |
+
return $this->active;
|
806 |
+
}
|
807 |
+
public function setProfileId($profileId) {
|
808 |
+
$this->profileId = $profileId;
|
809 |
+
}
|
810 |
+
public function getProfileId() {
|
811 |
+
return $this->profileId;
|
812 |
+
}
|
813 |
+
public function setParentLink(Google_GoalParentLink $parentLink) {
|
814 |
+
$this->parentLink = $parentLink;
|
815 |
+
}
|
816 |
+
public function getParentLink() {
|
817 |
+
return $this->parentLink;
|
818 |
+
}
|
819 |
+
public function setType($type) {
|
820 |
+
$this->type = $type;
|
821 |
+
}
|
822 |
+
public function getType() {
|
823 |
+
return $this->type;
|
824 |
+
}
|
825 |
+
public function setId($id) {
|
826 |
+
$this->id = $id;
|
827 |
+
}
|
828 |
+
public function getId() {
|
829 |
+
return $this->id;
|
830 |
+
}
|
831 |
+
public function setSelfLink($selfLink) {
|
832 |
+
$this->selfLink = $selfLink;
|
833 |
+
}
|
834 |
+
public function getSelfLink() {
|
835 |
+
return $this->selfLink;
|
836 |
+
}
|
837 |
+
public function setAccountId($accountId) {
|
838 |
+
$this->accountId = $accountId;
|
839 |
+
}
|
840 |
+
public function getAccountId() {
|
841 |
+
return $this->accountId;
|
842 |
+
}
|
843 |
+
}
|
844 |
+
|
845 |
+
class Google_GoalEventDetails extends Google_Model {
|
846 |
+
protected $__eventConditionsType = 'Google_GoalEventDetailsEventConditions';
|
847 |
+
protected $__eventConditionsDataType = 'array';
|
848 |
+
public $eventConditions;
|
849 |
+
public $useEventValue;
|
850 |
+
public function setEventConditions(/* array(Google_GoalEventDetailsEventConditions) */ $eventConditions) {
|
851 |
+
$this->assertIsArray($eventConditions, 'Google_GoalEventDetailsEventConditions', __METHOD__);
|
852 |
+
$this->eventConditions = $eventConditions;
|
853 |
+
}
|
854 |
+
public function getEventConditions() {
|
855 |
+
return $this->eventConditions;
|
856 |
+
}
|
857 |
+
public function setUseEventValue($useEventValue) {
|
858 |
+
$this->useEventValue = $useEventValue;
|
859 |
+
}
|
860 |
+
public function getUseEventValue() {
|
861 |
+
return $this->useEventValue;
|
862 |
+
}
|
863 |
+
}
|
864 |
+
|
865 |
+
class Google_GoalEventDetailsEventConditions extends Google_Model {
|
866 |
+
public $type;
|
867 |
+
public $matchType;
|
868 |
+
public $expression;
|
869 |
+
public $comparisonType;
|
870 |
+
public $comparisonValue;
|
871 |
+
public function setType($type) {
|
872 |
+
$this->type = $type;
|
873 |
+
}
|
874 |
+
public function getType() {
|
875 |
+
return $this->type;
|
876 |
+
}
|
877 |
+
public function setMatchType($matchType) {
|
878 |
+
$this->matchType = $matchType;
|
879 |
+
}
|
880 |
+
public function getMatchType() {
|
881 |
+
return $this->matchType;
|
882 |
+
}
|
883 |
+
public function setExpression($expression) {
|
884 |
+
$this->expression = $expression;
|
885 |
+
}
|
886 |
+
public function getExpression() {
|
887 |
+
return $this->expression;
|
888 |
+
}
|
889 |
+
public function setComparisonType($comparisonType) {
|
890 |
+
$this->comparisonType = $comparisonType;
|
891 |
+
}
|
892 |
+
public function getComparisonType() {
|
893 |
+
return $this->comparisonType;
|
894 |
+
}
|
895 |
+
public function setComparisonValue($comparisonValue) {
|
896 |
+
$this->comparisonValue = $comparisonValue;
|
897 |
+
}
|
898 |
+
public function getComparisonValue() {
|
899 |
+
return $this->comparisonValue;
|
900 |
+
}
|
901 |
+
}
|
902 |
+
|
903 |
+
class Google_GoalParentLink extends Google_Model {
|
904 |
+
public $href;
|
905 |
+
public $type;
|
906 |
+
public function setHref($href) {
|
907 |
+
$this->href = $href;
|
908 |
+
}
|
909 |
+
public function getHref() {
|
910 |
+
return $this->href;
|
911 |
+
}
|
912 |
+
public function setType($type) {
|
913 |
+
$this->type = $type;
|
914 |
+
}
|
915 |
+
public function getType() {
|
916 |
+
return $this->type;
|
917 |
+
}
|
918 |
+
}
|
919 |
+
|
920 |
+
class Google_GoalUrlDestinationDetails extends Google_Model {
|
921 |
+
public $url;
|
922 |
+
public $caseSensitive;
|
923 |
+
public $matchType;
|
924 |
+
protected $__stepsType = 'Google_GoalUrlDestinationDetailsSteps';
|
925 |
+
protected $__stepsDataType = 'array';
|
926 |
+
public $steps;
|
927 |
+
public $firstStepRequired;
|
928 |
+
public function setUrl($url) {
|
929 |
+
$this->url = $url;
|
930 |
+
}
|
931 |
+
public function getUrl() {
|
932 |
+
return $this->url;
|
933 |
+
}
|
934 |
+
public function setCaseSensitive($caseSensitive) {
|
935 |
+
$this->caseSensitive = $caseSensitive;
|
936 |
+
}
|
937 |
+
public function getCaseSensitive() {
|
938 |
+
return $this->caseSensitive;
|
939 |
+
}
|
940 |
+
public function setMatchType($matchType) {
|
941 |
+
$this->matchType = $matchType;
|
942 |
+
}
|
943 |
+
public function getMatchType() {
|
944 |
+
return $this->matchType;
|
945 |
+
}
|
946 |
+
public function setSteps(/* array(Google_GoalUrlDestinationDetailsSteps) */ $steps) {
|
947 |
+
$this->assertIsArray($steps, 'Google_GoalUrlDestinationDetailsSteps', __METHOD__);
|
948 |
+
$this->steps = $steps;
|
949 |
+
}
|
950 |
+
public function getSteps() {
|
951 |
+
return $this->steps;
|
952 |
+
}
|
953 |
+
public function setFirstStepRequired($firstStepRequired) {
|
954 |
+
$this->firstStepRequired = $firstStepRequired;
|
955 |
+
}
|
956 |
+
public function getFirstStepRequired() {
|
957 |
+
return $this->firstStepRequired;
|
958 |
+
}
|
959 |
+
}
|
960 |
+
|
961 |
+
class Google_GoalUrlDestinationDetailsSteps extends Google_Model {
|
962 |
+
public $url;
|
963 |
+
public $name;
|
964 |
+
public $number;
|
965 |
+
public function setUrl($url) {
|
966 |
+
$this->url = $url;
|
967 |
+
}
|
968 |
+
public function getUrl() {
|
969 |
+
return $this->url;
|
970 |
+
}
|
971 |
+
public function setName($name) {
|
972 |
+
$this->name = $name;
|
973 |
+
}
|
974 |
+
public function getName() {
|
975 |
+
return $this->name;
|
976 |
+
}
|
977 |
+
public function setNumber($number) {
|
978 |
+
$this->number = $number;
|
979 |
+
}
|
980 |
+
public function getNumber() {
|
981 |
+
return $this->number;
|
982 |
+
}
|
983 |
+
}
|
984 |
+
|
985 |
+
class Google_GoalVisitNumPagesDetails extends Google_Model {
|
986 |
+
public $comparisonType;
|
987 |
+
public $comparisonValue;
|
988 |
+
public function setComparisonType($comparisonType) {
|
989 |
+
$this->comparisonType = $comparisonType;
|
990 |
+
}
|
991 |
+
public function getComparisonType() {
|
992 |
+
return $this->comparisonType;
|
993 |
+
}
|
994 |
+
public function setComparisonValue($comparisonValue) {
|
995 |
+
$this->comparisonValue = $comparisonValue;
|
996 |
+
}
|
997 |
+
public function getComparisonValue() {
|
998 |
+
return $this->comparisonValue;
|
999 |
+
}
|
1000 |
+
}
|
1001 |
+
|
1002 |
+
class Google_GoalVisitTimeOnSiteDetails extends Google_Model {
|
1003 |
+
public $comparisonType;
|
1004 |
+
public $comparisonValue;
|
1005 |
+
public function setComparisonType($comparisonType) {
|
1006 |
+
$this->comparisonType = $comparisonType;
|
1007 |
+
}
|
1008 |
+
public function getComparisonType() {
|
1009 |
+
return $this->comparisonType;
|
1010 |
+
}
|
1011 |
+
public function setComparisonValue($comparisonValue) {
|
1012 |
+
$this->comparisonValue = $comparisonValue;
|
1013 |
+
}
|
1014 |
+
public function getComparisonValue() {
|
1015 |
+
return $this->comparisonValue;
|
1016 |
+
}
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
class Google_Goals extends Google_Model {
|
1020 |
+
public $username;
|
1021 |
+
public $kind;
|
1022 |
+
protected $__itemsType = 'Google_Goal';
|
1023 |
+
protected $__itemsDataType = 'array';
|
1024 |
+
public $items;
|
1025 |
+
public $itemsPerPage;
|
1026 |
+
public $previousLink;
|
1027 |
+
public $startIndex;
|
1028 |
+
public $nextLink;
|
1029 |
+
public $totalResults;
|
1030 |
+
public function setUsername($username) {
|
1031 |
+
$this->username = $username;
|
1032 |
+
}
|
1033 |
+
public function getUsername() {
|
1034 |
+
return $this->username;
|
1035 |
+
}
|
1036 |
+
public function setKind($kind) {
|
1037 |
+
$this->kind = $kind;
|
1038 |
+
}
|
1039 |
+
public function getKind() {
|
1040 |
+
return $this->kind;
|
1041 |
+
}
|
1042 |
+
public function setItems(/* array(Google_Goal) */ $items) {
|
1043 |
+
$this->assertIsArray($items, 'Google_Goal', __METHOD__);
|
1044 |
+
$this->items = $items;
|
1045 |
+
}
|
1046 |
+
public function getItems() {
|
1047 |
+
return $this->items;
|
1048 |
+
}
|
1049 |
+
public function setItemsPerPage($itemsPerPage) {
|
1050 |
+
$this->itemsPerPage = $itemsPerPage;
|
1051 |
+
}
|
1052 |
+
public function getItemsPerPage() {
|
1053 |
+
return $this->itemsPerPage;
|
1054 |
+
}
|
1055 |
+
public function setPreviousLink($previousLink) {
|
1056 |
+
$this->previousLink = $previousLink;
|
1057 |
+
}
|
1058 |
+
public function getPreviousLink() {
|
1059 |
+
return $this->previousLink;
|
1060 |
+
}
|
1061 |
+
public function setStartIndex($startIndex) {
|
1062 |
+
$this->startIndex = $startIndex;
|
1063 |
+
}
|
1064 |
+
public function getStartIndex() {
|
1065 |
+
return $this->startIndex;
|
1066 |
+
}
|
1067 |
+
public function setNextLink($nextLink) {
|
1068 |
+
$this->nextLink = $nextLink;
|
1069 |
+
}
|
1070 |
+
public function getNextLink() {
|
1071 |
+
return $this->nextLink;
|
1072 |
+
}
|
1073 |
+
public function setTotalResults($totalResults) {
|
1074 |
+
$this->totalResults = $totalResults;
|
1075 |
+
}
|
1076 |
+
public function getTotalResults() {
|
1077 |
+
return $this->totalResults;
|
1078 |
+
}
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
class Google_McfData extends Google_Model {
|
1082 |
+
public $kind;
|
1083 |
+
protected $__rowsType = 'Google_McfDataRows';
|
1084 |
+
protected $__rowsDataType = 'array';
|
1085 |
+
public $rows;
|
1086 |
+
public $containsSampledData;
|
1087 |
+
public $totalResults;
|
1088 |
+
public $itemsPerPage;
|
1089 |
+
public $totalsForAllResults;
|
1090 |
+
public $nextLink;
|
1091 |
+
public $id;
|
1092 |
+
protected $__queryType = 'Google_McfDataQuery';
|
1093 |
+
protected $__queryDataType = '';
|
1094 |
+
public $query;
|
1095 |
+
public $previousLink;
|
1096 |
+
protected $__profileInfoType = 'Google_McfDataProfileInfo';
|
1097 |
+
protected $__profileInfoDataType = '';
|
1098 |
+
public $profileInfo;
|
1099 |
+
protected $__columnHeadersType = 'Google_McfDataColumnHeaders';
|
1100 |
+
protected $__columnHeadersDataType = 'array';
|
1101 |
+
public $columnHeaders;
|
1102 |
+
public $selfLink;
|
1103 |
+
public function setKind($kind) {
|
1104 |
+
$this->kind = $kind;
|
1105 |
+
}
|
1106 |
+
public function getKind() {
|
1107 |
+
return $this->kind;
|
1108 |
+
}
|
1109 |
+
public function setRows(/* array(Google_McfDataRows) */ $rows) {
|
1110 |
+
$this->assertIsArray($rows, 'Google_McfDataRows', __METHOD__);
|
1111 |
+
$this->rows = $rows;
|
1112 |
+
}
|
1113 |
+
public function getRows() {
|
1114 |
+
return $this->rows;
|
1115 |
+
}
|
1116 |
+
public function setContainsSampledData($containsSampledData) {
|
1117 |
+
$this->containsSampledData = $containsSampledData;
|
1118 |
+
}
|
1119 |
+
public function getContainsSampledData() {
|
1120 |
+
return $this->containsSampledData;
|
1121 |
+
}
|
1122 |
+
public function setTotalResults($totalResults) {
|
1123 |
+
$this->totalResults = $totalResults;
|
1124 |
+
}
|
1125 |
+
public function getTotalResults() {
|
1126 |
+
return $this->totalResults;
|
1127 |
+
}
|
1128 |
+
public function setItemsPerPage($itemsPerPage) {
|
1129 |
+
$this->itemsPerPage = $itemsPerPage;
|
1130 |
+
}
|
1131 |
+
public function getItemsPerPage() {
|
1132 |
+
return $this->itemsPerPage;
|
1133 |
+
}
|
1134 |
+
public function setTotalsForAllResults($totalsForAllResults) {
|
1135 |
+
$this->totalsForAllResults = $totalsForAllResults;
|
1136 |
+
}
|
1137 |
+
public function getTotalsForAllResults() {
|
1138 |
+
return $this->totalsForAllResults;
|
1139 |
+
}
|
1140 |
+
public function setNextLink($nextLink) {
|
1141 |
+
$this->nextLink = $nextLink;
|
1142 |
+
}
|
1143 |
+
public function getNextLink() {
|
1144 |
+
return $this->nextLink;
|
1145 |
+
}
|
1146 |
+
public function setId($id) {
|
1147 |
+
$this->id = $id;
|
1148 |
+
}
|
1149 |
+
public function getId() {
|
1150 |
+
return $this->id;
|
1151 |
+
}
|
1152 |
+
public function setQuery(Google_McfDataQuery $query) {
|
1153 |
+
$this->query = $query;
|
1154 |
+
}
|
1155 |
+
public function getQuery() {
|
1156 |
+
return $this->query;
|
1157 |
+
}
|
1158 |
+
public function setPreviousLink($previousLink) {
|
1159 |
+
$this->previousLink = $previousLink;
|
1160 |
+
}
|
1161 |
+
public function getPreviousLink() {
|
1162 |
+
return $this->previousLink;
|
1163 |
+
}
|
1164 |
+
public function setProfileInfo(Google_McfDataProfileInfo $profileInfo) {
|
1165 |
+
$this->profileInfo = $profileInfo;
|
1166 |
+
}
|
1167 |
+
public function getProfileInfo() {
|
1168 |
+
return $this->profileInfo;
|
1169 |
+
}
|
1170 |
+
public function setColumnHeaders(/* array(Google_McfDataColumnHeaders) */ $columnHeaders) {
|
1171 |
+
$this->assertIsArray($columnHeaders, 'Google_McfDataColumnHeaders', __METHOD__);
|
1172 |
+
$this->columnHeaders = $columnHeaders;
|
1173 |
+
}
|
1174 |
+
public function getColumnHeaders() {
|
1175 |
+
return $this->columnHeaders;
|
1176 |
+
}
|
1177 |
+
public function setSelfLink($selfLink) {
|
1178 |
+
$this->selfLink = $selfLink;
|
1179 |
+
}
|
1180 |
+
public function getSelfLink() {
|
1181 |
+
return $this->selfLink;
|
1182 |
+
}
|
1183 |
+
}
|
1184 |
+
|
1185 |
+
class Google_McfDataColumnHeaders extends Google_Model {
|
1186 |
+
public $dataType;
|
1187 |
+
public $columnType;
|
1188 |
+
public $name;
|
1189 |
+
public function setDataType($dataType) {
|
1190 |
+
$this->dataType = $dataType;
|
1191 |
+
}
|
1192 |
+
public function getDataType() {
|
1193 |
+
return $this->dataType;
|
1194 |
+
}
|
1195 |
+
public function setColumnType($columnType) {
|
1196 |
+
$this->columnType = $columnType;
|
1197 |
+
}
|
1198 |
+
public function getColumnType() {
|
1199 |
+
return $this->columnType;
|
1200 |
+
}
|
1201 |
+
public function setName($name) {
|
1202 |
+
$this->name = $name;
|
1203 |
+
}
|
1204 |
+
public function getName() {
|
1205 |
+
return $this->name;
|
1206 |
+
}
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
class Google_McfDataProfileInfo extends Google_Model {
|
1210 |
+
public $webPropertyId;
|
1211 |
+
public $internalWebPropertyId;
|
1212 |
+
public $tableId;
|
1213 |
+
public $profileId;
|
1214 |
+
public $profileName;
|
1215 |
+
public $accountId;
|
1216 |
+
public function setWebPropertyId($webPropertyId) {
|
1217 |
+
$this->webPropertyId = $webPropertyId;
|
1218 |
+
}
|
1219 |
+
public function getWebPropertyId() {
|
1220 |
+
return $this->webPropertyId;
|
1221 |
+
}
|
1222 |
+
public function setInternalWebPropertyId($internalWebPropertyId) {
|
1223 |
+
$this->internalWebPropertyId = $internalWebPropertyId;
|
1224 |
+
}
|
1225 |
+
public function getInternalWebPropertyId() {
|
1226 |
+
return $this->internalWebPropertyId;
|
1227 |
+
}
|
1228 |
+
public function setTableId($tableId) {
|
1229 |
+
$this->tableId = $tableId;
|
1230 |
+
}
|
1231 |
+
public function getTableId() {
|
1232 |
+
return $this->tableId;
|
1233 |
+
}
|
1234 |
+
public function setProfileId($profileId) {
|
1235 |
+
$this->profileId = $profileId;
|
1236 |
+
}
|
1237 |
+
public function getProfileId() {
|
1238 |
+
return $this->profileId;
|
1239 |
+
}
|
1240 |
+
public function setProfileName($profileName) {
|
1241 |
+
$this->profileName = $profileName;
|
1242 |
+
}
|
1243 |
+
public function getProfileName() {
|
1244 |
+
return $this->profileName;
|
1245 |
+
}
|
1246 |
+
public function setAccountId($accountId) {
|
1247 |
+
$this->accountId = $accountId;
|
1248 |
+
}
|
1249 |
+
public function getAccountId() {
|
1250 |
+
return $this->accountId;
|
1251 |
+
}
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
class Google_McfDataQuery extends Google_Model {
|
1255 |
+
public $max_results;
|
1256 |
+
public $sort;
|
1257 |
+
public $dimensions;
|
1258 |
+
public $start_date;
|
1259 |
+
public $start_index;
|
1260 |
+
public $segment;
|
1261 |
+
public $ids;
|
1262 |
+
public $metrics;
|
1263 |
+
public $filters;
|
1264 |
+
public $end_date;
|
1265 |
+
public function setMax_results($max_results) {
|
1266 |
+
$this->max_results = $max_results;
|
1267 |
+
}
|
1268 |
+
public function getMax_results() {
|
1269 |
+
return $this->max_results;
|
1270 |
+
}
|
1271 |
+
public function setSort(/* array(Google_string) */ $sort) {
|
1272 |
+
$this->assertIsArray($sort, 'Google_string', __METHOD__);
|
1273 |
+
$this->sort = $sort;
|
1274 |
+
}
|
1275 |
+
public function getSort() {
|
1276 |
+
return $this->sort;
|
1277 |
+
}
|
1278 |
+
public function setDimensions($dimensions) {
|
1279 |
+
$this->dimensions = $dimensions;
|
1280 |
+
}
|
1281 |
+
public function getDimensions() {
|
1282 |
+
return $this->dimensions;
|
1283 |
+
}
|
1284 |
+
public function setStart_date($start_date) {
|
1285 |
+
$this->start_date = $start_date;
|
1286 |
+
}
|
1287 |
+
public function getStart_date() {
|
1288 |
+
return $this->start_date;
|
1289 |
+
}
|
1290 |
+
public function setStart_index($start_index) {
|
1291 |
+
$this->start_index = $start_index;
|
1292 |
+
}
|
1293 |
+
public function getStart_index() {
|
1294 |
+
return $this->start_index;
|
1295 |
+
}
|
1296 |
+
public function setSegment($segment) {
|
1297 |
+
$this->segment = $segment;
|
1298 |
+
}
|
1299 |
+
public function getSegment() {
|
1300 |
+
return $this->segment;
|
1301 |
+
}
|
1302 |
+
public function setIds($ids) {
|
1303 |
+
$this->ids = $ids;
|
1304 |
+
}
|
1305 |
+
public function getIds() {
|
1306 |
+
return $this->ids;
|
1307 |
+
}
|
1308 |
+
public function setMetrics(/* array(Google_string) */ $metrics) {
|
1309 |
+
$this->assertIsArray($metrics, 'Google_string', __METHOD__);
|
1310 |
+
$this->metrics = $metrics;
|
1311 |
+
}
|
1312 |
+
public function getMetrics() {
|
1313 |
+
return $this->metrics;
|
1314 |
+
}
|
1315 |
+
public function setFilters($filters) {
|
1316 |
+
$this->filters = $filters;
|
1317 |
+
}
|
1318 |
+
public function getFilters() {
|
1319 |
+
return $this->filters;
|
1320 |
+
}
|
1321 |
+
public function setEnd_date($end_date) {
|
1322 |
+
$this->end_date = $end_date;
|
1323 |
+
}
|
1324 |
+
public function getEnd_date() {
|
1325 |
+
return $this->end_date;
|
1326 |
+
}
|
1327 |
+
}
|
1328 |
+
|
1329 |
+
class Google_McfDataRows extends Google_Model {
|
1330 |
+
public $primitiveValue;
|
1331 |
+
protected $__conversionPathValueType = 'Google_McfDataRowsConversionPathValue';
|
1332 |
+
protected $__conversionPathValueDataType = 'array';
|
1333 |
+
public $conversionPathValue;
|
1334 |
+
public function setPrimitiveValue($primitiveValue) {
|
1335 |
+
$this->primitiveValue = $primitiveValue;
|
1336 |
+
}
|
1337 |
+
public function getPrimitiveValue() {
|
1338 |
+
return $this->primitiveValue;
|
1339 |
+
}
|
1340 |
+
public function setConversionPathValue(/* array(Google_McfDataRowsConversionPathValue) */ $conversionPathValue) {
|
1341 |
+
$this->assertIsArray($conversionPathValue, 'Google_McfDataRowsConversionPathValue', __METHOD__);
|
1342 |
+
$this->conversionPathValue = $conversionPathValue;
|
1343 |
+
}
|
1344 |
+
public function getConversionPathValue() {
|
1345 |
+
return $this->conversionPathValue;
|
1346 |
+
}
|
1347 |
+
}
|
1348 |
+
|
1349 |
+
class Google_McfDataRowsConversionPathValue extends Google_Model {
|
1350 |
+
public $nodeValue;
|
1351 |
+
public $interactionType;
|
1352 |
+
public function setNodeValue($nodeValue) {
|
1353 |
+
$this->nodeValue = $nodeValue;
|
1354 |
+
}
|
1355 |
+
public function getNodeValue() {
|
1356 |
+
return $this->nodeValue;
|
1357 |
+
}
|
1358 |
+
public function setInteractionType($interactionType) {
|
1359 |
+
$this->interactionType = $interactionType;
|
1360 |
+
}
|
1361 |
+
public function getInteractionType() {
|
1362 |
+
return $this->interactionType;
|
1363 |
+
}
|
1364 |
+
}
|
1365 |
+
|
1366 |
+
class Google_Profile extends Google_Model {
|
1367 |
+
public $defaultPage;
|
1368 |
+
public $kind;
|
1369 |
+
public $excludeQueryParameters;
|
1370 |
+
public $name;
|
1371 |
+
public $created;
|
1372 |
+
public $webPropertyId;
|
1373 |
+
public $updated;
|
1374 |
+
public $siteSearchQueryParameters;
|
1375 |
+
public $currency;
|
1376 |
+
public $internalWebPropertyId;
|
1377 |
+
protected $__childLinkType = 'Google_ProfileChildLink';
|
1378 |
+
protected $__childLinkDataType = '';
|
1379 |
+
public $childLink;
|
1380 |
+
public $timezone;
|
1381 |
+
public $siteSearchCategoryParameters;
|
1382 |
+
protected $__parentLinkType = 'Google_ProfileParentLink';
|
1383 |
+
protected $__parentLinkDataType = '';
|
1384 |
+
public $parentLink;
|
1385 |
+
public $id;
|
1386 |
+
public $selfLink;
|
1387 |
+
public $accountId;
|
1388 |
+
public function setDefaultPage($defaultPage) {
|
1389 |
+
$this->defaultPage = $defaultPage;
|
1390 |
+
}
|
1391 |
+
public function getDefaultPage() {
|
1392 |
+
return $this->defaultPage;
|
1393 |
+
}
|
1394 |
+
public function setKind($kind) {
|
1395 |
+
$this->kind = $kind;
|
1396 |
+
}
|
1397 |
+
public function getKind() {
|
1398 |
+
return $this->kind;
|
1399 |
+
}
|
1400 |
+
public function setExcludeQueryParameters($excludeQueryParameters) {
|
1401 |
+
$this->excludeQueryParameters = $excludeQueryParameters;
|
1402 |
+
}
|
1403 |
+
public function getExcludeQueryParameters() {
|
1404 |
+
return $this->excludeQueryParameters;
|
1405 |
+
}
|
1406 |
+
public function setName($name) {
|
1407 |
+
$this->name = $name;
|
1408 |
+
}
|
1409 |
+
public function getName() {
|
1410 |
+
return $this->name;
|
1411 |
+
}
|
1412 |
+
public function setCreated($created) {
|
1413 |
+
$this->created = $created;
|
1414 |
+
}
|
1415 |
+
public function getCreated() {
|
1416 |
+
return $this->created;
|
1417 |
+
}
|
1418 |
+
public function setWebPropertyId($webPropertyId) {
|
1419 |
+
$this->webPropertyId = $webPropertyId;
|
1420 |
+
}
|
1421 |
+
public function getWebPropertyId() {
|
1422 |
+
return $this->webPropertyId;
|
1423 |
+
}
|
1424 |
+
public function setUpdated($updated) {
|
1425 |
+
$this->updated = $updated;
|
1426 |
+
}
|
1427 |
+
public function getUpdated() {
|
1428 |
+
return $this->updated;
|
1429 |
+
}
|
1430 |
+
public function setSiteSearchQueryParameters($siteSearchQueryParameters) {
|
1431 |
+
$this->siteSearchQueryParameters = $siteSearchQueryParameters;
|
1432 |
+
}
|
1433 |
+
public function getSiteSearchQueryParameters() {
|
1434 |
+
return $this->siteSearchQueryParameters;
|
1435 |
+
}
|
1436 |
+
public function setCurrency($currency) {
|
1437 |
+
$this->currency = $currency;
|
1438 |
+
}
|
1439 |
+
public function getCurrency() {
|
1440 |
+
return $this->currency;
|
1441 |
+
}
|
1442 |
+
public function setInternalWebPropertyId($internalWebPropertyId) {
|
1443 |
+
$this->internalWebPropertyId = $internalWebPropertyId;
|
1444 |
+
}
|
1445 |
+
public function getInternalWebPropertyId() {
|
1446 |
+
return $this->internalWebPropertyId;
|
1447 |
+
}
|
1448 |
+
public function setChildLink(Google_ProfileChildLink $childLink) {
|
1449 |
+
$this->childLink = $childLink;
|
1450 |
+
}
|
1451 |
+
public function getChildLink() {
|
1452 |
+
return $this->childLink;
|
1453 |
+
}
|
1454 |
+
public function setTimezone($timezone) {
|
1455 |
+
$this->timezone = $timezone;
|
1456 |
+
}
|
1457 |
+
public function getTimezone() {
|
1458 |
+
return $this->timezone;
|
1459 |
+
}
|
1460 |
+
public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) {
|
1461 |
+
$this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
|
1462 |
+
}
|
1463 |
+
public function getSiteSearchCategoryParameters() {
|
1464 |
+
return $this->siteSearchCategoryParameters;
|
1465 |
+
}
|
1466 |
+
public function setParentLink(Google_ProfileParentLink $parentLink) {
|
1467 |
+
$this->parentLink = $parentLink;
|
1468 |
+
}
|
1469 |
+
public function getParentLink() {
|
1470 |
+
return $this->parentLink;
|
1471 |
+
}
|
1472 |
+
public function setId($id) {
|
1473 |
+
$this->id = $id;
|
1474 |
+
}
|
1475 |
+
public function getId() {
|
1476 |
+
return $this->id;
|
1477 |
+
}
|
1478 |
+
public function setSelfLink($selfLink) {
|
1479 |
+
$this->selfLink = $selfLink;
|
1480 |
+
}
|
1481 |
+
public function getSelfLink() {
|
1482 |
+
return $this->selfLink;
|
1483 |
+
}
|
1484 |
+
public function setAccountId($accountId) {
|
1485 |
+
$this->accountId = $accountId;
|
1486 |
+
}
|
1487 |
+
public function getAccountId() {
|
1488 |
+
return $this->accountId;
|
1489 |
+
}
|
1490 |
+
}
|
1491 |
+
|
1492 |
+
class Google_ProfileChildLink extends Google_Model {
|
1493 |
+
public $href;
|
1494 |
+
public $type;
|
1495 |
+
public function setHref($href) {
|
1496 |
+
$this->href = $href;
|
1497 |
+
}
|
1498 |
+
public function getHref() {
|
1499 |
+
return $this->href;
|
1500 |
+
}
|
1501 |
+
public function setType($type) {
|
1502 |
+
$this->type = $type;
|
1503 |
+
}
|
1504 |
+
public function getType() {
|
1505 |
+
return $this->type;
|
1506 |
+
}
|
1507 |
+
}
|
1508 |
+
|
1509 |
+
class Google_ProfileParentLink extends Google_Model {
|
1510 |
+
public $href;
|
1511 |
+
public $type;
|
1512 |
+
public function setHref($href) {
|
1513 |
+
$this->href = $href;
|
1514 |
+
}
|
1515 |
+
public function getHref() {
|
1516 |
+
return $this->href;
|
1517 |
+
}
|
1518 |
+
public function setType($type) {
|
1519 |
+
$this->type = $type;
|
1520 |
+
}
|
1521 |
+
public function getType() {
|
1522 |
+
return $this->type;
|
1523 |
+
}
|
1524 |
+
}
|
1525 |
+
|
1526 |
+
class Google_Profiles extends Google_Model {
|
1527 |
+
public $username;
|
1528 |
+
public $kind;
|
1529 |
+
protected $__itemsType = 'Google_Profile';
|
1530 |
+
protected $__itemsDataType = 'array';
|
1531 |
+
public $items;
|
1532 |
+
public $itemsPerPage;
|
1533 |
+
public $previousLink;
|
1534 |
+
public $startIndex;
|
1535 |
+
public $nextLink;
|
1536 |
+
public $totalResults;
|
1537 |
+
public function setUsername($username) {
|
1538 |
+
$this->username = $username;
|
1539 |
+
}
|
1540 |
+
public function getUsername() {
|
1541 |
+
return $this->username;
|
1542 |
+
}
|
1543 |
+
public function setKind($kind) {
|
1544 |
+
$this->kind = $kind;
|
1545 |
+
}
|
1546 |
+
public function getKind() {
|
1547 |
+
return $this->kind;
|
1548 |
+
}
|
1549 |
+
public function setItems(/* array(Google_Profile) */ $items) {
|
1550 |
+
$this->assertIsArray($items, 'Google_Profile', __METHOD__);
|
1551 |
+
$this->items = $items;
|
1552 |
+
}
|
1553 |
+
public function getItems() {
|
1554 |
+
return $this->items;
|
1555 |
+
}
|
1556 |
+
public function setItemsPerPage($itemsPerPage) {
|
1557 |
+
$this->itemsPerPage = $itemsPerPage;
|
1558 |
+
}
|
1559 |
+
public function getItemsPerPage() {
|
1560 |
+
return $this->itemsPerPage;
|
1561 |
+
}
|
1562 |
+
public function setPreviousLink($previousLink) {
|
1563 |
+
$this->previousLink = $previousLink;
|
1564 |
+
}
|
1565 |
+
public function getPreviousLink() {
|
1566 |
+
return $this->previousLink;
|
1567 |
+
}
|
1568 |
+
public function setStartIndex($startIndex) {
|
1569 |
+
$this->startIndex = $startIndex;
|
1570 |
+
}
|
1571 |
+
public function getStartIndex() {
|
1572 |
+
return $this->startIndex;
|
1573 |
+
}
|
1574 |
+
public function setNextLink($nextLink) {
|
1575 |
+
$this->nextLink = $nextLink;
|
1576 |
+
}
|
1577 |
+
public function getNextLink() {
|
1578 |
+
return $this->nextLink;
|
1579 |
+
}
|
1580 |
+
public function setTotalResults($totalResults) {
|
1581 |
+
$this->totalResults = $totalResults;
|
1582 |
+
}
|
1583 |
+
public function getTotalResults() {
|
1584 |
+
return $this->totalResults;
|
1585 |
+
}
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
class Google_Segment extends Google_Model {
|
1589 |
+
public $definition;
|
1590 |
+
public $kind;
|
1591 |
+
public $segmentId;
|
1592 |
+
public $created;
|
1593 |
+
public $updated;
|
1594 |
+
public $id;
|
1595 |
+
public $selfLink;
|
1596 |
+
public $name;
|
1597 |
+
public function setDefinition($definition) {
|
1598 |
+
$this->definition = $definition;
|
1599 |
+
}
|
1600 |
+
public function getDefinition() {
|
1601 |
+
return $this->definition;
|
1602 |
+
}
|
1603 |
+
public function setKind($kind) {
|
1604 |
+
$this->kind = $kind;
|
1605 |
+
}
|
1606 |
+
public function getKind() {
|
1607 |
+
return $this->kind;
|
1608 |
+
}
|
1609 |
+
public function setSegmentId($segmentId) {
|
1610 |
+
$this->segmentId = $segmentId;
|
1611 |
+
}
|
1612 |
+
public function getSegmentId() {
|
1613 |
+
return $this->segmentId;
|
1614 |
+
}
|
1615 |
+
public function setCreated($created) {
|
1616 |
+
$this->created = $created;
|
1617 |
+
}
|
1618 |
+
public function getCreated() {
|
1619 |
+
return $this->created;
|
1620 |
+
}
|
1621 |
+
public function setUpdated($updated) {
|
1622 |
+
$this->updated = $updated;
|
1623 |
+
}
|
1624 |
+
public function getUpdated() {
|
1625 |
+
return $this->updated;
|
1626 |
+
}
|
1627 |
+
public function setId($id) {
|
1628 |
+
$this->id = $id;
|
1629 |
+
}
|
1630 |
+
public function getId() {
|
1631 |
+
return $this->id;
|
1632 |
+
}
|
1633 |
+
public function setSelfLink($selfLink) {
|
1634 |
+
$this->selfLink = $selfLink;
|
1635 |
+
}
|
1636 |
+
public function getSelfLink() {
|
1637 |
+
return $this->selfLink;
|
1638 |
+
}
|
1639 |
+
public function setName($name) {
|
1640 |
+
$this->name = $name;
|
1641 |
+
}
|
1642 |
+
public function getName() {
|
1643 |
+
return $this->name;
|
1644 |
+
}
|
1645 |
+
}
|
1646 |
+
|
1647 |
+
class Google_Segments extends Google_Model {
|
1648 |
+
public $username;
|
1649 |
+
public $kind;
|
1650 |
+
protected $__itemsType = 'Google_Segment';
|
1651 |
+
protected $__itemsDataType = 'array';
|
1652 |
+
public $items;
|
1653 |
+
public $itemsPerPage;
|
1654 |
+
public $previousLink;
|
1655 |
+
public $startIndex;
|
1656 |
+
public $nextLink;
|
1657 |
+
public $totalResults;
|
1658 |
+
public function setUsername($username) {
|
1659 |
+
$this->username = $username;
|
1660 |
+
}
|
1661 |
+
public function getUsername() {
|
1662 |
+
return $this->username;
|
1663 |
+
}
|
1664 |
+
public function setKind($kind) {
|
1665 |
+
$this->kind = $kind;
|
1666 |
+
}
|
1667 |
+
public function getKind() {
|
1668 |
+
return $this->kind;
|
1669 |
+
}
|
1670 |
+
public function setItems(/* array(Google_Segment) */ $items) {
|
1671 |
+
$this->assertIsArray($items, 'Google_Segment', __METHOD__);
|
1672 |
+
$this->items = $items;
|
1673 |
+
}
|
1674 |
+
public function getItems() {
|
1675 |
+
return $this->items;
|
1676 |
+
}
|
1677 |
+
public function setItemsPerPage($itemsPerPage) {
|
1678 |
+
$this->itemsPerPage = $itemsPerPage;
|
1679 |
+
}
|
1680 |
+
public function getItemsPerPage() {
|
1681 |
+
return $this->itemsPerPage;
|
1682 |
+
}
|
1683 |
+
public function setPreviousLink($previousLink) {
|
1684 |
+
$this->previousLink = $previousLink;
|
1685 |
+
}
|
1686 |
+
public function getPreviousLink() {
|
1687 |
+
return $this->previousLink;
|
1688 |
+
}
|
1689 |
+
public function setStartIndex($startIndex) {
|
1690 |
+
$this->startIndex = $startIndex;
|
1691 |
+
}
|
1692 |
+
public function getStartIndex() {
|
1693 |
+
return $this->startIndex;
|
1694 |
+
}
|
1695 |
+
public function setNextLink($nextLink) {
|
1696 |
+
$this->nextLink = $nextLink;
|
1697 |
+
}
|
1698 |
+
public function getNextLink() {
|
1699 |
+
return $this->nextLink;
|
1700 |
+
}
|
1701 |
+
public function setTotalResults($totalResults) {
|
1702 |
+
$this->totalResults = $totalResults;
|
1703 |
+
}
|
1704 |
+
public function getTotalResults() {
|
1705 |
+
return $this->totalResults;
|
1706 |
+
}
|
1707 |
+
}
|
1708 |
+
|
1709 |
+
class Google_Webproperties extends Google_Model {
|
1710 |
+
public $username;
|
1711 |
+
public $kind;
|
1712 |
+
protected $__itemsType = 'Google_Webproperty';
|
1713 |
+
protected $__itemsDataType = 'array';
|
1714 |
+
public $items;
|
1715 |
+
public $itemsPerPage;
|
1716 |
+
public $previousLink;
|
1717 |
+
public $startIndex;
|
1718 |
+
public $nextLink;
|
1719 |
+
public $totalResults;
|
1720 |
+
public function setUsername($username) {
|
1721 |
+
$this->username = $username;
|
1722 |
+
}
|
1723 |
+
public function getUsername() {
|
1724 |
+
return $this->username;
|
1725 |
+
}
|
1726 |
+
public function setKind($kind) {
|
1727 |
+
$this->kind = $kind;
|
1728 |
+
}
|
1729 |
+
public function getKind() {
|
1730 |
+
return $this->kind;
|
1731 |
+
}
|
1732 |
+
public function setItems(/* array(Google_Webproperty) */ $items) {
|
1733 |
+
$this->assertIsArray($items, 'Google_Webproperty', __METHOD__);
|
1734 |
+
$this->items = $items;
|
1735 |
+
}
|
1736 |
+
public function getItems() {
|
1737 |
+
return $this->items;
|
1738 |
+
}
|
1739 |
+
public function setItemsPerPage($itemsPerPage) {
|
1740 |
+
$this->itemsPerPage = $itemsPerPage;
|
1741 |
+
}
|
1742 |
+
public function getItemsPerPage() {
|
1743 |
+
return $this->itemsPerPage;
|
1744 |
+
}
|
1745 |
+
public function setPreviousLink($previousLink) {
|
1746 |
+
$this->previousLink = $previousLink;
|
1747 |
+
}
|
1748 |
+
public function getPreviousLink() {
|
1749 |
+
return $this->previousLink;
|
1750 |
+
}
|
1751 |
+
public function setStartIndex($startIndex) {
|
1752 |
+
$this->startIndex = $startIndex;
|
1753 |
+
}
|
1754 |
+
public function getStartIndex() {
|
1755 |
+
return $this->startIndex;
|
1756 |
+
}
|
1757 |
+
public function setNextLink($nextLink) {
|
1758 |
+
$this->nextLink = $nextLink;
|
1759 |
+
}
|
1760 |
+
public function getNextLink() {
|
1761 |
+
return $this->nextLink;
|
1762 |
+
}
|
1763 |
+
public function setTotalResults($totalResults) {
|
1764 |
+
$this->totalResults = $totalResults;
|
1765 |
+
}
|
1766 |
+
public function getTotalResults() {
|
1767 |
+
return $this->totalResults;
|
1768 |
+
}
|
1769 |
+
}
|
1770 |
+
|
1771 |
+
class Google_Webproperty extends Google_Model {
|
1772 |
+
public $kind;
|
1773 |
+
public $name;
|
1774 |
+
public $created;
|
1775 |
+
public $updated;
|
1776 |
+
public $websiteUrl;
|
1777 |
+
public $internalWebPropertyId;
|
1778 |
+
protected $__childLinkType = 'Google_WebpropertyChildLink';
|
1779 |
+
protected $__childLinkDataType = '';
|
1780 |
+
public $childLink;
|
1781 |
+
protected $__parentLinkType = 'Google_WebpropertyParentLink';
|
1782 |
+
protected $__parentLinkDataType = '';
|
1783 |
+
public $parentLink;
|
1784 |
+
public $id;
|
1785 |
+
public $selfLink;
|
1786 |
+
public $accountId;
|
1787 |
+
public function setKind($kind) {
|
1788 |
+
$this->kind = $kind;
|
1789 |
+
}
|
1790 |
+
public function getKind() {
|
1791 |
+
return $this->kind;
|
1792 |
+
}
|
1793 |
+
public function setName($name) {
|
1794 |
+
$this->name = $name;
|
1795 |
+
}
|
1796 |
+
public function getName() {
|
1797 |
+
return $this->name;
|
1798 |
+
}
|
1799 |
+
public function setCreated($created) {
|
1800 |
+
$this->created = $created;
|
1801 |
+
}
|
1802 |
+
public function getCreated() {
|
1803 |
+
return $this->created;
|
1804 |
+
}
|
1805 |
+
public function setUpdated($updated) {
|
1806 |
+
$this->updated = $updated;
|
1807 |
+
}
|
1808 |
+
public function getUpdated() {
|
1809 |
+
return $this->updated;
|
1810 |
+
}
|
1811 |
+
public function setWebsiteUrl($websiteUrl) {
|
1812 |
+
$this->websiteUrl = $websiteUrl;
|
1813 |
+
}
|
1814 |
+
public function getWebsiteUrl() {
|
1815 |
+
return $this->websiteUrl;
|
1816 |
+
}
|
1817 |
+
public function setInternalWebPropertyId($internalWebPropertyId) {
|
1818 |
+
$this->internalWebPropertyId = $internalWebPropertyId;
|
1819 |
+
}
|
1820 |
+
public function getInternalWebPropertyId() {
|
1821 |
+
return $this->internalWebPropertyId;
|
1822 |
+
}
|
1823 |
+
public function setChildLink(Google_WebpropertyChildLink $childLink) {
|
1824 |
+
$this->childLink = $childLink;
|
1825 |
+
}
|
1826 |
+
public function getChildLink() {
|
1827 |
+
return $this->childLink;
|
1828 |
+
}
|
1829 |
+
public function setParentLink(Google_WebpropertyParentLink $parentLink) {
|
1830 |
+
$this->parentLink = $parentLink;
|
1831 |
+
}
|
1832 |
+
public function getParentLink() {
|
1833 |
+
return $this->parentLink;
|
1834 |
+
}
|
1835 |
+
public function setId($id) {
|
1836 |
+
$this->id = $id;
|
1837 |
+
}
|
1838 |
+
public function getId() {
|
1839 |
+
return $this->id;
|
1840 |
+
}
|
1841 |
+
public function setSelfLink($selfLink) {
|
1842 |
+
$this->selfLink = $selfLink;
|
1843 |
+
}
|
1844 |
+
public function getSelfLink() {
|
1845 |
+
return $this->selfLink;
|
1846 |
+
}
|
1847 |
+
public function setAccountId($accountId) {
|
1848 |
+
$this->accountId = $accountId;
|
1849 |
+
}
|
1850 |
+
public function getAccountId() {
|
1851 |
+
return $this->accountId;
|
1852 |
+
}
|
1853 |
+
}
|
1854 |
+
|
1855 |
+
class Google_WebpropertyChildLink extends Google_Model {
|
1856 |
+
public $href;
|
1857 |
+
public $type;
|
1858 |
+
public function setHref($href) {
|
1859 |
+
$this->href = $href;
|
1860 |
+
}
|
1861 |
+
public function getHref() {
|
1862 |
+
return $this->href;
|
1863 |
+
}
|
1864 |
+
public function setType($type) {
|
1865 |
+
$this->type = $type;
|
1866 |
+
}
|
1867 |
+
public function getType() {
|
1868 |
+
return $this->type;
|
1869 |
+
}
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
class Google_WebpropertyParentLink extends Google_Model {
|
1873 |
+
public $href;
|
1874 |
+
public $type;
|
1875 |
+
public function setHref($href) {
|
1876 |
+
$this->href = $href;
|
1877 |
+
}
|
1878 |
+
public function getHref() {
|
1879 |
+
return $this->href;
|
1880 |
+
}
|
1881 |
+
public function setType($type) {
|
1882 |
+
$this->type = $type;
|
1883 |
+
}
|
1884 |
+
public function getType() {
|
1885 |
+
return $this->type;
|
1886 |
+
}
|
1887 |
+
}
|
lib/SocialLogin/contrib/Google_BigqueryService.php
ADDED
@@ -0,0 +1,1821 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "tables" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $bigqueryService = new Google_BigqueryService(...);
|
22 |
+
* $tables = $bigqueryService->tables;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_TablesServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Creates a new, empty table in the dataset. (tables.insert)
|
30 |
+
*
|
31 |
+
* @param string $projectId Project ID of the new table
|
32 |
+
* @param string $datasetId Dataset ID of the new table
|
33 |
+
* @param Google_Table $postBody
|
34 |
+
* @param array $optParams Optional parameters.
|
35 |
+
* @return Google_Table
|
36 |
+
*/
|
37 |
+
public function insert($projectId, $datasetId, Google_Table $postBody, $optParams = array()) {
|
38 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
|
39 |
+
$params = array_merge($params, $optParams);
|
40 |
+
$data = $this->__call('insert', array($params));
|
41 |
+
if ($this->useObjects()) {
|
42 |
+
return new Google_Table($data);
|
43 |
+
} else {
|
44 |
+
return $data;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
/**
|
48 |
+
* Gets the specified table resource by table ID. This method does not return the data in the table,
|
49 |
+
* it only returns the table resource, which describes the structure of this table. (tables.get)
|
50 |
+
*
|
51 |
+
* @param string $projectId Project ID of the requested table
|
52 |
+
* @param string $datasetId Dataset ID of the requested table
|
53 |
+
* @param string $tableId Table ID of the requested table
|
54 |
+
* @param array $optParams Optional parameters.
|
55 |
+
* @return Google_Table
|
56 |
+
*/
|
57 |
+
public function get($projectId, $datasetId, $tableId, $optParams = array()) {
|
58 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
|
59 |
+
$params = array_merge($params, $optParams);
|
60 |
+
$data = $this->__call('get', array($params));
|
61 |
+
if ($this->useObjects()) {
|
62 |
+
return new Google_Table($data);
|
63 |
+
} else {
|
64 |
+
return $data;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
/**
|
68 |
+
* Lists all tables in the specified dataset. (tables.list)
|
69 |
+
*
|
70 |
+
* @param string $projectId Project ID of the tables to list
|
71 |
+
* @param string $datasetId Dataset ID of the tables to list
|
72 |
+
* @param array $optParams Optional parameters.
|
73 |
+
*
|
74 |
+
* @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
|
75 |
+
* @opt_param string maxResults Maximum number of results to return
|
76 |
+
* @return Google_TableList
|
77 |
+
*/
|
78 |
+
public function listTables($projectId, $datasetId, $optParams = array()) {
|
79 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId);
|
80 |
+
$params = array_merge($params, $optParams);
|
81 |
+
$data = $this->__call('list', array($params));
|
82 |
+
if ($this->useObjects()) {
|
83 |
+
return new Google_TableList($data);
|
84 |
+
} else {
|
85 |
+
return $data;
|
86 |
+
}
|
87 |
+
}
|
88 |
+
/**
|
89 |
+
* Updates information in an existing table, specified by tableId. (tables.update)
|
90 |
+
*
|
91 |
+
* @param string $projectId Project ID of the table to update
|
92 |
+
* @param string $datasetId Dataset ID of the table to update
|
93 |
+
* @param string $tableId Table ID of the table to update
|
94 |
+
* @param Google_Table $postBody
|
95 |
+
* @param array $optParams Optional parameters.
|
96 |
+
* @return Google_Table
|
97 |
+
*/
|
98 |
+
public function update($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
|
99 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
|
100 |
+
$params = array_merge($params, $optParams);
|
101 |
+
$data = $this->__call('update', array($params));
|
102 |
+
if ($this->useObjects()) {
|
103 |
+
return new Google_Table($data);
|
104 |
+
} else {
|
105 |
+
return $data;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
/**
|
109 |
+
* Updates information in an existing table, specified by tableId. This method supports patch
|
110 |
+
* semantics. (tables.patch)
|
111 |
+
*
|
112 |
+
* @param string $projectId Project ID of the table to update
|
113 |
+
* @param string $datasetId Dataset ID of the table to update
|
114 |
+
* @param string $tableId Table ID of the table to update
|
115 |
+
* @param Google_Table $postBody
|
116 |
+
* @param array $optParams Optional parameters.
|
117 |
+
* @return Google_Table
|
118 |
+
*/
|
119 |
+
public function patch($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
|
120 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
|
121 |
+
$params = array_merge($params, $optParams);
|
122 |
+
$data = $this->__call('patch', array($params));
|
123 |
+
if ($this->useObjects()) {
|
124 |
+
return new Google_Table($data);
|
125 |
+
} else {
|
126 |
+
return $data;
|
127 |
+
}
|
128 |
+
}
|
129 |
+
/**
|
130 |
+
* Deletes the table specified by tableId from the dataset. If the table contains data, all the data
|
131 |
+
* will be deleted. (tables.delete)
|
132 |
+
*
|
133 |
+
* @param string $projectId Project ID of the table to delete
|
134 |
+
* @param string $datasetId Dataset ID of the table to delete
|
135 |
+
* @param string $tableId Table ID of the table to delete
|
136 |
+
* @param array $optParams Optional parameters.
|
137 |
+
*/
|
138 |
+
public function delete($projectId, $datasetId, $tableId, $optParams = array()) {
|
139 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
|
140 |
+
$params = array_merge($params, $optParams);
|
141 |
+
$data = $this->__call('delete', array($params));
|
142 |
+
return $data;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* The "datasets" collection of methods.
|
148 |
+
* Typical usage is:
|
149 |
+
* <code>
|
150 |
+
* $bigqueryService = new Google_BigqueryService(...);
|
151 |
+
* $datasets = $bigqueryService->datasets;
|
152 |
+
* </code>
|
153 |
+
*/
|
154 |
+
class Google_DatasetsServiceResource extends Google_ServiceResource {
|
155 |
+
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Creates a new empty dataset. (datasets.insert)
|
159 |
+
*
|
160 |
+
* @param string $projectId Project ID of the new dataset
|
161 |
+
* @param Google_Dataset $postBody
|
162 |
+
* @param array $optParams Optional parameters.
|
163 |
+
* @return Google_Dataset
|
164 |
+
*/
|
165 |
+
public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
|
166 |
+
$params = array('projectId' => $projectId, 'postBody' => $postBody);
|
167 |
+
$params = array_merge($params, $optParams);
|
168 |
+
$data = $this->__call('insert', array($params));
|
169 |
+
if ($this->useObjects()) {
|
170 |
+
return new Google_Dataset($data);
|
171 |
+
} else {
|
172 |
+
return $data;
|
173 |
+
}
|
174 |
+
}
|
175 |
+
/**
|
176 |
+
* Returns the dataset specified by datasetID. (datasets.get)
|
177 |
+
*
|
178 |
+
* @param string $projectId Project ID of the requested dataset
|
179 |
+
* @param string $datasetId Dataset ID of the requested dataset
|
180 |
+
* @param array $optParams Optional parameters.
|
181 |
+
* @return Google_Dataset
|
182 |
+
*/
|
183 |
+
public function get($projectId, $datasetId, $optParams = array()) {
|
184 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId);
|
185 |
+
$params = array_merge($params, $optParams);
|
186 |
+
$data = $this->__call('get', array($params));
|
187 |
+
if ($this->useObjects()) {
|
188 |
+
return new Google_Dataset($data);
|
189 |
+
} else {
|
190 |
+
return $data;
|
191 |
+
}
|
192 |
+
}
|
193 |
+
/**
|
194 |
+
* Lists all the datasets in the specified project to which the caller has read access; however, a
|
195 |
+
* project owner can list (but not necessarily get) all datasets in his project. (datasets.list)
|
196 |
+
*
|
197 |
+
* @param string $projectId Project ID of the datasets to be listed
|
198 |
+
* @param array $optParams Optional parameters.
|
199 |
+
*
|
200 |
+
* @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
|
201 |
+
* @opt_param string maxResults The maximum number of results to return
|
202 |
+
* @return Google_DatasetList
|
203 |
+
*/
|
204 |
+
public function listDatasets($projectId, $optParams = array()) {
|
205 |
+
$params = array('projectId' => $projectId);
|
206 |
+
$params = array_merge($params, $optParams);
|
207 |
+
$data = $this->__call('list', array($params));
|
208 |
+
if ($this->useObjects()) {
|
209 |
+
return new Google_DatasetList($data);
|
210 |
+
} else {
|
211 |
+
return $data;
|
212 |
+
}
|
213 |
+
}
|
214 |
+
/**
|
215 |
+
* Updates information in an existing dataset, specified by datasetId. Properties not included in
|
216 |
+
* the submitted resource will not be changed. If you include the access property without any values
|
217 |
+
* assigned, the request will fail as you must specify at least one owner for a dataset.
|
218 |
+
* (datasets.update)
|
219 |
+
*
|
220 |
+
* @param string $projectId Project ID of the dataset being updated
|
221 |
+
* @param string $datasetId Dataset ID of the dataset being updated
|
222 |
+
* @param Google_Dataset $postBody
|
223 |
+
* @param array $optParams Optional parameters.
|
224 |
+
* @return Google_Dataset
|
225 |
+
*/
|
226 |
+
public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
|
227 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
|
228 |
+
$params = array_merge($params, $optParams);
|
229 |
+
$data = $this->__call('update', array($params));
|
230 |
+
if ($this->useObjects()) {
|
231 |
+
return new Google_Dataset($data);
|
232 |
+
} else {
|
233 |
+
return $data;
|
234 |
+
}
|
235 |
+
}
|
236 |
+
/**
|
237 |
+
* Updates information in an existing dataset, specified by datasetId. Properties not included in
|
238 |
+
* the submitted resource will not be changed. If you include the access property without any values
|
239 |
+
* assigned, the request will fail as you must specify at least one owner for a dataset. This method
|
240 |
+
* supports patch semantics. (datasets.patch)
|
241 |
+
*
|
242 |
+
* @param string $projectId Project ID of the dataset being updated
|
243 |
+
* @param string $datasetId Dataset ID of the dataset being updated
|
244 |
+
* @param Google_Dataset $postBody
|
245 |
+
* @param array $optParams Optional parameters.
|
246 |
+
* @return Google_Dataset
|
247 |
+
*/
|
248 |
+
public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
|
249 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
|
250 |
+
$params = array_merge($params, $optParams);
|
251 |
+
$data = $this->__call('patch', array($params));
|
252 |
+
if ($this->useObjects()) {
|
253 |
+
return new Google_Dataset($data);
|
254 |
+
} else {
|
255 |
+
return $data;
|
256 |
+
}
|
257 |
+
}
|
258 |
+
/**
|
259 |
+
* Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must
|
260 |
+
* delete all its tables, either manually or by specifying deleteContents. Immediately after
|
261 |
+
* deletion, you can create another dataset with the same name. (datasets.delete)
|
262 |
+
*
|
263 |
+
* @param string $projectId Project ID of the dataset being deleted
|
264 |
+
* @param string $datasetId Dataset ID of dataset being deleted
|
265 |
+
* @param array $optParams Optional parameters.
|
266 |
+
*
|
267 |
+
* @opt_param bool deleteContents If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
|
268 |
+
*/
|
269 |
+
public function delete($projectId, $datasetId, $optParams = array()) {
|
270 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId);
|
271 |
+
$params = array_merge($params, $optParams);
|
272 |
+
$data = $this->__call('delete', array($params));
|
273 |
+
return $data;
|
274 |
+
}
|
275 |
+
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* The "jobs" collection of methods.
|
279 |
+
* Typical usage is:
|
280 |
+
* <code>
|
281 |
+
* $bigqueryService = new Google_BigqueryService(...);
|
282 |
+
* $jobs = $bigqueryService->jobs;
|
283 |
+
* </code>
|
284 |
+
*/
|
285 |
+
class Google_JobsServiceResource extends Google_ServiceResource {
|
286 |
+
|
287 |
+
|
288 |
+
/**
|
289 |
+
* Starts a new asynchronous job. (jobs.insert)
|
290 |
+
*
|
291 |
+
* @param string $projectId Project ID of the project that will be billed for the job
|
292 |
+
* @param Google_Job $postBody
|
293 |
+
* @param array $optParams Optional parameters.
|
294 |
+
* @return Google_Job
|
295 |
+
*/
|
296 |
+
public function insert($projectId, Google_Job $postBody, $optParams = array()) {
|
297 |
+
$params = array('projectId' => $projectId, 'postBody' => $postBody);
|
298 |
+
$params = array_merge($params, $optParams);
|
299 |
+
$data = $this->__call('insert', array($params));
|
300 |
+
if ($this->useObjects()) {
|
301 |
+
return new Google_Job($data);
|
302 |
+
} else {
|
303 |
+
return $data;
|
304 |
+
}
|
305 |
+
}
|
306 |
+
/**
|
307 |
+
* Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
|
308 |
+
* specified timeout. (jobs.query)
|
309 |
+
*
|
310 |
+
* @param string $projectId Project ID of the project billed for the query
|
311 |
+
* @param Google_QueryRequest $postBody
|
312 |
+
* @param array $optParams Optional parameters.
|
313 |
+
* @return Google_QueryResponse
|
314 |
+
*/
|
315 |
+
public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
|
316 |
+
$params = array('projectId' => $projectId, 'postBody' => $postBody);
|
317 |
+
$params = array_merge($params, $optParams);
|
318 |
+
$data = $this->__call('query', array($params));
|
319 |
+
if ($this->useObjects()) {
|
320 |
+
return new Google_QueryResponse($data);
|
321 |
+
} else {
|
322 |
+
return $data;
|
323 |
+
}
|
324 |
+
}
|
325 |
+
/**
|
326 |
+
* Lists all the Jobs in the specified project that were started by the user. (jobs.list)
|
327 |
+
*
|
328 |
+
* @param string $projectId Project ID of the jobs to list
|
329 |
+
* @param array $optParams Optional parameters.
|
330 |
+
*
|
331 |
+
* @opt_param string projection Restrict information returned to a set of selected fields
|
332 |
+
* @opt_param string stateFilter Filter for job state
|
333 |
+
* @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
|
334 |
+
* @opt_param string maxResults Maximum number of results to return
|
335 |
+
* @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
|
336 |
+
* @return Google_JobList
|
337 |
+
*/
|
338 |
+
public function listJobs($projectId, $optParams = array()) {
|
339 |
+
$params = array('projectId' => $projectId);
|
340 |
+
$params = array_merge($params, $optParams);
|
341 |
+
$data = $this->__call('list', array($params));
|
342 |
+
if ($this->useObjects()) {
|
343 |
+
return new Google_JobList($data);
|
344 |
+
} else {
|
345 |
+
return $data;
|
346 |
+
}
|
347 |
+
}
|
348 |
+
/**
|
349 |
+
* Retrieves the results of a query job. (jobs.getQueryResults)
|
350 |
+
*
|
351 |
+
* @param string $projectId Project ID of the query job
|
352 |
+
* @param string $jobId Job ID of the query job
|
353 |
+
* @param array $optParams Optional parameters.
|
354 |
+
*
|
355 |
+
* @opt_param string timeoutMs How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error
|
356 |
+
* @opt_param string startIndex Zero-based index of the starting row
|
357 |
+
* @opt_param string maxResults Maximum number of results to read
|
358 |
+
* @return Google_GetQueryResultsResponse
|
359 |
+
*/
|
360 |
+
public function getQueryResults($projectId, $jobId, $optParams = array()) {
|
361 |
+
$params = array('projectId' => $projectId, 'jobId' => $jobId);
|
362 |
+
$params = array_merge($params, $optParams);
|
363 |
+
$data = $this->__call('getQueryResults', array($params));
|
364 |
+
if ($this->useObjects()) {
|
365 |
+
return new Google_GetQueryResultsResponse($data);
|
366 |
+
} else {
|
367 |
+
return $data;
|
368 |
+
}
|
369 |
+
}
|
370 |
+
/**
|
371 |
+
* Retrieves the specified job by ID. (jobs.get)
|
372 |
+
*
|
373 |
+
* @param string $projectId Project ID of the requested job
|
374 |
+
* @param string $jobId Job ID of the requested job
|
375 |
+
* @param array $optParams Optional parameters.
|
376 |
+
* @return Google_Job
|
377 |
+
*/
|
378 |
+
public function get($projectId, $jobId, $optParams = array()) {
|
379 |
+
$params = array('projectId' => $projectId, 'jobId' => $jobId);
|
380 |
+
$params = array_merge($params, $optParams);
|
381 |
+
$data = $this->__call('get', array($params));
|
382 |
+
if ($this->useObjects()) {
|
383 |
+
return new Google_Job($data);
|
384 |
+
} else {
|
385 |
+
return $data;
|
386 |
+
}
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* The "tabledata" collection of methods.
|
392 |
+
* Typical usage is:
|
393 |
+
* <code>
|
394 |
+
* $bigqueryService = new Google_BigqueryService(...);
|
395 |
+
* $tabledata = $bigqueryService->tabledata;
|
396 |
+
* </code>
|
397 |
+
*/
|
398 |
+
class Google_TabledataServiceResource extends Google_ServiceResource {
|
399 |
+
|
400 |
+
|
401 |
+
/**
|
402 |
+
* Retrieves table data from a specified set of rows. (tabledata.list)
|
403 |
+
*
|
404 |
+
* @param string $projectId Project ID of the table to read
|
405 |
+
* @param string $datasetId Dataset ID of the table to read
|
406 |
+
* @param string $tableId Table ID of the table to read
|
407 |
+
* @param array $optParams Optional parameters.
|
408 |
+
*
|
409 |
+
* @opt_param string maxResults Maximum number of results to return
|
410 |
+
* @opt_param string pageToken Page token, returned by a previous call, identifying the result set
|
411 |
+
* @opt_param string startIndex Zero-based index of the starting row to read
|
412 |
+
* @return Google_TableDataList
|
413 |
+
*/
|
414 |
+
public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
|
415 |
+
$params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
|
416 |
+
$params = array_merge($params, $optParams);
|
417 |
+
$data = $this->__call('list', array($params));
|
418 |
+
if ($this->useObjects()) {
|
419 |
+
return new Google_TableDataList($data);
|
420 |
+
} else {
|
421 |
+
return $data;
|
422 |
+
}
|
423 |
+
}
|
424 |
+
}
|
425 |
+
|
426 |
+
/**
|
427 |
+
* The "projects" collection of methods.
|
428 |
+
* Typical usage is:
|
429 |
+
* <code>
|
430 |
+
* $bigqueryService = new Google_BigqueryService(...);
|
431 |
+
* $projects = $bigqueryService->projects;
|
432 |
+
* </code>
|
433 |
+
*/
|
434 |
+
class Google_ProjectsServiceResource extends Google_ServiceResource {
|
435 |
+
|
436 |
+
|
437 |
+
/**
|
438 |
+
* Lists the projects to which you have at least read access. (projects.list)
|
439 |
+
*
|
440 |
+
* @param array $optParams Optional parameters.
|
441 |
+
*
|
442 |
+
* @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
|
443 |
+
* @opt_param string maxResults Maximum number of results to return
|
444 |
+
* @return Google_ProjectList
|
445 |
+
*/
|
446 |
+
public function listProjects($optParams = array()) {
|
447 |
+
$params = array();
|
448 |
+
$params = array_merge($params, $optParams);
|
449 |
+
$data = $this->__call('list', array($params));
|
450 |
+
if ($this->useObjects()) {
|
451 |
+
return new Google_ProjectList($data);
|
452 |
+
} else {
|
453 |
+
return $data;
|
454 |
+
}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
/**
|
459 |
+
* Service definition for Google_Bigquery (v2).
|
460 |
+
*
|
461 |
+
* <p>
|
462 |
+
* A data platform for customers to create, manage, share and query data.
|
463 |
+
* </p>
|
464 |
+
*
|
465 |
+
* <p>
|
466 |
+
* For more information about this service, see the
|
467 |
+
* <a href="https://code.google.com/apis/bigquery/docs/v2/" target="_blank">API Documentation</a>
|
468 |
+
* </p>
|
469 |
+
*
|
470 |
+
* @author Google, Inc.
|
471 |
+
*/
|
472 |
+
class Google_BigqueryService extends Google_Service {
|
473 |
+
public $tables;
|
474 |
+
public $datasets;
|
475 |
+
public $jobs;
|
476 |
+
public $tabledata;
|
477 |
+
public $projects;
|
478 |
+
/**
|
479 |
+
* Constructs the internal representation of the Bigquery service.
|
480 |
+
*
|
481 |
+
* @param Google_Client $client
|
482 |
+
*/
|
483 |
+
public function __construct(Google_Client $client) {
|
484 |
+
$this->servicePath = 'bigquery/v2/';
|
485 |
+
$this->version = 'v2';
|
486 |
+
$this->serviceName = 'bigquery';
|
487 |
+
|
488 |
+
$client->addService($this->serviceName, $this->version);
|
489 |
+
$this->tables = new Google_TablesServiceResource($this, $this->serviceName, 'tables', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets/{datasetId}/tables", "id": "bigquery.tables.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables", "response": {"$ref": "TableList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.delete", "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
490 |
+
$this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets", "id": "bigquery.datasets.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}", "response": {"$ref": "Dataset"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets", "response": {"$ref": "DatasetList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.delete", "parameters": {"deleteContents": {"type": "boolean", "location": "query"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
491 |
+
$this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "Job"}, "mediaUpload": {"protocols": {"simple": {"path": "/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}, "resumable": {"path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "Job"}, "httpMethod": "POST", "path": "projects/{projectId}/jobs", "id": "bigquery.jobs.insert"}, "query": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "httpMethod": "POST", "path": "projects/{projectId}/queries", "id": "bigquery.jobs.query"}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projection": {"enum": ["full", "minimal"], "type": "string", "location": "query"}, "stateFilter": {"repeated": true, "enum": ["done", "pending", "running"], "type": "string", "location": "query"}, "projectId": {"required": true, "type": "string", "location": "path"}, "allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}}, "id": "bigquery.jobs.list", "httpMethod": "GET", "path": "projects/{projectId}/jobs", "response": {"$ref": "JobList"}}, "getQueryResults": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"timeoutMs": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.getQueryResults", "httpMethod": "GET", "path": "projects/{projectId}/queries/{jobId}", "response": {"$ref": "GetQueryResultsResponse"}}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.get", "httpMethod": "GET", "path": "projects/{projectId}/jobs/{jobId}", "response": {"$ref": "Job"}}}}', true));
|
492 |
+
$this->tabledata = new Google_TabledataServiceResource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tabledata.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "response": {"$ref": "TableDataList"}}}}', true));
|
493 |
+
$this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "ProjectList"}, "httpMethod": "GET", "path": "projects", "id": "bigquery.projects.list"}}}', true));
|
494 |
+
|
495 |
+
}
|
496 |
+
}
|
497 |
+
|
498 |
+
class Google_Dataset extends Google_Model {
|
499 |
+
public $kind;
|
500 |
+
public $description;
|
501 |
+
protected $__datasetReferenceType = 'Google_DatasetReference';
|
502 |
+
protected $__datasetReferenceDataType = '';
|
503 |
+
public $datasetReference;
|
504 |
+
public $creationTime;
|
505 |
+
protected $__accessType = 'Google_DatasetAccess';
|
506 |
+
protected $__accessDataType = 'array';
|
507 |
+
public $access;
|
508 |
+
public $etag;
|
509 |
+
public $friendlyName;
|
510 |
+
public $lastModifiedTime;
|
511 |
+
public $id;
|
512 |
+
public $selfLink;
|
513 |
+
public function setKind($kind) {
|
514 |
+
$this->kind = $kind;
|
515 |
+
}
|
516 |
+
public function getKind() {
|
517 |
+
return $this->kind;
|
518 |
+
}
|
519 |
+
public function setDescription($description) {
|
520 |
+
$this->description = $description;
|
521 |
+
}
|
522 |
+
public function getDescription() {
|
523 |
+
return $this->description;
|
524 |
+
}
|
525 |
+
public function setDatasetReference(Google_DatasetReference $datasetReference) {
|
526 |
+
$this->datasetReference = $datasetReference;
|
527 |
+
}
|
528 |
+
public function getDatasetReference() {
|
529 |
+
return $this->datasetReference;
|
530 |
+
}
|
531 |
+
public function setCreationTime($creationTime) {
|
532 |
+
$this->creationTime = $creationTime;
|
533 |
+
}
|
534 |
+
public function getCreationTime() {
|
535 |
+
return $this->creationTime;
|
536 |
+
}
|
537 |
+
public function setAccess(/* array(Google_DatasetAccess) */ $access) {
|
538 |
+
$this->assertIsArray($access, 'Google_DatasetAccess', __METHOD__);
|
539 |
+
$this->access = $access;
|
540 |
+
}
|
541 |
+
public function getAccess() {
|
542 |
+
return $this->access;
|
543 |
+
}
|
544 |
+
public function setEtag($etag) {
|
545 |
+
$this->etag = $etag;
|
546 |
+
}
|
547 |
+
public function getEtag() {
|
548 |
+
return $this->etag;
|
549 |
+
}
|
550 |
+
public function setFriendlyName($friendlyName) {
|
551 |
+
$this->friendlyName = $friendlyName;
|
552 |
+
}
|
553 |
+
public function getFriendlyName() {
|
554 |
+
return $this->friendlyName;
|
555 |
+
}
|
556 |
+
public function setLastModifiedTime($lastModifiedTime) {
|
557 |
+
$this->lastModifiedTime = $lastModifiedTime;
|
558 |
+
}
|
559 |
+
public function getLastModifiedTime() {
|
560 |
+
return $this->lastModifiedTime;
|
561 |
+
}
|
562 |
+
public function setId($id) {
|
563 |
+
$this->id = $id;
|
564 |
+
}
|
565 |
+
public function getId() {
|
566 |
+
return $this->id;
|
567 |
+
}
|
568 |
+
public function setSelfLink($selfLink) {
|
569 |
+
$this->selfLink = $selfLink;
|
570 |
+
}
|
571 |
+
public function getSelfLink() {
|
572 |
+
return $this->selfLink;
|
573 |
+
}
|
574 |
+
}
|
575 |
+
|
576 |
+
class Google_DatasetAccess extends Google_Model {
|
577 |
+
public $specialGroup;
|
578 |
+
public $domain;
|
579 |
+
public $role;
|
580 |
+
public $groupByEmail;
|
581 |
+
public $userByEmail;
|
582 |
+
public function setSpecialGroup($specialGroup) {
|
583 |
+
$this->specialGroup = $specialGroup;
|
584 |
+
}
|
585 |
+
public function getSpecialGroup() {
|
586 |
+
return $this->specialGroup;
|
587 |
+
}
|
588 |
+
public function setDomain($domain) {
|
589 |
+
$this->domain = $domain;
|
590 |
+
}
|
591 |
+
public function getDomain() {
|
592 |
+
return $this->domain;
|
593 |
+
}
|
594 |
+
public function setRole($role) {
|
595 |
+
$this->role = $role;
|
596 |
+
}
|
597 |
+
public function getRole() {
|
598 |
+
return $this->role;
|
599 |
+
}
|
600 |
+
public function setGroupByEmail($groupByEmail) {
|
601 |
+
$this->groupByEmail = $groupByEmail;
|
602 |
+
}
|
603 |
+
public function getGroupByEmail() {
|
604 |
+
return $this->groupByEmail;
|
605 |
+
}
|
606 |
+
public function setUserByEmail($userByEmail) {
|
607 |
+
$this->userByEmail = $userByEmail;
|
608 |
+
}
|
609 |
+
public function getUserByEmail() {
|
610 |
+
return $this->userByEmail;
|
611 |
+
}
|
612 |
+
}
|
613 |
+
|
614 |
+
class Google_DatasetList extends Google_Model {
|
615 |
+
public $nextPageToken;
|
616 |
+
public $kind;
|
617 |
+
protected $__datasetsType = 'Google_DatasetListDatasets';
|
618 |
+
protected $__datasetsDataType = 'array';
|
619 |
+
public $datasets;
|
620 |
+
public $etag;
|
621 |
+
public function setNextPageToken($nextPageToken) {
|
622 |
+
$this->nextPageToken = $nextPageToken;
|
623 |
+
}
|
624 |
+
public function getNextPageToken() {
|
625 |
+
return $this->nextPageToken;
|
626 |
+
}
|
627 |
+
public function setKind($kind) {
|
628 |
+
$this->kind = $kind;
|
629 |
+
}
|
630 |
+
public function getKind() {
|
631 |
+
return $this->kind;
|
632 |
+
}
|
633 |
+
public function setDatasets(/* array(Google_DatasetListDatasets) */ $datasets) {
|
634 |
+
$this->assertIsArray($datasets, 'Google_DatasetListDatasets', __METHOD__);
|
635 |
+
$this->datasets = $datasets;
|
636 |
+
}
|
637 |
+
public function getDatasets() {
|
638 |
+
return $this->datasets;
|
639 |
+
}
|
640 |
+
public function setEtag($etag) {
|
641 |
+
$this->etag = $etag;
|
642 |
+
}
|
643 |
+
public function getEtag() {
|
644 |
+
return $this->etag;
|
645 |
+
}
|
646 |
+
}
|
647 |
+
|
648 |
+
class Google_DatasetListDatasets extends Google_Model {
|
649 |
+
public $friendlyName;
|
650 |
+
public $kind;
|
651 |
+
public $id;
|
652 |
+
protected $__datasetReferenceType = 'Google_DatasetReference';
|
653 |
+
protected $__datasetReferenceDataType = '';
|
654 |
+
public $datasetReference;
|
655 |
+
public function setFriendlyName($friendlyName) {
|
656 |
+
$this->friendlyName = $friendlyName;
|
657 |
+
}
|
658 |
+
public function getFriendlyName() {
|
659 |
+
return $this->friendlyName;
|
660 |
+
}
|
661 |
+
public function setKind($kind) {
|
662 |
+
$this->kind = $kind;
|
663 |
+
}
|
664 |
+
public function getKind() {
|
665 |
+
return $this->kind;
|
666 |
+
}
|
667 |
+
public function setId($id) {
|
668 |
+
$this->id = $id;
|
669 |
+
}
|
670 |
+
public function getId() {
|
671 |
+
return $this->id;
|
672 |
+
}
|
673 |
+
public function setDatasetReference(Google_DatasetReference $datasetReference) {
|
674 |
+
$this->datasetReference = $datasetReference;
|
675 |
+
}
|
676 |
+
public function getDatasetReference() {
|
677 |
+
return $this->datasetReference;
|
678 |
+
}
|
679 |
+
}
|
680 |
+
|
681 |
+
class Google_DatasetReference extends Google_Model {
|
682 |
+
public $projectId;
|
683 |
+
public $datasetId;
|
684 |
+
public function setProjectId($projectId) {
|
685 |
+
$this->projectId = $projectId;
|
686 |
+
}
|
687 |
+
public function getProjectId() {
|
688 |
+
return $this->projectId;
|
689 |
+
}
|
690 |
+
public function setDatasetId($datasetId) {
|
691 |
+
$this->datasetId = $datasetId;
|
692 |
+
}
|
693 |
+
public function getDatasetId() {
|
694 |
+
return $this->datasetId;
|
695 |
+
}
|
696 |
+
}
|
697 |
+
|
698 |
+
class Google_ErrorProto extends Google_Model {
|
699 |
+
public $debugInfo;
|
700 |
+
public $message;
|
701 |
+
public $reason;
|
702 |
+
public $location;
|
703 |
+
public function setDebugInfo($debugInfo) {
|
704 |
+
$this->debugInfo = $debugInfo;
|
705 |
+
}
|
706 |
+
public function getDebugInfo() {
|
707 |
+
return $this->debugInfo;
|
708 |
+
}
|
709 |
+
public function setMessage($message) {
|
710 |
+
$this->message = $message;
|
711 |
+
}
|
712 |
+
public function getMessage() {
|
713 |
+
return $this->message;
|
714 |
+
}
|
715 |
+
public function setReason($reason) {
|
716 |
+
$this->reason = $reason;
|
717 |
+
}
|
718 |
+
public function getReason() {
|
719 |
+
return $this->reason;
|
720 |
+
}
|
721 |
+
public function setLocation($location) {
|
722 |
+
$this->location = $location;
|
723 |
+
}
|
724 |
+
public function getLocation() {
|
725 |
+
return $this->location;
|
726 |
+
}
|
727 |
+
}
|
728 |
+
|
729 |
+
class Google_GetQueryResultsResponse extends Google_Model {
|
730 |
+
public $kind;
|
731 |
+
protected $__rowsType = 'Google_TableRow';
|
732 |
+
protected $__rowsDataType = 'array';
|
733 |
+
public $rows;
|
734 |
+
protected $__jobReferenceType = 'Google_JobReference';
|
735 |
+
protected $__jobReferenceDataType = '';
|
736 |
+
public $jobReference;
|
737 |
+
public $jobComplete;
|
738 |
+
public $totalRows;
|
739 |
+
public $etag;
|
740 |
+
protected $__schemaType = 'Google_TableSchema';
|
741 |
+
protected $__schemaDataType = '';
|
742 |
+
public $schema;
|
743 |
+
public function setKind($kind) {
|
744 |
+
$this->kind = $kind;
|
745 |
+
}
|
746 |
+
public function getKind() {
|
747 |
+
return $this->kind;
|
748 |
+
}
|
749 |
+
public function setRows(/* array(Google_TableRow) */ $rows) {
|
750 |
+
$this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
|
751 |
+
$this->rows = $rows;
|
752 |
+
}
|
753 |
+
public function getRows() {
|
754 |
+
return $this->rows;
|
755 |
+
}
|
756 |
+
public function setJobReference(Google_JobReference $jobReference) {
|
757 |
+
$this->jobReference = $jobReference;
|
758 |
+
}
|
759 |
+
public function getJobReference() {
|
760 |
+
return $this->jobReference;
|
761 |
+
}
|
762 |
+
public function setJobComplete($jobComplete) {
|
763 |
+
$this->jobComplete = $jobComplete;
|
764 |
+
}
|
765 |
+
public function getJobComplete() {
|
766 |
+
return $this->jobComplete;
|
767 |
+
}
|
768 |
+
public function setTotalRows($totalRows) {
|
769 |
+
$this->totalRows = $totalRows;
|
770 |
+
}
|
771 |
+
public function getTotalRows() {
|
772 |
+
return $this->totalRows;
|
773 |
+
}
|
774 |
+
public function setEtag($etag) {
|
775 |
+
$this->etag = $etag;
|
776 |
+
}
|
777 |
+
public function getEtag() {
|
778 |
+
return $this->etag;
|
779 |
+
}
|
780 |
+
public function setSchema(Google_TableSchema $schema) {
|
781 |
+
$this->schema = $schema;
|
782 |
+
}
|
783 |
+
public function getSchema() {
|
784 |
+
return $this->schema;
|
785 |
+
}
|
786 |
+
}
|
787 |
+
|
788 |
+
class Google_Job extends Google_Model {
|
789 |
+
protected $__statusType = 'Google_JobStatus';
|
790 |
+
protected $__statusDataType = '';
|
791 |
+
public $status;
|
792 |
+
public $kind;
|
793 |
+
protected $__statisticsType = 'Google_JobStatistics';
|
794 |
+
protected $__statisticsDataType = '';
|
795 |
+
public $statistics;
|
796 |
+
protected $__jobReferenceType = 'Google_JobReference';
|
797 |
+
protected $__jobReferenceDataType = '';
|
798 |
+
public $jobReference;
|
799 |
+
public $etag;
|
800 |
+
protected $__configurationType = 'Google_JobConfiguration';
|
801 |
+
protected $__configurationDataType = '';
|
802 |
+
public $configuration;
|
803 |
+
public $id;
|
804 |
+
public $selfLink;
|
805 |
+
public function setStatus(Google_JobStatus $status) {
|
806 |
+
$this->status = $status;
|
807 |
+
}
|
808 |
+
public function getStatus() {
|
809 |
+
return $this->status;
|
810 |
+
}
|
811 |
+
public function setKind($kind) {
|
812 |
+
$this->kind = $kind;
|
813 |
+
}
|
814 |
+
public function getKind() {
|
815 |
+
return $this->kind;
|
816 |
+
}
|
817 |
+
public function setStatistics(Google_JobStatistics $statistics) {
|
818 |
+
$this->statistics = $statistics;
|
819 |
+
}
|
820 |
+
public function getStatistics() {
|
821 |
+
return $this->statistics;
|
822 |
+
}
|
823 |
+
public function setJobReference(Google_JobReference $jobReference) {
|
824 |
+
$this->jobReference = $jobReference;
|
825 |
+
}
|
826 |
+
public function getJobReference() {
|
827 |
+
return $this->jobReference;
|
828 |
+
}
|
829 |
+
public function setEtag($etag) {
|
830 |
+
$this->etag = $etag;
|
831 |
+
}
|
832 |
+
public function getEtag() {
|
833 |
+
return $this->etag;
|
834 |
+
}
|
835 |
+
public function setConfiguration(Google_JobConfiguration $configuration) {
|
836 |
+
$this->configuration = $configuration;
|
837 |
+
}
|
838 |
+
public function getConfiguration() {
|
839 |
+
return $this->configuration;
|
840 |
+
}
|
841 |
+
public function setId($id) {
|
842 |
+
$this->id = $id;
|
843 |
+
}
|
844 |
+
public function getId() {
|
845 |
+
return $this->id;
|
846 |
+
}
|
847 |
+
public function setSelfLink($selfLink) {
|
848 |
+
$this->selfLink = $selfLink;
|
849 |
+
}
|
850 |
+
public function getSelfLink() {
|
851 |
+
return $this->selfLink;
|
852 |
+
}
|
853 |
+
}
|
854 |
+
|
855 |
+
class Google_JobConfiguration extends Google_Model {
|
856 |
+
protected $__loadType = 'Google_JobConfigurationLoad';
|
857 |
+
protected $__loadDataType = '';
|
858 |
+
public $load;
|
859 |
+
protected $__linkType = 'Google_JobConfigurationLink';
|
860 |
+
protected $__linkDataType = '';
|
861 |
+
public $link;
|
862 |
+
protected $__queryType = 'Google_JobConfigurationQuery';
|
863 |
+
protected $__queryDataType = '';
|
864 |
+
public $query;
|
865 |
+
protected $__copyType = 'Google_JobConfigurationTableCopy';
|
866 |
+
protected $__copyDataType = '';
|
867 |
+
public $copy;
|
868 |
+
protected $__extractType = 'Google_JobConfigurationExtract';
|
869 |
+
protected $__extractDataType = '';
|
870 |
+
public $extract;
|
871 |
+
public $properties;
|
872 |
+
public function setLoad(Google_JobConfigurationLoad $load) {
|
873 |
+
$this->load = $load;
|
874 |
+
}
|
875 |
+
public function getLoad() {
|
876 |
+
return $this->load;
|
877 |
+
}
|
878 |
+
public function setLink(Google_JobConfigurationLink $link) {
|
879 |
+
$this->link = $link;
|
880 |
+
}
|
881 |
+
public function getLink() {
|
882 |
+
return $this->link;
|
883 |
+
}
|
884 |
+
public function setQuery(Google_JobConfigurationQuery $query) {
|
885 |
+
$this->query = $query;
|
886 |
+
}
|
887 |
+
public function getQuery() {
|
888 |
+
return $this->query;
|
889 |
+
}
|
890 |
+
public function setCopy(Google_JobConfigurationTableCopy $copy) {
|
891 |
+
$this->copy = $copy;
|
892 |
+
}
|
893 |
+
public function getCopy() {
|
894 |
+
return $this->copy;
|
895 |
+
}
|
896 |
+
public function setExtract(Google_JobConfigurationExtract $extract) {
|
897 |
+
$this->extract = $extract;
|
898 |
+
}
|
899 |
+
public function getExtract() {
|
900 |
+
return $this->extract;
|
901 |
+
}
|
902 |
+
public function setProperties($properties) {
|
903 |
+
$this->properties = $properties;
|
904 |
+
}
|
905 |
+
public function getProperties() {
|
906 |
+
return $this->properties;
|
907 |
+
}
|
908 |
+
}
|
909 |
+
|
910 |
+
class Google_JobConfigurationExtract extends Google_Model {
|
911 |
+
public $destinationUri;
|
912 |
+
public $fieldDelimiter;
|
913 |
+
protected $__sourceTableType = 'Google_TableReference';
|
914 |
+
protected $__sourceTableDataType = '';
|
915 |
+
public $sourceTable;
|
916 |
+
public $printHeader;
|
917 |
+
public function setDestinationUri($destinationUri) {
|
918 |
+
$this->destinationUri = $destinationUri;
|
919 |
+
}
|
920 |
+
public function getDestinationUri() {
|
921 |
+
return $this->destinationUri;
|
922 |
+
}
|
923 |
+
public function setFieldDelimiter($fieldDelimiter) {
|
924 |
+
$this->fieldDelimiter = $fieldDelimiter;
|
925 |
+
}
|
926 |
+
public function getFieldDelimiter() {
|
927 |
+
return $this->fieldDelimiter;
|
928 |
+
}
|
929 |
+
public function setSourceTable(Google_TableReference $sourceTable) {
|
930 |
+
$this->sourceTable = $sourceTable;
|
931 |
+
}
|
932 |
+
public function getSourceTable() {
|
933 |
+
return $this->sourceTable;
|
934 |
+
}
|
935 |
+
public function setPrintHeader($printHeader) {
|
936 |
+
$this->printHeader = $printHeader;
|
937 |
+
}
|
938 |
+
public function getPrintHeader() {
|
939 |
+
return $this->printHeader;
|
940 |
+
}
|
941 |
+
}
|
942 |
+
|
943 |
+
class Google_JobConfigurationLink extends Google_Model {
|
944 |
+
public $createDisposition;
|
945 |
+
public $writeDisposition;
|
946 |
+
protected $__destinationTableType = 'Google_TableReference';
|
947 |
+
protected $__destinationTableDataType = '';
|
948 |
+
public $destinationTable;
|
949 |
+
public $sourceUri;
|
950 |
+
public function setCreateDisposition($createDisposition) {
|
951 |
+
$this->createDisposition = $createDisposition;
|
952 |
+
}
|
953 |
+
public function getCreateDisposition() {
|
954 |
+
return $this->createDisposition;
|
955 |
+
}
|
956 |
+
public function setWriteDisposition($writeDisposition) {
|
957 |
+
$this->writeDisposition = $writeDisposition;
|
958 |
+
}
|
959 |
+
public function getWriteDisposition() {
|
960 |
+
return $this->writeDisposition;
|
961 |
+
}
|
962 |
+
public function setDestinationTable(Google_TableReference $destinationTable) {
|
963 |
+
$this->destinationTable = $destinationTable;
|
964 |
+
}
|
965 |
+
public function getDestinationTable() {
|
966 |
+
return $this->destinationTable;
|
967 |
+
}
|
968 |
+
public function setSourceUri(/* array(Google_string) */ $sourceUri) {
|
969 |
+
$this->assertIsArray($sourceUri, 'Google_string', __METHOD__);
|
970 |
+
$this->sourceUri = $sourceUri;
|
971 |
+
}
|
972 |
+
public function getSourceUri() {
|
973 |
+
return $this->sourceUri;
|
974 |
+
}
|
975 |
+
}
|
976 |
+
|
977 |
+
class Google_JobConfigurationLoad extends Google_Model {
|
978 |
+
public $encoding;
|
979 |
+
public $fieldDelimiter;
|
980 |
+
protected $__destinationTableType = 'Google_TableReference';
|
981 |
+
protected $__destinationTableDataType = '';
|
982 |
+
public $destinationTable;
|
983 |
+
public $writeDisposition;
|
984 |
+
public $maxBadRecords;
|
985 |
+
public $skipLeadingRows;
|
986 |
+
public $sourceUris;
|
987 |
+
public $quote;
|
988 |
+
public $createDisposition;
|
989 |
+
public $schemaInlineFormat;
|
990 |
+
public $schemaInline;
|
991 |
+
protected $__schemaType = 'Google_TableSchema';
|
992 |
+
protected $__schemaDataType = '';
|
993 |
+
public $schema;
|
994 |
+
public function setEncoding($encoding) {
|
995 |
+
$this->encoding = $encoding;
|
996 |
+
}
|
997 |
+
public function getEncoding() {
|
998 |
+
return $this->encoding;
|
999 |
+
}
|
1000 |
+
public function setFieldDelimiter($fieldDelimiter) {
|
1001 |
+
$this->fieldDelimiter = $fieldDelimiter;
|
1002 |
+
}
|
1003 |
+
public function getFieldDelimiter() {
|
1004 |
+
return $this->fieldDelimiter;
|
1005 |
+
}
|
1006 |
+
public function setDestinationTable(Google_TableReference $destinationTable) {
|
1007 |
+
$this->destinationTable = $destinationTable;
|
1008 |
+
}
|
1009 |
+
public function getDestinationTable() {
|
1010 |
+
return $this->destinationTable;
|
1011 |
+
}
|
1012 |
+
public function setWriteDisposition($writeDisposition) {
|
1013 |
+
$this->writeDisposition = $writeDisposition;
|
1014 |
+
}
|
1015 |
+
public function getWriteDisposition() {
|
1016 |
+
return $this->writeDisposition;
|
1017 |
+
}
|
1018 |
+
public function setMaxBadRecords($maxBadRecords) {
|
1019 |
+
$this->maxBadRecords = $maxBadRecords;
|
1020 |
+
}
|
1021 |
+
public function getMaxBadRecords() {
|
1022 |
+
return $this->maxBadRecords;
|
1023 |
+
}
|
1024 |
+
public function setSkipLeadingRows($skipLeadingRows) {
|
1025 |
+
$this->skipLeadingRows = $skipLeadingRows;
|
1026 |
+
}
|
1027 |
+
public function getSkipLeadingRows() {
|
1028 |
+
return $this->skipLeadingRows;
|
1029 |
+
}
|
1030 |
+
public function setSourceUris(/* array(Google_string) */ $sourceUris) {
|
1031 |
+
$this->assertIsArray($sourceUris, 'Google_string', __METHOD__);
|
1032 |
+
$this->sourceUris = $sourceUris;
|
1033 |
+
}
|
1034 |
+
public function getSourceUris() {
|
1035 |
+
return $this->sourceUris;
|
1036 |
+
}
|
1037 |
+
public function setQuote($quote) {
|
1038 |
+
$this->quote = $quote;
|
1039 |
+
}
|
1040 |
+
public function getQuote() {
|
1041 |
+
return $this->quote;
|
1042 |
+
}
|
1043 |
+
public function setCreateDisposition($createDisposition) {
|
1044 |
+
$this->createDisposition = $createDisposition;
|
1045 |
+
}
|
1046 |
+
public function getCreateDisposition() {
|
1047 |
+
return $this->createDisposition;
|
1048 |
+
}
|
1049 |
+
public function setSchemaInlineFormat($schemaInlineFormat) {
|
1050 |
+
$this->schemaInlineFormat = $schemaInlineFormat;
|
1051 |
+
}
|
1052 |
+
public function getSchemaInlineFormat() {
|
1053 |
+
return $this->schemaInlineFormat;
|
1054 |
+
}
|
1055 |
+
public function setSchemaInline($schemaInline) {
|
1056 |
+
$this->schemaInline = $schemaInline;
|
1057 |
+
}
|
1058 |
+
public function getSchemaInline() {
|
1059 |
+
return $this->schemaInline;
|
1060 |
+
}
|
1061 |
+
public function setSchema(Google_TableSchema $schema) {
|
1062 |
+
$this->schema = $schema;
|
1063 |
+
}
|
1064 |
+
public function getSchema() {
|
1065 |
+
return $this->schema;
|
1066 |
+
}
|
1067 |
+
}
|
1068 |
+
|
1069 |
+
class Google_JobConfigurationQuery extends Google_Model {
|
1070 |
+
protected $__defaultDatasetType = 'Google_DatasetReference';
|
1071 |
+
protected $__defaultDatasetDataType = '';
|
1072 |
+
public $defaultDataset;
|
1073 |
+
protected $__destinationTableType = 'Google_TableReference';
|
1074 |
+
protected $__destinationTableDataType = '';
|
1075 |
+
public $destinationTable;
|
1076 |
+
public $priority;
|
1077 |
+
public $writeDisposition;
|
1078 |
+
public $createDisposition;
|
1079 |
+
public $query;
|
1080 |
+
public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
|
1081 |
+
$this->defaultDataset = $defaultDataset;
|
1082 |
+
}
|
1083 |
+
public function getDefaultDataset() {
|
1084 |
+
return $this->defaultDataset;
|
1085 |
+
}
|
1086 |
+
public function setDestinationTable(Google_TableReference $destinationTable) {
|
1087 |
+
$this->destinationTable = $destinationTable;
|
1088 |
+
}
|
1089 |
+
public function getDestinationTable() {
|
1090 |
+
return $this->destinationTable;
|
1091 |
+
}
|
1092 |
+
public function setPriority($priority) {
|
1093 |
+
$this->priority = $priority;
|
1094 |
+
}
|
1095 |
+
public function getPriority() {
|
1096 |
+
return $this->priority;
|
1097 |
+
}
|
1098 |
+
public function setWriteDisposition($writeDisposition) {
|
1099 |
+
$this->writeDisposition = $writeDisposition;
|
1100 |
+
}
|
1101 |
+
public function getWriteDisposition() {
|
1102 |
+
return $this->writeDisposition;
|
1103 |
+
}
|
1104 |
+
public function setCreateDisposition($createDisposition) {
|
1105 |
+
$this->createDisposition = $createDisposition;
|
1106 |
+
}
|
1107 |
+
public function getCreateDisposition() {
|
1108 |
+
return $this->createDisposition;
|
1109 |
+
}
|
1110 |
+
public function setQuery($query) {
|
1111 |
+
$this->query = $query;
|
1112 |
+
}
|
1113 |
+
public function getQuery() {
|
1114 |
+
return $this->query;
|
1115 |
+
}
|
1116 |
+
}
|
1117 |
+
|
1118 |
+
class Google_JobConfigurationTableCopy extends Google_Model {
|
1119 |
+
public $createDisposition;
|
1120 |
+
public $writeDisposition;
|
1121 |
+
protected $__destinationTableType = 'Google_TableReference';
|
1122 |
+
protected $__destinationTableDataType = '';
|
1123 |
+
public $destinationTable;
|
1124 |
+
protected $__sourceTableType = 'Google_TableReference';
|
1125 |
+
protected $__sourceTableDataType = '';
|
1126 |
+
public $sourceTable;
|
1127 |
+
public function setCreateDisposition($createDisposition) {
|
1128 |
+
$this->createDisposition = $createDisposition;
|
1129 |
+
}
|
1130 |
+
public function getCreateDisposition() {
|
1131 |
+
return $this->createDisposition;
|
1132 |
+
}
|
1133 |
+
public function setWriteDisposition($writeDisposition) {
|
1134 |
+
$this->writeDisposition = $writeDisposition;
|
1135 |
+
}
|
1136 |
+
public function getWriteDisposition() {
|
1137 |
+
return $this->writeDisposition;
|
1138 |
+
}
|
1139 |
+
public function setDestinationTable(Google_TableReference $destinationTable) {
|
1140 |
+
$this->destinationTable = $destinationTable;
|
1141 |
+
}
|
1142 |
+
public function getDestinationTable() {
|
1143 |
+
return $this->destinationTable;
|
1144 |
+
}
|
1145 |
+
public function setSourceTable(Google_TableReference $sourceTable) {
|
1146 |
+
$this->sourceTable = $sourceTable;
|
1147 |
+
}
|
1148 |
+
public function getSourceTable() {
|
1149 |
+
return $this->sourceTable;
|
1150 |
+
}
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
class Google_JobList extends Google_Model {
|
1154 |
+
public $nextPageToken;
|
1155 |
+
public $totalItems;
|
1156 |
+
public $kind;
|
1157 |
+
public $etag;
|
1158 |
+
protected $__jobsType = 'Google_JobListJobs';
|
1159 |
+
protected $__jobsDataType = 'array';
|
1160 |
+
public $jobs;
|
1161 |
+
public function setNextPageToken($nextPageToken) {
|
1162 |
+
$this->nextPageToken = $nextPageToken;
|
1163 |
+
}
|
1164 |
+
public function getNextPageToken() {
|
1165 |
+
return $this->nextPageToken;
|
1166 |
+
}
|
1167 |
+
public function setTotalItems($totalItems) {
|
1168 |
+
$this->totalItems = $totalItems;
|
1169 |
+
}
|
1170 |
+
public function getTotalItems() {
|
1171 |
+
return $this->totalItems;
|
1172 |
+
}
|
1173 |
+
public function setKind($kind) {
|
1174 |
+
$this->kind = $kind;
|
1175 |
+
}
|
1176 |
+
public function getKind() {
|
1177 |
+
return $this->kind;
|
1178 |
+
}
|
1179 |
+
public function setEtag($etag) {
|
1180 |
+
$this->etag = $etag;
|
1181 |
+
}
|
1182 |
+
public function getEtag() {
|
1183 |
+
return $this->etag;
|
1184 |
+
}
|
1185 |
+
public function setJobs(/* array(Google_JobListJobs) */ $jobs) {
|
1186 |
+
$this->assertIsArray($jobs, 'Google_JobListJobs', __METHOD__);
|
1187 |
+
$this->jobs = $jobs;
|
1188 |
+
}
|
1189 |
+
public function getJobs() {
|
1190 |
+
return $this->jobs;
|
1191 |
+
}
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
class Google_JobListJobs extends Google_Model {
|
1195 |
+
protected $__statusType = 'Google_JobStatus';
|
1196 |
+
protected $__statusDataType = '';
|
1197 |
+
public $status;
|
1198 |
+
public $kind;
|
1199 |
+
protected $__statisticsType = 'Google_JobStatistics';
|
1200 |
+
protected $__statisticsDataType = '';
|
1201 |
+
public $statistics;
|
1202 |
+
protected $__jobReferenceType = 'Google_JobReference';
|
1203 |
+
protected $__jobReferenceDataType = '';
|
1204 |
+
public $jobReference;
|
1205 |
+
public $state;
|
1206 |
+
protected $__configurationType = 'Google_JobConfiguration';
|
1207 |
+
protected $__configurationDataType = '';
|
1208 |
+
public $configuration;
|
1209 |
+
public $id;
|
1210 |
+
protected $__errorResultType = 'Google_ErrorProto';
|
1211 |
+
protected $__errorResultDataType = '';
|
1212 |
+
public $errorResult;
|
1213 |
+
public function setStatus(Google_JobStatus $status) {
|
1214 |
+
$this->status = $status;
|
1215 |
+
}
|
1216 |
+
public function getStatus() {
|
1217 |
+
return $this->status;
|
1218 |
+
}
|
1219 |
+
public function setKind($kind) {
|
1220 |
+
$this->kind = $kind;
|
1221 |
+
}
|
1222 |
+
public function getKind() {
|
1223 |
+
return $this->kind;
|
1224 |
+
}
|
1225 |
+
public function setStatistics(Google_JobStatistics $statistics) {
|
1226 |
+
$this->statistics = $statistics;
|
1227 |
+
}
|
1228 |
+
public function getStatistics() {
|
1229 |
+
return $this->statistics;
|
1230 |
+
}
|
1231 |
+
public function setJobReference(Google_JobReference $jobReference) {
|
1232 |
+
$this->jobReference = $jobReference;
|
1233 |
+
}
|
1234 |
+
public function getJobReference() {
|
1235 |
+
return $this->jobReference;
|
1236 |
+
}
|
1237 |
+
public function setState($state) {
|
1238 |
+
$this->state = $state;
|
1239 |
+
}
|
1240 |
+
public function getState() {
|
1241 |
+
return $this->state;
|
1242 |
+
}
|
1243 |
+
public function setConfiguration(Google_JobConfiguration $configuration) {
|
1244 |
+
$this->configuration = $configuration;
|
1245 |
+
}
|
1246 |
+
public function getConfiguration() {
|
1247 |
+
return $this->configuration;
|
1248 |
+
}
|
1249 |
+
public function setId($id) {
|
1250 |
+
$this->id = $id;
|
1251 |
+
}
|
1252 |
+
public function getId() {
|
1253 |
+
return $this->id;
|
1254 |
+
}
|
1255 |
+
public function setErrorResult(Google_ErrorProto $errorResult) {
|
1256 |
+
$this->errorResult = $errorResult;
|
1257 |
+
}
|
1258 |
+
public function getErrorResult() {
|
1259 |
+
return $this->errorResult;
|
1260 |
+
}
|
1261 |
+
}
|
1262 |
+
|
1263 |
+
class Google_JobReference extends Google_Model {
|
1264 |
+
public $projectId;
|
1265 |
+
public $jobId;
|
1266 |
+
public function setProjectId($projectId) {
|
1267 |
+
$this->projectId = $projectId;
|
1268 |
+
}
|
1269 |
+
public function getProjectId() {
|
1270 |
+
return $this->projectId;
|
1271 |
+
}
|
1272 |
+
public function setJobId($jobId) {
|
1273 |
+
$this->jobId = $jobId;
|
1274 |
+
}
|
1275 |
+
public function getJobId() {
|
1276 |
+
return $this->jobId;
|
1277 |
+
}
|
1278 |
+
}
|
1279 |
+
|
1280 |
+
class Google_JobStatistics extends Google_Model {
|
1281 |
+
public $endTime;
|
1282 |
+
public $totalBytesProcessed;
|
1283 |
+
public $startTime;
|
1284 |
+
public function setEndTime($endTime) {
|
1285 |
+
$this->endTime = $endTime;
|
1286 |
+
}
|
1287 |
+
public function getEndTime() {
|
1288 |
+
return $this->endTime;
|
1289 |
+
}
|
1290 |
+
public function setTotalBytesProcessed($totalBytesProcessed) {
|
1291 |
+
$this->totalBytesProcessed = $totalBytesProcessed;
|
1292 |
+
}
|
1293 |
+
public function getTotalBytesProcessed() {
|
1294 |
+
return $this->totalBytesProcessed;
|
1295 |
+
}
|
1296 |
+
public function setStartTime($startTime) {
|
1297 |
+
$this->startTime = $startTime;
|
1298 |
+
}
|
1299 |
+
public function getStartTime() {
|
1300 |
+
return $this->startTime;
|
1301 |
+
}
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
class Google_JobStatus extends Google_Model {
|
1305 |
+
public $state;
|
1306 |
+
protected $__errorsType = 'Google_ErrorProto';
|
1307 |
+
protected $__errorsDataType = 'array';
|
1308 |
+
public $errors;
|
1309 |
+
protected $__errorResultType = 'Google_ErrorProto';
|
1310 |
+
protected $__errorResultDataType = '';
|
1311 |
+
public $errorResult;
|
1312 |
+
public function setState($state) {
|
1313 |
+
$this->state = $state;
|
1314 |
+
}
|
1315 |
+
public function getState() {
|
1316 |
+
return $this->state;
|
1317 |
+
}
|
1318 |
+
public function setErrors(/* array(Google_ErrorProto) */ $errors) {
|
1319 |
+
$this->assertIsArray($errors, 'Google_ErrorProto', __METHOD__);
|
1320 |
+
$this->errors = $errors;
|
1321 |
+
}
|
1322 |
+
public function getErrors() {
|
1323 |
+
return $this->errors;
|
1324 |
+
}
|
1325 |
+
public function setErrorResult(Google_ErrorProto $errorResult) {
|
1326 |
+
$this->errorResult = $errorResult;
|
1327 |
+
}
|
1328 |
+
public function getErrorResult() {
|
1329 |
+
return $this->errorResult;
|
1330 |
+
}
|
1331 |
+
}
|
1332 |
+
|
1333 |
+
class Google_ProjectList extends Google_Model {
|
1334 |
+
public $nextPageToken;
|
1335 |
+
public $totalItems;
|
1336 |
+
public $kind;
|
1337 |
+
public $etag;
|
1338 |
+
protected $__projectsType = 'Google_ProjectListProjects';
|
1339 |
+
protected $__projectsDataType = 'array';
|
1340 |
+
public $projects;
|
1341 |
+
public function setNextPageToken($nextPageToken) {
|
1342 |
+
$this->nextPageToken = $nextPageToken;
|
1343 |
+
}
|
1344 |
+
public function getNextPageToken() {
|
1345 |
+
return $this->nextPageToken;
|
1346 |
+
}
|
1347 |
+
public function setTotalItems($totalItems) {
|
1348 |
+
$this->totalItems = $totalItems;
|
1349 |
+
}
|
1350 |
+
public function getTotalItems() {
|
1351 |
+
return $this->totalItems;
|
1352 |
+
}
|
1353 |
+
public function setKind($kind) {
|
1354 |
+
$this->kind = $kind;
|
1355 |
+
}
|
1356 |
+
public function getKind() {
|
1357 |
+
return $this->kind;
|
1358 |
+
}
|
1359 |
+
public function setEtag($etag) {
|
1360 |
+
$this->etag = $etag;
|
1361 |
+
}
|
1362 |
+
public function getEtag() {
|
1363 |
+
return $this->etag;
|
1364 |
+
}
|
1365 |
+
public function setProjects(/* array(Google_ProjectListProjects) */ $projects) {
|
1366 |
+
$this->assertIsArray($projects, 'Google_ProjectListProjects', __METHOD__);
|
1367 |
+
$this->projects = $projects;
|
1368 |
+
}
|
1369 |
+
public function getProjects() {
|
1370 |
+
return $this->projects;
|
1371 |
+
}
|
1372 |
+
}
|
1373 |
+
|
1374 |
+
class Google_ProjectListProjects extends Google_Model {
|
1375 |
+
public $friendlyName;
|
1376 |
+
public $kind;
|
1377 |
+
public $id;
|
1378 |
+
protected $__projectReferenceType = 'Google_ProjectReference';
|
1379 |
+
protected $__projectReferenceDataType = '';
|
1380 |
+
public $projectReference;
|
1381 |
+
public function setFriendlyName($friendlyName) {
|
1382 |
+
$this->friendlyName = $friendlyName;
|
1383 |
+
}
|
1384 |
+
public function getFriendlyName() {
|
1385 |
+
return $this->friendlyName;
|
1386 |
+
}
|
1387 |
+
public function setKind($kind) {
|
1388 |
+
$this->kind = $kind;
|
1389 |
+
}
|
1390 |
+
public function getKind() {
|
1391 |
+
return $this->kind;
|
1392 |
+
}
|
1393 |
+
public function setId($id) {
|
1394 |
+
$this->id = $id;
|
1395 |
+
}
|
1396 |
+
public function getId() {
|
1397 |
+
return $this->id;
|
1398 |
+
}
|
1399 |
+
public function setProjectReference(Google_ProjectReference $projectReference) {
|
1400 |
+
$this->projectReference = $projectReference;
|
1401 |
+
}
|
1402 |
+
public function getProjectReference() {
|
1403 |
+
return $this->projectReference;
|
1404 |
+
}
|
1405 |
+
}
|
1406 |
+
|
1407 |
+
class Google_ProjectReference extends Google_Model {
|
1408 |
+
public $projectId;
|
1409 |
+
public function setProjectId($projectId) {
|
1410 |
+
$this->projectId = $projectId;
|
1411 |
+
}
|
1412 |
+
public function getProjectId() {
|
1413 |
+
return $this->projectId;
|
1414 |
+
}
|
1415 |
+
}
|
1416 |
+
|
1417 |
+
class Google_QueryRequest extends Google_Model {
|
1418 |
+
public $timeoutMs;
|
1419 |
+
public $kind;
|
1420 |
+
public $dryRun;
|
1421 |
+
protected $__defaultDatasetType = 'Google_DatasetReference';
|
1422 |
+
protected $__defaultDatasetDataType = '';
|
1423 |
+
public $defaultDataset;
|
1424 |
+
public $maxResults;
|
1425 |
+
public $query;
|
1426 |
+
public function setTimeoutMs($timeoutMs) {
|
1427 |
+
$this->timeoutMs = $timeoutMs;
|
1428 |
+
}
|
1429 |
+
public function getTimeoutMs() {
|
1430 |
+
return $this->timeoutMs;
|
1431 |
+
}
|
1432 |
+
public function setKind($kind) {
|
1433 |
+
$this->kind = $kind;
|
1434 |
+
}
|
1435 |
+
public function getKind() {
|
1436 |
+
return $this->kind;
|
1437 |
+
}
|
1438 |
+
public function setDryRun($dryRun) {
|
1439 |
+
$this->dryRun = $dryRun;
|
1440 |
+
}
|
1441 |
+
public function getDryRun() {
|
1442 |
+
return $this->dryRun;
|
1443 |
+
}
|
1444 |
+
public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
|
1445 |
+
$this->defaultDataset = $defaultDataset;
|
1446 |
+
}
|
1447 |
+
public function getDefaultDataset() {
|
1448 |
+
return $this->defaultDataset;
|
1449 |
+
}
|
1450 |
+
public function setMaxResults($maxResults) {
|
1451 |
+
$this->maxResults = $maxResults;
|
1452 |
+
}
|
1453 |
+
public function getMaxResults() {
|
1454 |
+
return $this->maxResults;
|
1455 |
+
}
|
1456 |
+
public function setQuery($query) {
|
1457 |
+
$this->query = $query;
|
1458 |
+
}
|
1459 |
+
public function getQuery() {
|
1460 |
+
return $this->query;
|
1461 |
+
}
|
1462 |
+
}
|
1463 |
+
|
1464 |
+
class Google_QueryResponse extends Google_Model {
|
1465 |
+
public $kind;
|
1466 |
+
protected $__rowsType = 'Google_TableRow';
|
1467 |
+
protected $__rowsDataType = 'array';
|
1468 |
+
public $rows;
|
1469 |
+
protected $__jobReferenceType = 'Google_JobReference';
|
1470 |
+
protected $__jobReferenceDataType = '';
|
1471 |
+
public $jobReference;
|
1472 |
+
public $jobComplete;
|
1473 |
+
public $totalRows;
|
1474 |
+
protected $__schemaType = 'Google_TableSchema';
|
1475 |
+
protected $__schemaDataType = '';
|
1476 |
+
public $schema;
|
1477 |
+
public function setKind($kind) {
|
1478 |
+
$this->kind = $kind;
|
1479 |
+
}
|
1480 |
+
public function getKind() {
|
1481 |
+
return $this->kind;
|
1482 |
+
}
|
1483 |
+
public function setRows(/* array(Google_TableRow) */ $rows) {
|
1484 |
+
$this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
|
1485 |
+
$this->rows = $rows;
|
1486 |
+
}
|
1487 |
+
public function getRows() {
|
1488 |
+
return $this->rows;
|
1489 |
+
}
|
1490 |
+
public function setJobReference(Google_JobReference $jobReference) {
|
1491 |
+
$this->jobReference = $jobReference;
|
1492 |
+
}
|
1493 |
+
public function getJobReference() {
|
1494 |
+
return $this->jobReference;
|
1495 |
+
}
|
1496 |
+
public function setJobComplete($jobComplete) {
|
1497 |
+
$this->jobComplete = $jobComplete;
|
1498 |
+
}
|
1499 |
+
public function getJobComplete() {
|
1500 |
+
return $this->jobComplete;
|
1501 |
+
}
|
1502 |
+
public function setTotalRows($totalRows) {
|
1503 |
+
$this->totalRows = $totalRows;
|
1504 |
+
}
|
1505 |
+
public function getTotalRows() {
|
1506 |
+
return $this->totalRows;
|
1507 |
+
}
|
1508 |
+
public function setSchema(Google_TableSchema $schema) {
|
1509 |
+
$this->schema = $schema;
|
1510 |
+
}
|
1511 |
+
public function getSchema() {
|
1512 |
+
return $this->schema;
|
1513 |
+
}
|
1514 |
+
}
|
1515 |
+
|
1516 |
+
class Google_Table extends Google_Model {
|
1517 |
+
public $kind;
|
1518 |
+
public $lastModifiedTime;
|
1519 |
+
public $description;
|
1520 |
+
public $creationTime;
|
1521 |
+
protected $__tableReferenceType = 'Google_TableReference';
|
1522 |
+
protected $__tableReferenceDataType = '';
|
1523 |
+
public $tableReference;
|
1524 |
+
public $numRows;
|
1525 |
+
public $numBytes;
|
1526 |
+
public $etag;
|
1527 |
+
public $friendlyName;
|
1528 |
+
public $expirationTime;
|
1529 |
+
public $id;
|
1530 |
+
public $selfLink;
|
1531 |
+
protected $__schemaType = 'Google_TableSchema';
|
1532 |
+
protected $__schemaDataType = '';
|
1533 |
+
public $schema;
|
1534 |
+
public function setKind($kind) {
|
1535 |
+
$this->kind = $kind;
|
1536 |
+
}
|
1537 |
+
public function getKind() {
|
1538 |
+
return $this->kind;
|
1539 |
+
}
|
1540 |
+
public function setLastModifiedTime($lastModifiedTime) {
|
1541 |
+
$this->lastModifiedTime = $lastModifiedTime;
|
1542 |
+
}
|
1543 |
+
public function getLastModifiedTime() {
|
1544 |
+
return $this->lastModifiedTime;
|
1545 |
+
}
|
1546 |
+
public function setDescription($description) {
|
1547 |
+
$this->description = $description;
|
1548 |
+
}
|
1549 |
+
public function getDescription() {
|
1550 |
+
return $this->description;
|
1551 |
+
}
|
1552 |
+
public function setCreationTime($creationTime) {
|
1553 |
+
$this->creationTime = $creationTime;
|
1554 |
+
}
|
1555 |
+
public function getCreationTime() {
|
1556 |
+
return $this->creationTime;
|
1557 |
+
}
|
1558 |
+
public function setTableReference(Google_TableReference $tableReference) {
|
1559 |
+
$this->tableReference = $tableReference;
|
1560 |
+
}
|
1561 |
+
public function getTableReference() {
|
1562 |
+
return $this->tableReference;
|
1563 |
+
}
|
1564 |
+
public function setNumRows($numRows) {
|
1565 |
+
$this->numRows = $numRows;
|
1566 |
+
}
|
1567 |
+
public function getNumRows() {
|
1568 |
+
return $this->numRows;
|
1569 |
+
}
|
1570 |
+
public function setNumBytes($numBytes) {
|
1571 |
+
$this->numBytes = $numBytes;
|
1572 |
+
}
|
1573 |
+
public function getNumBytes() {
|
1574 |
+
return $this->numBytes;
|
1575 |
+
}
|
1576 |
+
public function setEtag($etag) {
|
1577 |
+
$this->etag = $etag;
|
1578 |
+
}
|
1579 |
+
public function getEtag() {
|
1580 |
+
return $this->etag;
|
1581 |
+
}
|
1582 |
+
public function setFriendlyName($friendlyName) {
|
1583 |
+
$this->friendlyName = $friendlyName;
|
1584 |
+
}
|
1585 |
+
public function getFriendlyName() {
|
1586 |
+
return $this->friendlyName;
|
1587 |
+
}
|
1588 |
+
public function setExpirationTime($expirationTime) {
|
1589 |
+
$this->expirationTime = $expirationTime;
|
1590 |
+
}
|
1591 |
+
public function getExpirationTime() {
|
1592 |
+
return $this->expirationTime;
|
1593 |
+
}
|
1594 |
+
public function setId($id) {
|
1595 |
+
$this->id = $id;
|
1596 |
+
}
|
1597 |
+
public function getId() {
|
1598 |
+
return $this->id;
|
1599 |
+
}
|
1600 |
+
public function setSelfLink($selfLink) {
|
1601 |
+
$this->selfLink = $selfLink;
|
1602 |
+
}
|
1603 |
+
public function getSelfLink() {
|
1604 |
+
return $this->selfLink;
|
1605 |
+
}
|
1606 |
+
public function setSchema(Google_TableSchema $schema) {
|
1607 |
+
$this->schema = $schema;
|
1608 |
+
}
|
1609 |
+
public function getSchema() {
|
1610 |
+
return $this->schema;
|
1611 |
+
}
|
1612 |
+
}
|
1613 |
+
|
1614 |
+
class Google_TableDataList extends Google_Model {
|
1615 |
+
public $pageToken;
|
1616 |
+
public $kind;
|
1617 |
+
public $etag;
|
1618 |
+
protected $__rowsType = 'Google_TableRow';
|
1619 |
+
protected $__rowsDataType = 'array';
|
1620 |
+
public $rows;
|
1621 |
+
public $totalRows;
|
1622 |
+
public function setPageToken($pageToken) {
|
1623 |
+
$this->pageToken = $pageToken;
|
1624 |
+
}
|
1625 |
+
public function getPageToken() {
|
1626 |
+
return $this->pageToken;
|
1627 |
+
}
|
1628 |
+
public function setKind($kind) {
|
1629 |
+
$this->kind = $kind;
|
1630 |
+
}
|
1631 |
+
public function getKind() {
|
1632 |
+
return $this->kind;
|
1633 |
+
}
|
1634 |
+
public function setEtag($etag) {
|
1635 |
+
$this->etag = $etag;
|
1636 |
+
}
|
1637 |
+
public function getEtag() {
|
1638 |
+
return $this->etag;
|
1639 |
+
}
|
1640 |
+
public function setRows(/* array(Google_TableRow) */ $rows) {
|
1641 |
+
$this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
|
1642 |
+
$this->rows = $rows;
|
1643 |
+
}
|
1644 |
+
public function getRows() {
|
1645 |
+
return $this->rows;
|
1646 |
+
}
|
1647 |
+
public function setTotalRows($totalRows) {
|
1648 |
+
$this->totalRows = $totalRows;
|
1649 |
+
}
|
1650 |
+
public function getTotalRows() {
|
1651 |
+
return $this->totalRows;
|
1652 |
+
}
|
1653 |
+
}
|
1654 |
+
|
1655 |
+
class Google_TableFieldSchema extends Google_Model {
|
1656 |
+
protected $__fieldsType = 'Google_TableFieldSchema';
|
1657 |
+
protected $__fieldsDataType = 'array';
|
1658 |
+
public $fields;
|
1659 |
+
public $type;
|
1660 |
+
public $mode;
|
1661 |
+
public $name;
|
1662 |
+
public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
|
1663 |
+
$this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
|
1664 |
+
$this->fields = $fields;
|
1665 |
+
}
|
1666 |
+
public function getFields() {
|
1667 |
+
return $this->fields;
|
1668 |
+
}
|
1669 |
+
public function setType($type) {
|
1670 |
+
$this->type = $type;
|
1671 |
+
}
|
1672 |
+
public function getType() {
|
1673 |
+
return $this->type;
|
1674 |
+
}
|
1675 |
+
public function setMode($mode) {
|
1676 |
+
$this->mode = $mode;
|
1677 |
+
}
|
1678 |
+
public function getMode() {
|
1679 |
+
return $this->mode;
|
1680 |
+
}
|
1681 |
+
public function setName($name) {
|
1682 |
+
$this->name = $name;
|
1683 |
+
}
|
1684 |
+
public function getName() {
|
1685 |
+
return $this->name;
|
1686 |
+
}
|
1687 |
+
}
|
1688 |
+
|
1689 |
+
class Google_TableList extends Google_Model {
|
1690 |
+
public $nextPageToken;
|
1691 |
+
protected $__tablesType = 'Google_TableListTables';
|
1692 |
+
protected $__tablesDataType = 'array';
|
1693 |
+
public $tables;
|
1694 |
+
public $kind;
|
1695 |
+
public $etag;
|
1696 |
+
public $totalItems;
|
1697 |
+
public function setNextPageToken($nextPageToken) {
|
1698 |
+
$this->nextPageToken = $nextPageToken;
|
1699 |
+
}
|
1700 |
+
public function getNextPageToken() {
|
1701 |
+
return $this->nextPageToken;
|
1702 |
+
}
|
1703 |
+
public function setTables(/* array(Google_TableListTables) */ $tables) {
|
1704 |
+
$this->assertIsArray($tables, 'Google_TableListTables', __METHOD__);
|
1705 |
+
$this->tables = $tables;
|
1706 |
+
}
|
1707 |
+
public function getTables() {
|
1708 |
+
return $this->tables;
|
1709 |
+
}
|
1710 |
+
public function setKind($kind) {
|
1711 |
+
$this->kind = $kind;
|
1712 |
+
}
|
1713 |
+
public function getKind() {
|
1714 |
+
return $this->kind;
|
1715 |
+
}
|
1716 |
+
public function setEtag($etag) {
|
1717 |
+
$this->etag = $etag;
|
1718 |
+
}
|
1719 |
+
public function getEtag() {
|
1720 |
+
return $this->etag;
|
1721 |
+
}
|
1722 |
+
public function setTotalItems($totalItems) {
|
1723 |
+
$this->totalItems = $totalItems;
|
1724 |
+
}
|
1725 |
+
public function getTotalItems() {
|
1726 |
+
return $this->totalItems;
|
1727 |
+
}
|
1728 |
+
}
|
1729 |
+
|
1730 |
+
class Google_TableListTables extends Google_Model {
|
1731 |
+
public $friendlyName;
|
1732 |
+
public $kind;
|
1733 |
+
public $id;
|
1734 |
+
protected $__tableReferenceType = 'Google_TableReference';
|
1735 |
+
protected $__tableReferenceDataType = '';
|
1736 |
+
public $tableReference;
|
1737 |
+
public function setFriendlyName($friendlyName) {
|
1738 |
+
$this->friendlyName = $friendlyName;
|
1739 |
+
}
|
1740 |
+
public function getFriendlyName() {
|
1741 |
+
return $this->friendlyName;
|
1742 |
+
}
|
1743 |
+
public function setKind($kind) {
|
1744 |
+
$this->kind = $kind;
|
1745 |
+
}
|
1746 |
+
public function getKind() {
|
1747 |
+
return $this->kind;
|
1748 |
+
}
|
1749 |
+
public function setId($id) {
|
1750 |
+
$this->id = $id;
|
1751 |
+
}
|
1752 |
+
public function getId() {
|
1753 |
+
return $this->id;
|
1754 |
+
}
|
1755 |
+
public function setTableReference(Google_TableReference $tableReference) {
|
1756 |
+
$this->tableReference = $tableReference;
|
1757 |
+
}
|
1758 |
+
public function getTableReference() {
|
1759 |
+
return $this->tableReference;
|
1760 |
+
}
|
1761 |
+
}
|
1762 |
+
|
1763 |
+
class Google_TableReference extends Google_Model {
|
1764 |
+
public $projectId;
|
1765 |
+
public $tableId;
|
1766 |
+
public $datasetId;
|
1767 |
+
public function setProjectId($projectId) {
|
1768 |
+
$this->projectId = $projectId;
|
1769 |
+
}
|
1770 |
+
public function getProjectId() {
|
1771 |
+
return $this->projectId;
|
1772 |
+
}
|
1773 |
+
public function setTableId($tableId) {
|
1774 |
+
$this->tableId = $tableId;
|
1775 |
+
}
|
1776 |
+
public function getTableId() {
|
1777 |
+
return $this->tableId;
|
1778 |
+
}
|
1779 |
+
public function setDatasetId($datasetId) {
|
1780 |
+
$this->datasetId = $datasetId;
|
1781 |
+
}
|
1782 |
+
public function getDatasetId() {
|
1783 |
+
return $this->datasetId;
|
1784 |
+
}
|
1785 |
+
}
|
1786 |
+
|
1787 |
+
class Google_TableRow extends Google_Model {
|
1788 |
+
protected $__fType = 'Google_TableRowF';
|
1789 |
+
protected $__fDataType = 'array';
|
1790 |
+
public $f;
|
1791 |
+
public function setF(/* array(Google_TableRowF) */ $f) {
|
1792 |
+
$this->assertIsArray($f, 'Google_TableRowF', __METHOD__);
|
1793 |
+
$this->f = $f;
|
1794 |
+
}
|
1795 |
+
public function getF() {
|
1796 |
+
return $this->f;
|
1797 |
+
}
|
1798 |
+
}
|
1799 |
+
|
1800 |
+
class Google_TableRowF extends Google_Model {
|
1801 |
+
public $v;
|
1802 |
+
public function setV($v) {
|
1803 |
+
$this->v = $v;
|
1804 |
+
}
|
1805 |
+
public function getV() {
|
1806 |
+
return $this->v;
|
1807 |
+
}
|
1808 |
+
}
|
1809 |
+
|
1810 |
+
class Google_TableSchema extends Google_Model {
|
1811 |
+
protected $__fieldsType = 'Google_TableFieldSchema';
|
1812 |
+
protected $__fieldsDataType = 'array';
|
1813 |
+
public $fields;
|
1814 |
+
public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
|
1815 |
+
$this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
|
1816 |
+
$this->fields = $fields;
|
1817 |
+
}
|
1818 |
+
public function getFields() {
|
1819 |
+
return $this->fields;
|
1820 |
+
}
|
1821 |
+
}
|
lib/SocialLogin/contrib/Google_BloggerService.php
ADDED
@@ -0,0 +1,1301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "blogs" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $bloggerService = new Google_BloggerService(...);
|
22 |
+
* $blogs = $bloggerService->blogs;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_BlogsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
|
30 |
+
*
|
31 |
+
* @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.
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
* @return Google_BlogList
|
34 |
+
*/
|
35 |
+
public function listByUser($userId, $optParams = array()) {
|
36 |
+
$params = array('userId' => $userId);
|
37 |
+
$params = array_merge($params, $optParams);
|
38 |
+
$data = $this->__call('listByUser', array($params));
|
39 |
+
if ($this->useObjects()) {
|
40 |
+
return new Google_BlogList($data);
|
41 |
+
} else {
|
42 |
+
return $data;
|
43 |
+
}
|
44 |
+
}
|
45 |
+
/**
|
46 |
+
* Retrieve a Blog by URL. (blogs.getByUrl)
|
47 |
+
*
|
48 |
+
* @param array $optParams Optional parameters.
|
49 |
+
*
|
50 |
+
* @opt_param string url The URL of the blog to retrieve.
|
51 |
+
* @return Google_Blog
|
52 |
+
*/
|
53 |
+
public function getByUrl($optParams = array()) {
|
54 |
+
$params = array();
|
55 |
+
$params = array_merge($params, $optParams);
|
56 |
+
$data = $this->__call('getByUrl', array($params));
|
57 |
+
if ($this->useObjects()) {
|
58 |
+
return new Google_Blog($data);
|
59 |
+
} else {
|
60 |
+
return $data;
|
61 |
+
}
|
62 |
+
}
|
63 |
+
/**
|
64 |
+
* Gets one blog by id. (blogs.get)
|
65 |
+
*
|
66 |
+
* @param string $blogId The ID of the blog to get.
|
67 |
+
* @param array $optParams Optional parameters.
|
68 |
+
*
|
69 |
+
* @opt_param string maxPosts Maximum number of posts to pull back with the blog.
|
70 |
+
* @return Google_Blog
|
71 |
+
*/
|
72 |
+
public function get($blogId, $optParams = array()) {
|
73 |
+
$params = array('blogId' => $blogId);
|
74 |
+
$params = array_merge($params, $optParams);
|
75 |
+
$data = $this->__call('get', array($params));
|
76 |
+
if ($this->useObjects()) {
|
77 |
+
return new Google_Blog($data);
|
78 |
+
} else {
|
79 |
+
return $data;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* The "posts" collection of methods.
|
86 |
+
* Typical usage is:
|
87 |
+
* <code>
|
88 |
+
* $bloggerService = new Google_BloggerService(...);
|
89 |
+
* $posts = $bloggerService->posts;
|
90 |
+
* </code>
|
91 |
+
*/
|
92 |
+
class Google_PostsServiceResource extends Google_ServiceResource {
|
93 |
+
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Add a post. (posts.insert)
|
97 |
+
*
|
98 |
+
* @param string $blogId ID of the blog to fetch the post from.
|
99 |
+
* @param Google_Post $postBody
|
100 |
+
* @param array $optParams Optional parameters.
|
101 |
+
* @return Google_Post
|
102 |
+
*/
|
103 |
+
public function insert($blogId, Google_Post $postBody, $optParams = array()) {
|
104 |
+
$params = array('blogId' => $blogId, 'postBody' => $postBody);
|
105 |
+
$params = array_merge($params, $optParams);
|
106 |
+
$data = $this->__call('insert', array($params));
|
107 |
+
if ($this->useObjects()) {
|
108 |
+
return new Google_Post($data);
|
109 |
+
} else {
|
110 |
+
return $data;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
/**
|
114 |
+
* Search for a post. (posts.search)
|
115 |
+
*
|
116 |
+
* @param string $blogId ID of the blog to fetch the post from.
|
117 |
+
* @param array $optParams Optional parameters.
|
118 |
+
*
|
119 |
+
* @opt_param string q Query terms to search this blog for matching posts.
|
120 |
+
* @return Google_PostList
|
121 |
+
*/
|
122 |
+
public function search($blogId, $optParams = array()) {
|
123 |
+
$params = array('blogId' => $blogId);
|
124 |
+
$params = array_merge($params, $optParams);
|
125 |
+
$data = $this->__call('search', array($params));
|
126 |
+
if ($this->useObjects()) {
|
127 |
+
return new Google_PostList($data);
|
128 |
+
} else {
|
129 |
+
return $data;
|
130 |
+
}
|
131 |
+
}
|
132 |
+
/**
|
133 |
+
* Get a post by id. (posts.get)
|
134 |
+
*
|
135 |
+
* @param string $blogId ID of the blog to fetch the post from.
|
136 |
+
* @param string $postId The ID of the post
|
137 |
+
* @param array $optParams Optional parameters.
|
138 |
+
*
|
139 |
+
* @opt_param string maxComments Maximum number of comments to pull back on a post.
|
140 |
+
* @return Google_Post
|
141 |
+
*/
|
142 |
+
public function get($blogId, $postId, $optParams = array()) {
|
143 |
+
$params = array('blogId' => $blogId, 'postId' => $postId);
|
144 |
+
$params = array_merge($params, $optParams);
|
145 |
+
$data = $this->__call('get', array($params));
|
146 |
+
if ($this->useObjects()) {
|
147 |
+
return new Google_Post($data);
|
148 |
+
} else {
|
149 |
+
return $data;
|
150 |
+
}
|
151 |
+
}
|
152 |
+
/**
|
153 |
+
* Retrieves a list of posts, possibly filtered. (posts.list)
|
154 |
+
*
|
155 |
+
* @param string $blogId ID of the blog to fetch posts from.
|
156 |
+
* @param array $optParams Optional parameters.
|
157 |
+
*
|
158 |
+
* @opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
|
159 |
+
* @opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
|
160 |
+
* @opt_param string labels Comma-separated list of labels to search for.
|
161 |
+
* @opt_param string maxResults Maximum number of posts to fetch.
|
162 |
+
* @opt_param string pageToken Continuation token if the request is paged.
|
163 |
+
* @opt_param bool fetchBodies Whether the body content of posts is included.
|
164 |
+
* @return Google_PostList
|
165 |
+
*/
|
166 |
+
public function listPosts($blogId, $optParams = array()) {
|
167 |
+
$params = array('blogId' => $blogId);
|
168 |
+
$params = array_merge($params, $optParams);
|
169 |
+
$data = $this->__call('list', array($params));
|
170 |
+
if ($this->useObjects()) {
|
171 |
+
return new Google_PostList($data);
|
172 |
+
} else {
|
173 |
+
return $data;
|
174 |
+
}
|
175 |
+
}
|
176 |
+
/**
|
177 |
+
* Update a post. (posts.update)
|
178 |
+
*
|
179 |
+
* @param string $blogId The ID of the Blog.
|
180 |
+
* @param string $postId The ID of the Post.
|
181 |
+
* @param Google_Post $postBody
|
182 |
+
* @param array $optParams Optional parameters.
|
183 |
+
* @return Google_Post
|
184 |
+
*/
|
185 |
+
public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
|
186 |
+
$params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
|
187 |
+
$params = array_merge($params, $optParams);
|
188 |
+
$data = $this->__call('update', array($params));
|
189 |
+
if ($this->useObjects()) {
|
190 |
+
return new Google_Post($data);
|
191 |
+
} else {
|
192 |
+
return $data;
|
193 |
+
}
|
194 |
+
}
|
195 |
+
/**
|
196 |
+
* Retrieve a Post by Path. (posts.getByPath)
|
197 |
+
*
|
198 |
+
* @param string $blogId ID of the blog to fetch the post from.
|
199 |
+
* @param array $optParams Optional parameters.
|
200 |
+
*
|
201 |
+
* @opt_param string path Path of the Post to retrieve.
|
202 |
+
* @opt_param string maxComments Maximum number of comments to pull back on a post.
|
203 |
+
* @return Google_Post
|
204 |
+
*/
|
205 |
+
public function getByPath($blogId, $optParams = array()) {
|
206 |
+
$params = array('blogId' => $blogId);
|
207 |
+
$params = array_merge($params, $optParams);
|
208 |
+
$data = $this->__call('getByPath', array($params));
|
209 |
+
if ($this->useObjects()) {
|
210 |
+
return new Google_Post($data);
|
211 |
+
} else {
|
212 |
+
return $data;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
/**
|
216 |
+
* Update a post. This method supports patch semantics. (posts.patch)
|
217 |
+
*
|
218 |
+
* @param string $blogId The ID of the Blog.
|
219 |
+
* @param string $postId The ID of the Post.
|
220 |
+
* @param Google_Post $postBody
|
221 |
+
* @param array $optParams Optional parameters.
|
222 |
+
* @return Google_Post
|
223 |
+
*/
|
224 |
+
public function patch($blogId, $postId, Google_Post $postBody, $optParams = array()) {
|
225 |
+
$params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
|
226 |
+
$params = array_merge($params, $optParams);
|
227 |
+
$data = $this->__call('patch', array($params));
|
228 |
+
if ($this->useObjects()) {
|
229 |
+
return new Google_Post($data);
|
230 |
+
} else {
|
231 |
+
return $data;
|
232 |
+
}
|
233 |
+
}
|
234 |
+
/**
|
235 |
+
* Delete a post by id. (posts.delete)
|
236 |
+
*
|
237 |
+
* @param string $blogId The Id of the Blog.
|
238 |
+
* @param string $postId The ID of the Post.
|
239 |
+
* @param array $optParams Optional parameters.
|
240 |
+
*/
|
241 |
+
public function delete($blogId, $postId, $optParams = array()) {
|
242 |
+
$params = array('blogId' => $blogId, 'postId' => $postId);
|
243 |
+
$params = array_merge($params, $optParams);
|
244 |
+
$data = $this->__call('delete', array($params));
|
245 |
+
return $data;
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* The "pages" collection of methods.
|
251 |
+
* Typical usage is:
|
252 |
+
* <code>
|
253 |
+
* $bloggerService = new Google_BloggerService(...);
|
254 |
+
* $pages = $bloggerService->pages;
|
255 |
+
* </code>
|
256 |
+
*/
|
257 |
+
class Google_PagesServiceResource extends Google_ServiceResource {
|
258 |
+
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Retrieves pages for a blog, possibly filtered. (pages.list)
|
262 |
+
*
|
263 |
+
* @param string $blogId ID of the blog to fetch pages from.
|
264 |
+
* @param array $optParams Optional parameters.
|
265 |
+
*
|
266 |
+
* @opt_param bool fetchBodies Whether to retrieve the Page bodies.
|
267 |
+
* @return Google_PageList
|
268 |
+
*/
|
269 |
+
public function listPages($blogId, $optParams = array()) {
|
270 |
+
$params = array('blogId' => $blogId);
|
271 |
+
$params = array_merge($params, $optParams);
|
272 |
+
$data = $this->__call('list', array($params));
|
273 |
+
if ($this->useObjects()) {
|
274 |
+
return new Google_PageList($data);
|
275 |
+
} else {
|
276 |
+
return $data;
|
277 |
+
}
|
278 |
+
}
|
279 |
+
/**
|
280 |
+
* Gets one blog page by id. (pages.get)
|
281 |
+
*
|
282 |
+
* @param string $blogId ID of the blog containing the page.
|
283 |
+
* @param string $pageId The ID of the page to get.
|
284 |
+
* @param array $optParams Optional parameters.
|
285 |
+
* @return Google_Page
|
286 |
+
*/
|
287 |
+
public function get($blogId, $pageId, $optParams = array()) {
|
288 |
+
$params = array('blogId' => $blogId, 'pageId' => $pageId);
|
289 |
+
$params = array_merge($params, $optParams);
|
290 |
+
$data = $this->__call('get', array($params));
|
291 |
+
if ($this->useObjects()) {
|
292 |
+
return new Google_Page($data);
|
293 |
+
} else {
|
294 |
+
return $data;
|
295 |
+
}
|
296 |
+
}
|
297 |
+
}
|
298 |
+
|
299 |
+
/**
|
300 |
+
* The "comments" collection of methods.
|
301 |
+
* Typical usage is:
|
302 |
+
* <code>
|
303 |
+
* $bloggerService = new Google_BloggerService(...);
|
304 |
+
* $comments = $bloggerService->comments;
|
305 |
+
* </code>
|
306 |
+
*/
|
307 |
+
class Google_CommentsServiceResource extends Google_ServiceResource {
|
308 |
+
|
309 |
+
|
310 |
+
/**
|
311 |
+
* Retrieves the comments for a blog, possibly filtered. (comments.list)
|
312 |
+
*
|
313 |
+
* @param string $blogId ID of the blog to fetch comments from.
|
314 |
+
* @param string $postId ID of the post to fetch posts from.
|
315 |
+
* @param array $optParams Optional parameters.
|
316 |
+
*
|
317 |
+
* @opt_param string startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
|
318 |
+
* @opt_param string endDate Latest date of comment to fetch, a date-time with RFC 3339 formatting.
|
319 |
+
* @opt_param string maxResults Maximum number of comments to include in the result.
|
320 |
+
* @opt_param string pageToken Continuation token if request is paged.
|
321 |
+
* @opt_param bool fetchBodies Whether the body content of the comments is included.
|
322 |
+
* @return Google_CommentList
|
323 |
+
*/
|
324 |
+
public function listComments($blogId, $postId, $optParams = array()) {
|
325 |
+
$params = array('blogId' => $blogId, 'postId' => $postId);
|
326 |
+
$params = array_merge($params, $optParams);
|
327 |
+
$data = $this->__call('list', array($params));
|
328 |
+
if ($this->useObjects()) {
|
329 |
+
return new Google_CommentList($data);
|
330 |
+
} else {
|
331 |
+
return $data;
|
332 |
+
}
|
333 |
+
}
|
334 |
+
/**
|
335 |
+
* Gets one comment by id. (comments.get)
|
336 |
+
*
|
337 |
+
* @param string $blogId ID of the blog to containing the comment.
|
338 |
+
* @param string $postId ID of the post to fetch posts from.
|
339 |
+
* @param string $commentId The ID of the comment to get.
|
340 |
+
* @param array $optParams Optional parameters.
|
341 |
+
* @return Google_Comment
|
342 |
+
*/
|
343 |
+
public function get($blogId, $postId, $commentId, $optParams = array()) {
|
344 |
+
$params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
|
345 |
+
$params = array_merge($params, $optParams);
|
346 |
+
$data = $this->__call('get', array($params));
|
347 |
+
if ($this->useObjects()) {
|
348 |
+
return new Google_Comment($data);
|
349 |
+
} else {
|
350 |
+
return $data;
|
351 |
+
}
|
352 |
+
}
|
353 |
+
}
|
354 |
+
|
355 |
+
/**
|
356 |
+
* The "users" collection of methods.
|
357 |
+
* Typical usage is:
|
358 |
+
* <code>
|
359 |
+
* $bloggerService = new Google_BloggerService(...);
|
360 |
+
* $users = $bloggerService->users;
|
361 |
+
* </code>
|
362 |
+
*/
|
363 |
+
class Google_UsersServiceResource extends Google_ServiceResource {
|
364 |
+
|
365 |
+
|
366 |
+
/**
|
367 |
+
* Gets one user by id. (users.get)
|
368 |
+
*
|
369 |
+
* @param string $userId The ID of the user to get.
|
370 |
+
* @param array $optParams Optional parameters.
|
371 |
+
* @return Google_User
|
372 |
+
*/
|
373 |
+
public function get($userId, $optParams = array()) {
|
374 |
+
$params = array('userId' => $userId);
|
375 |
+
$params = array_merge($params, $optParams);
|
376 |
+
$data = $this->__call('get', array($params));
|
377 |
+
if ($this->useObjects()) {
|
378 |
+
return new Google_User($data);
|
379 |
+
} else {
|
380 |
+
return $data;
|
381 |
+
}
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
+
/**
|
386 |
+
* Service definition for Google_Blogger (v3).
|
387 |
+
*
|
388 |
+
* <p>
|
389 |
+
* API for access to the data within Blogger.
|
390 |
+
* </p>
|
391 |
+
*
|
392 |
+
* <p>
|
393 |
+
* For more information about this service, see the
|
394 |
+
* <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">API Documentation</a>
|
395 |
+
* </p>
|
396 |
+
*
|
397 |
+
* @author Google, Inc.
|
398 |
+
*/
|
399 |
+
class Google_BloggerService extends Google_Service {
|
400 |
+
public $blogs;
|
401 |
+
public $posts;
|
402 |
+
public $pages;
|
403 |
+
public $comments;
|
404 |
+
public $users;
|
405 |
+
/**
|
406 |
+
* Constructs the internal representation of the Blogger service.
|
407 |
+
*
|
408 |
+
* @param Google_Client $client
|
409 |
+
*/
|
410 |
+
public function __construct(Google_Client $client) {
|
411 |
+
$this->servicePath = 'blogger/v3/';
|
412 |
+
$this->version = 'v3';
|
413 |
+
$this->serviceName = 'blogger';
|
414 |
+
|
415 |
+
$client->addService($this->serviceName, $this->version);
|
416 |
+
$this->blogs = new Google_BlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"listByUser": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.listByUser", "httpMethod": "GET", "path": "users/{userId}/blogs", "response": {"$ref": "BlogList"}}, "getByUrl": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"url": {"type": "string", "location": "query"}}, "response": {"$ref": "Blog"}, "httpMethod": "GET", "path": "blogs/byurl", "id": "blogger.blogs.getByUrl"}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxPosts": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.get", "httpMethod": "GET", "path": "blogs/{blogId}", "response": {"$ref": "Blog"}}}}', true));
|
417 |
+
$this->posts = new Google_PostsServiceResource($this, $this->serviceName, 'posts', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "POST", "path": "blogs/{blogId}/posts", "id": "blogger.posts.insert"}, "search": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.search", "httpMethod": "GET", "path": "blogs/{blogId}/posts/search", "response": {"$ref": "PostList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}", "response": {"$ref": "Post"}}, "list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "labels": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts", "response": {"$ref": "PostList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PUT", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.update"}, "getByPath": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"path": {"type": "string", "location": "query"}, "maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.getByPath", "httpMethod": "GET", "path": "blogs/{blogId}/posts/bypath", "response": {"$ref": "Post"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PATCH", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/blogger"], "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.delete", "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
418 |
+
$this->pages = new Google_PagesServiceResource($this, $this->serviceName, 'pages', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.list", "httpMethod": "GET", "path": "blogs/{blogId}/pages", "response": {"$ref": "PageList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"pageId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.get", "httpMethod": "GET", "path": "blogs/{blogId}/pages/{pageId}", "response": {"$ref": "Page"}}}}', true));
|
419 |
+
$this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "postId": {"required": true, "type": "string", "location": "path"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
|
420 |
+
$this->users = new Google_UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.get", "httpMethod": "GET", "path": "users/{userId}", "response": {"$ref": "User"}}}}', true));
|
421 |
+
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
class Google_Blog extends Google_Model {
|
426 |
+
public $kind;
|
427 |
+
public $description;
|
428 |
+
protected $__localeType = 'Google_BlogLocale';
|
429 |
+
protected $__localeDataType = '';
|
430 |
+
public $locale;
|
431 |
+
protected $__postsType = 'Google_BlogPosts';
|
432 |
+
protected $__postsDataType = '';
|
433 |
+
public $posts;
|
434 |
+
public $customMetaData;
|
435 |
+
public $updated;
|
436 |
+
protected $__pagesType = 'Google_BlogPages';
|
437 |
+
protected $__pagesDataType = '';
|
438 |
+
public $pages;
|
439 |
+
public $url;
|
440 |
+
public $published;
|
441 |
+
public $id;
|
442 |
+
public $selfLink;
|
443 |
+
public $name;
|
444 |
+
public function setKind($kind) {
|
445 |
+
$this->kind = $kind;
|
446 |
+
}
|
447 |
+
public function getKind() {
|
448 |
+
return $this->kind;
|
449 |
+
}
|
450 |
+
public function setDescription($description) {
|
451 |
+
$this->description = $description;
|
452 |
+
}
|
453 |
+
public function getDescription() {
|
454 |
+
return $this->description;
|
455 |
+
}
|
456 |
+
public function setLocale(Google_BlogLocale $locale) {
|
457 |
+
$this->locale = $locale;
|
458 |
+
}
|
459 |
+
public function getLocale() {
|
460 |
+
return $this->locale;
|
461 |
+
}
|
462 |
+
public function setPosts(Google_BlogPosts $posts) {
|
463 |
+
$this->posts = $posts;
|
464 |
+
}
|
465 |
+
public function getPosts() {
|
466 |
+
return $this->posts;
|
467 |
+
}
|
468 |
+
public function setCustomMetaData($customMetaData) {
|
469 |
+
$this->customMetaData = $customMetaData;
|
470 |
+
}
|
471 |
+
public function getCustomMetaData() {
|
472 |
+
return $this->customMetaData;
|
473 |
+
}
|
474 |
+
public function setUpdated($updated) {
|
475 |
+
$this->updated = $updated;
|
476 |
+
}
|
477 |
+
public function getUpdated() {
|
478 |
+
return $this->updated;
|
479 |
+
}
|
480 |
+
public function setPages(Google_BlogPages $pages) {
|
481 |
+
$this->pages = $pages;
|
482 |
+
}
|
483 |
+
public function getPages() {
|
484 |
+
return $this->pages;
|
485 |
+
}
|
486 |
+
public function setUrl($url) {
|
487 |
+
$this->url = $url;
|
488 |
+
}
|
489 |
+
public function getUrl() {
|
490 |
+
return $this->url;
|
491 |
+
}
|
492 |
+
public function setPublished($published) {
|
493 |
+
$this->published = $published;
|
494 |
+
}
|
495 |
+
public function getPublished() {
|
496 |
+
return $this->published;
|
497 |
+
}
|
498 |
+
public function setId($id) {
|
499 |
+
$this->id = $id;
|
500 |
+
}
|
501 |
+
public function getId() {
|
502 |
+
return $this->id;
|
503 |
+
}
|
504 |
+
public function setSelfLink($selfLink) {
|
505 |
+
$this->selfLink = $selfLink;
|
506 |
+
}
|
507 |
+
public function getSelfLink() {
|
508 |
+
return $this->selfLink;
|
509 |
+
}
|
510 |
+
public function setName($name) {
|
511 |
+
$this->name = $name;
|
512 |
+
}
|
513 |
+
public function getName() {
|
514 |
+
return $this->name;
|
515 |
+
}
|
516 |
+
}
|
517 |
+
|
518 |
+
class Google_BlogList extends Google_Model {
|
519 |
+
protected $__itemsType = 'Google_Blog';
|
520 |
+
protected $__itemsDataType = 'array';
|
521 |
+
public $items;
|
522 |
+
public $kind;
|
523 |
+
public function setItems(/* array(Google_Blog) */ $items) {
|
524 |
+
$this->assertIsArray($items, 'Google_Blog', __METHOD__);
|
525 |
+
$this->items = $items;
|
526 |
+
}
|
527 |
+
public function getItems() {
|
528 |
+
return $this->items;
|
529 |
+
}
|
530 |
+
public function setKind($kind) {
|
531 |
+
$this->kind = $kind;
|
532 |
+
}
|
533 |
+
public function getKind() {
|
534 |
+
return $this->kind;
|
535 |
+
}
|
536 |
+
}
|
537 |
+
|
538 |
+
class Google_BlogLocale extends Google_Model {
|
539 |
+
public $country;
|
540 |
+
public $variant;
|
541 |
+
public $language;
|
542 |
+
public function setCountry($country) {
|
543 |
+
$this->country = $country;
|
544 |
+
}
|
545 |
+
public function getCountry() {
|
546 |
+
return $this->country;
|
547 |
+
}
|
548 |
+
public function setVariant($variant) {
|
549 |
+
$this->variant = $variant;
|
550 |
+
}
|
551 |
+
public function getVariant() {
|
552 |
+
return $this->variant;
|
553 |
+
}
|
554 |
+
public function setLanguage($language) {
|
555 |
+
$this->language = $language;
|
556 |
+
}
|
557 |
+
public function getLanguage() {
|
558 |
+
return $this->language;
|
559 |
+
}
|
560 |
+
}
|
561 |
+
|
562 |
+
class Google_BlogPages extends Google_Model {
|
563 |
+
public $totalItems;
|
564 |
+
public $selfLink;
|
565 |
+
public function setTotalItems($totalItems) {
|
566 |
+
$this->totalItems = $totalItems;
|
567 |
+
}
|
568 |
+
public function getTotalItems() {
|
569 |
+
return $this->totalItems;
|
570 |
+
}
|
571 |
+
public function setSelfLink($selfLink) {
|
572 |
+
$this->selfLink = $selfLink;
|
573 |
+
}
|
574 |
+
public function getSelfLink() {
|
575 |
+
return $this->selfLink;
|
576 |
+
}
|
577 |
+
}
|
578 |
+
|
579 |
+
class Google_BlogPosts extends Google_Model {
|
580 |
+
public $totalItems;
|
581 |
+
protected $__itemsType = 'Google_Post';
|
582 |
+
protected $__itemsDataType = 'array';
|
583 |
+
public $items;
|
584 |
+
public $selfLink;
|
585 |
+
public function setTotalItems($totalItems) {
|
586 |
+
$this->totalItems = $totalItems;
|
587 |
+
}
|
588 |
+
public function getTotalItems() {
|
589 |
+
return $this->totalItems;
|
590 |
+
}
|
591 |
+
public function setItems(/* array(Google_Post) */ $items) {
|
592 |
+
$this->assertIsArray($items, 'Google_Post', __METHOD__);
|
593 |
+
$this->items = $items;
|
594 |
+
}
|
595 |
+
public function getItems() {
|
596 |
+
return $this->items;
|
597 |
+
}
|
598 |
+
public function setSelfLink($selfLink) {
|
599 |
+
$this->selfLink = $selfLink;
|
600 |
+
}
|
601 |
+
public function getSelfLink() {
|
602 |
+
return $this->selfLink;
|
603 |
+
}
|
604 |
+
}
|
605 |
+
|
606 |
+
class Google_Comment extends Google_Model {
|
607 |
+
public $content;
|
608 |
+
public $kind;
|
609 |
+
protected $__inReplyToType = 'Google_CommentInReplyTo';
|
610 |
+
protected $__inReplyToDataType = '';
|
611 |
+
public $inReplyTo;
|
612 |
+
protected $__authorType = 'Google_CommentAuthor';
|
613 |
+
protected $__authorDataType = '';
|
614 |
+
public $author;
|
615 |
+
public $updated;
|
616 |
+
protected $__blogType = 'Google_CommentBlog';
|
617 |
+
protected $__blogDataType = '';
|
618 |
+
public $blog;
|
619 |
+
public $published;
|
620 |
+
protected $__postType = 'Google_CommentPost';
|
621 |
+
protected $__postDataType = '';
|
622 |
+
public $post;
|
623 |
+
public $id;
|
624 |
+
public $selfLink;
|
625 |
+
public function setContent($content) {
|
626 |
+
$this->content = $content;
|
627 |
+
}
|
628 |
+
public function getContent() {
|
629 |
+
return $this->content;
|
630 |
+
}
|
631 |
+
public function setKind($kind) {
|
632 |
+
$this->kind = $kind;
|
633 |
+
}
|
634 |
+
public function getKind() {
|
635 |
+
return $this->kind;
|
636 |
+
}
|
637 |
+
public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
|
638 |
+
$this->inReplyTo = $inReplyTo;
|
639 |
+
}
|
640 |
+
public function getInReplyTo() {
|
641 |
+
return $this->inReplyTo;
|
642 |
+
}
|
643 |
+
public function setAuthor(Google_CommentAuthor $author) {
|
644 |
+
$this->author = $author;
|
645 |
+
}
|
646 |
+
public function getAuthor() {
|
647 |
+
return $this->author;
|
648 |
+
}
|
649 |
+
public function setUpdated($updated) {
|
650 |
+
$this->updated = $updated;
|
651 |
+
}
|
652 |
+
public function getUpdated() {
|
653 |
+
return $this->updated;
|
654 |
+
}
|
655 |
+
public function setBlog(Google_CommentBlog $blog) {
|
656 |
+
$this->blog = $blog;
|
657 |
+
}
|
658 |
+
public function getBlog() {
|
659 |
+
return $this->blog;
|
660 |
+
}
|
661 |
+
public function setPublished($published) {
|
662 |
+
$this->published = $published;
|
663 |
+
}
|
664 |
+
public function getPublished() {
|
665 |
+
return $this->published;
|
666 |
+
}
|
667 |
+
public function setPost(Google_CommentPost $post) {
|
668 |
+
$this->post = $post;
|
669 |
+
}
|
670 |
+
public function getPost() {
|
671 |
+
return $this->post;
|
672 |
+
}
|
673 |
+
public function setId($id) {
|
674 |
+
$this->id = $id;
|
675 |
+
}
|
676 |
+
public function getId() {
|
677 |
+
return $this->id;
|
678 |
+
}
|
679 |
+
public function setSelfLink($selfLink) {
|
680 |
+
$this->selfLink = $selfLink;
|
681 |
+
}
|
682 |
+
public function getSelfLink() {
|
683 |
+
return $this->selfLink;
|
684 |
+
}
|
685 |
+
}
|
686 |
+
|
687 |
+
class Google_CommentAuthor extends Google_Model {
|
688 |
+
public $url;
|
689 |
+
protected $__imageType = 'Google_CommentAuthorImage';
|
690 |
+
protected $__imageDataType = '';
|
691 |
+
public $image;
|
692 |
+
public $displayName;
|
693 |
+
public $id;
|
694 |
+
public function setUrl($url) {
|
695 |
+
$this->url = $url;
|
696 |
+
}
|
697 |
+
public function getUrl() {
|
698 |
+
return $this->url;
|
699 |
+
}
|
700 |
+
public function setImage(Google_CommentAuthorImage $image) {
|
701 |
+
$this->image = $image;
|
702 |
+
}
|
703 |
+
public function getImage() {
|
704 |
+
return $this->image;
|
705 |
+
}
|
706 |
+
public function setDisplayName($displayName) {
|
707 |
+
$this->displayName = $displayName;
|
708 |
+
}
|
709 |
+
public function getDisplayName() {
|
710 |
+
return $this->displayName;
|
711 |
+
}
|
712 |
+
public function setId($id) {
|
713 |
+
$this->id = $id;
|
714 |
+
}
|
715 |
+
public function getId() {
|
716 |
+
return $this->id;
|
717 |
+
}
|
718 |
+
}
|
719 |
+
|
720 |
+
class Google_CommentAuthorImage extends Google_Model {
|
721 |
+
public $url;
|
722 |
+
public function setUrl($url) {
|
723 |
+
$this->url = $url;
|
724 |
+
}
|
725 |
+
public function getUrl() {
|
726 |
+
return $this->url;
|
727 |
+
}
|
728 |
+
}
|
729 |
+
|
730 |
+
class Google_CommentBlog extends Google_Model {
|
731 |
+
public $id;
|
732 |
+
public function setId($id) {
|
733 |
+
$this->id = $id;
|
734 |
+
}
|
735 |
+
public function getId() {
|
736 |
+
return $this->id;
|
737 |
+
}
|
738 |
+
}
|
739 |
+
|
740 |
+
class Google_CommentInReplyTo extends Google_Model {
|
741 |
+
public $id;
|
742 |
+
public function setId($id) {
|
743 |
+
$this->id = $id;
|
744 |
+
}
|
745 |
+
public function getId() {
|
746 |
+
return $this->id;
|
747 |
+
}
|
748 |
+
}
|
749 |
+
|
750 |
+
class Google_CommentList extends Google_Model {
|
751 |
+
public $nextPageToken;
|
752 |
+
protected $__itemsType = 'Google_Comment';
|
753 |
+
protected $__itemsDataType = 'array';
|
754 |
+
public $items;
|
755 |
+
public $kind;
|
756 |
+
public $prevPageToken;
|
757 |
+
public function setNextPageToken($nextPageToken) {
|
758 |
+
$this->nextPageToken = $nextPageToken;
|
759 |
+
}
|
760 |
+
public function getNextPageToken() {
|
761 |
+
return $this->nextPageToken;
|
762 |
+
}
|
763 |
+
public function setItems(/* array(Google_Comment) */ $items) {
|
764 |
+
$this->assertIsArray($items, 'Google_Comment', __METHOD__);
|
765 |
+
$this->items = $items;
|
766 |
+
}
|
767 |
+
public function getItems() {
|
768 |
+
return $this->items;
|
769 |
+
}
|
770 |
+
public function setKind($kind) {
|
771 |
+
$this->kind = $kind;
|
772 |
+
}
|
773 |
+
public function getKind() {
|
774 |
+
return $this->kind;
|
775 |
+
}
|
776 |
+
public function setPrevPageToken($prevPageToken) {
|
777 |
+
$this->prevPageToken = $prevPageToken;
|
778 |
+
}
|
779 |
+
public function getPrevPageToken() {
|
780 |
+
return $this->prevPageToken;
|
781 |
+
}
|
782 |
+
}
|
783 |
+
|
784 |
+
class Google_CommentPost extends Google_Model {
|
785 |
+
public $id;
|
786 |
+
public function setId($id) {
|
787 |
+
$this->id = $id;
|
788 |
+
}
|
789 |
+
public function getId() {
|
790 |
+
return $this->id;
|
791 |
+
}
|
792 |
+
}
|
793 |
+
|
794 |
+
class Google_Page extends Google_Model {
|
795 |
+
public $content;
|
796 |
+
public $kind;
|
797 |
+
protected $__authorType = 'Google_PageAuthor';
|
798 |
+
protected $__authorDataType = '';
|
799 |
+
public $author;
|
800 |
+
public $url;
|
801 |
+
public $title;
|
802 |
+
public $updated;
|
803 |
+
protected $__blogType = 'Google_PageBlog';
|
804 |
+
protected $__blogDataType = '';
|
805 |
+
public $blog;
|
806 |
+
public $published;
|
807 |
+
public $id;
|
808 |
+
public $selfLink;
|
809 |
+
public function setContent($content) {
|
810 |
+
$this->content = $content;
|
811 |
+
}
|
812 |
+
public function getContent() {
|
813 |
+
return $this->content;
|
814 |
+
}
|
815 |
+
public function setKind($kind) {
|
816 |
+
$this->kind = $kind;
|
817 |
+
}
|
818 |
+
public function getKind() {
|
819 |
+
return $this->kind;
|
820 |
+
}
|
821 |
+
public function setAuthor(Google_PageAuthor $author) {
|
822 |
+
$this->author = $author;
|
823 |
+
}
|
824 |
+
public function getAuthor() {
|
825 |
+
return $this->author;
|
826 |
+
}
|
827 |
+
public function setUrl($url) {
|
828 |
+
$this->url = $url;
|
829 |
+
}
|
830 |
+
public function getUrl() {
|
831 |
+
return $this->url;
|
832 |
+
}
|
833 |
+
public function setTitle($title) {
|
834 |
+
$this->title = $title;
|
835 |
+
}
|
836 |
+
public function getTitle() {
|
837 |
+
return $this->title;
|
838 |
+
}
|
839 |
+
public function setUpdated($updated) {
|
840 |
+
$this->updated = $updated;
|
841 |
+
}
|
842 |
+
public function getUpdated() {
|
843 |
+
return $this->updated;
|
844 |
+
}
|
845 |
+
public function setBlog(Google_PageBlog $blog) {
|
846 |
+
$this->blog = $blog;
|
847 |
+
}
|
848 |
+
public function getBlog() {
|
849 |
+
return $this->blog;
|
850 |
+
}
|
851 |
+
public function setPublished($published) {
|
852 |
+
$this->published = $published;
|
853 |
+
}
|
854 |
+
public function getPublished() {
|
855 |
+
return $this->published;
|
856 |
+
}
|
857 |
+
public function setId($id) {
|
858 |
+
$this->id = $id;
|
859 |
+
}
|
860 |
+
public function getId() {
|
861 |
+
return $this->id;
|
862 |
+
}
|
863 |
+
public function setSelfLink($selfLink) {
|
864 |
+
$this->selfLink = $selfLink;
|
865 |
+
}
|
866 |
+
public function getSelfLink() {
|
867 |
+
return $this->selfLink;
|
868 |
+
}
|
869 |
+
}
|
870 |
+
|
871 |
+
class Google_PageAuthor extends Google_Model {
|
872 |
+
public $url;
|
873 |
+
protected $__imageType = 'Google_PageAuthorImage';
|
874 |
+
protected $__imageDataType = '';
|
875 |
+
public $image;
|
876 |
+
public $displayName;
|
877 |
+
public $id;
|
878 |
+
public function setUrl($url) {
|
879 |
+
$this->url = $url;
|
880 |
+
}
|
881 |
+
public function getUrl() {
|
882 |
+
return $this->url;
|
883 |
+
}
|
884 |
+
public function setImage(Google_PageAuthorImage $image) {
|
885 |
+
$this->image = $image;
|
886 |
+
}
|
887 |
+
public function getImage() {
|
888 |
+
return $this->image;
|
889 |
+
}
|
890 |
+
public function setDisplayName($displayName) {
|
891 |
+
$this->displayName = $displayName;
|
892 |
+
}
|
893 |
+
public function getDisplayName() {
|
894 |
+
return $this->displayName;
|
895 |
+
}
|
896 |
+
public function setId($id) {
|
897 |
+
$this->id = $id;
|
898 |
+
}
|
899 |
+
public function getId() {
|
900 |
+
return $this->id;
|
901 |
+
}
|
902 |
+
}
|
903 |
+
|
904 |
+
class Google_PageAuthorImage extends Google_Model {
|
905 |
+
public $url;
|
906 |
+
public function setUrl($url) {
|
907 |
+
$this->url = $url;
|
908 |
+
}
|
909 |
+
public function getUrl() {
|
910 |
+
return $this->url;
|
911 |
+
}
|
912 |
+
}
|
913 |
+
|
914 |
+
class Google_PageBlog extends Google_Model {
|
915 |
+
public $id;
|
916 |
+
public function setId($id) {
|
917 |
+
$this->id = $id;
|
918 |
+
}
|
919 |
+
public function getId() {
|
920 |
+
return $this->id;
|
921 |
+
}
|
922 |
+
}
|
923 |
+
|
924 |
+
class Google_PageList extends Google_Model {
|
925 |
+
protected $__itemsType = 'Google_Page';
|
926 |
+
protected $__itemsDataType = 'array';
|
927 |
+
public $items;
|
928 |
+
public $kind;
|
929 |
+
public function setItems(/* array(Google_Page) */ $items) {
|
930 |
+
$this->assertIsArray($items, 'Google_Page', __METHOD__);
|
931 |
+
$this->items = $items;
|
932 |
+
}
|
933 |
+
public function getItems() {
|
934 |
+
return $this->items;
|
935 |
+
}
|
936 |
+
public function setKind($kind) {
|
937 |
+
$this->kind = $kind;
|
938 |
+
}
|
939 |
+
public function getKind() {
|
940 |
+
return $this->kind;
|
941 |
+
}
|
942 |
+
}
|
943 |
+
|
944 |
+
class Google_Post extends Google_Model {
|
945 |
+
public $content;
|
946 |
+
public $kind;
|
947 |
+
protected $__authorType = 'Google_PostAuthor';
|
948 |
+
protected $__authorDataType = '';
|
949 |
+
public $author;
|
950 |
+
protected $__repliesType = 'Google_PostReplies';
|
951 |
+
protected $__repliesDataType = '';
|
952 |
+
public $replies;
|
953 |
+
public $labels;
|
954 |
+
public $customMetaData;
|
955 |
+
public $updated;
|
956 |
+
protected $__blogType = 'Google_PostBlog';
|
957 |
+
protected $__blogDataType = '';
|
958 |
+
public $blog;
|
959 |
+
public $url;
|
960 |
+
protected $__locationType = 'Google_PostLocation';
|
961 |
+
protected $__locationDataType = '';
|
962 |
+
public $location;
|
963 |
+
public $published;
|
964 |
+
public $title;
|
965 |
+
public $id;
|
966 |
+
public $selfLink;
|
967 |
+
public function setContent($content) {
|
968 |
+
$this->content = $content;
|
969 |
+
}
|
970 |
+
public function getContent() {
|
971 |
+
return $this->content;
|
972 |
+
}
|
973 |
+
public function setKind($kind) {
|
974 |
+
$this->kind = $kind;
|
975 |
+
}
|
976 |
+
public function getKind() {
|
977 |
+
return $this->kind;
|
978 |
+
}
|
979 |
+
public function setAuthor(Google_PostAuthor $author) {
|
980 |
+
$this->author = $author;
|
981 |
+
}
|
982 |
+
public function getAuthor() {
|
983 |
+
return $this->author;
|
984 |
+
}
|
985 |
+
public function setReplies(Google_PostReplies $replies) {
|
986 |
+
$this->replies = $replies;
|
987 |
+
}
|
988 |
+
public function getReplies() {
|
989 |
+
return $this->replies;
|
990 |
+
}
|
991 |
+
public function setLabels(/* array(Google_string) */ $labels) {
|
992 |
+
$this->assertIsArray($labels, 'Google_string', __METHOD__);
|
993 |
+
$this->labels = $labels;
|
994 |
+
}
|
995 |
+
public function getLabels() {
|
996 |
+
return $this->labels;
|
997 |
+
}
|
998 |
+
public function setCustomMetaData($customMetaData) {
|
999 |
+
$this->customMetaData = $customMetaData;
|
1000 |
+
}
|
1001 |
+
public function getCustomMetaData() {
|
1002 |
+
return $this->customMetaData;
|
1003 |
+
}
|
1004 |
+
public function setUpdated($updated) {
|
1005 |
+
$this->updated = $updated;
|
1006 |
+
}
|
1007 |
+
public function getUpdated() {
|
1008 |
+
return $this->updated;
|
1009 |
+
}
|
1010 |
+
public function setBlog(Google_PostBlog $blog) {
|
1011 |
+
$this->blog = $blog;
|
1012 |
+
}
|
1013 |
+
public function getBlog() {
|
1014 |
+
return $this->blog;
|
1015 |
+
}
|
1016 |
+
public function setUrl($url) {
|
1017 |
+
$this->url = $url;
|
1018 |
+
}
|
1019 |
+
public function getUrl() {
|
1020 |
+
return $this->url;
|
1021 |
+
}
|
1022 |
+
public function setLocation(Google_PostLocation $location) {
|
1023 |
+
$this->location = $location;
|
1024 |
+
}
|
1025 |
+
public function getLocation() {
|
1026 |
+
return $this->location;
|
1027 |
+
}
|
1028 |
+
public function setPublished($published) {
|
1029 |
+
$this->published = $published;
|
1030 |
+
}
|
1031 |
+
public function getPublished() {
|
1032 |
+
return $this->published;
|
1033 |
+
}
|
1034 |
+
public function setTitle($title) {
|
1035 |
+
$this->title = $title;
|
1036 |
+
}
|
1037 |
+
public function getTitle() {
|
1038 |
+
return $this->title;
|
1039 |
+
}
|
1040 |
+
public function setId($id) {
|
1041 |
+
$this->id = $id;
|
1042 |
+
}
|
1043 |
+
public function getId() {
|
1044 |
+
return $this->id;
|
1045 |
+
}
|
1046 |
+
public function setSelfLink($selfLink) {
|
1047 |
+
$this->selfLink = $selfLink;
|
1048 |
+
}
|
1049 |
+
public function getSelfLink() {
|
1050 |
+
return $this->selfLink;
|
1051 |
+
}
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
class Google_PostAuthor extends Google_Model {
|
1055 |
+
public $url;
|
1056 |
+
protected $__imageType = 'Google_PostAuthorImage';
|
1057 |
+
protected $__imageDataType = '';
|
1058 |
+
public $image;
|
1059 |
+
public $displayName;
|
1060 |
+
public $id;
|
1061 |
+
public function setUrl($url) {
|
1062 |
+
$this->url = $url;
|
1063 |
+
}
|
1064 |
+
public function getUrl() {
|
1065 |
+
return $this->url;
|
1066 |
+
}
|
1067 |
+
public function setImage(Google_PostAuthorImage $image) {
|
1068 |
+
$this->image = $image;
|
1069 |
+
}
|
1070 |
+
public function getImage() {
|
1071 |
+
return $this->image;
|
1072 |
+
}
|
1073 |
+
public function setDisplayName($displayName) {
|
1074 |
+
$this->displayName = $displayName;
|
1075 |
+
}
|
1076 |
+
public function getDisplayName() {
|
1077 |
+
return $this->displayName;
|
1078 |
+
}
|
1079 |
+
public function setId($id) {
|
1080 |
+
$this->id = $id;
|
1081 |
+
}
|
1082 |
+
public function getId() {
|
1083 |
+
return $this->id;
|
1084 |
+
}
|
1085 |
+
}
|
1086 |
+
|
1087 |
+
class Google_PostAuthorImage extends Google_Model {
|
1088 |
+
public $url;
|
1089 |
+
public function setUrl($url) {
|
1090 |
+
$this->url = $url;
|
1091 |
+
}
|
1092 |
+
public function getUrl() {
|
1093 |
+
return $this->url;
|
1094 |
+
}
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
class Google_PostBlog extends Google_Model {
|
1098 |
+
public $id;
|
1099 |
+
public function setId($id) {
|
1100 |
+
$this->id = $id;
|
1101 |
+
}
|
1102 |
+
public function getId() {
|
1103 |
+
return $this->id;
|
1104 |
+
}
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
class Google_PostList extends Google_Model {
|
1108 |
+
public $nextPageToken;
|
1109 |
+
protected $__itemsType = 'Google_Post';
|
1110 |
+
protected $__itemsDataType = 'array';
|
1111 |
+
public $items;
|
1112 |
+
public $kind;
|
1113 |
+
public $prevPageToken;
|
1114 |
+
public function setNextPageToken($nextPageToken) {
|
1115 |
+
$this->nextPageToken = $nextPageToken;
|
1116 |
+
}
|
1117 |
+
public function getNextPageToken() {
|
1118 |
+
return $this->nextPageToken;
|
1119 |
+
}
|
1120 |
+
public function setItems(/* array(Google_Post) */ $items) {
|
1121 |
+
$this->assertIsArray($items, 'Google_Post', __METHOD__);
|
1122 |
+
$this->items = $items;
|
1123 |
+
}
|
1124 |
+
public function getItems() {
|
1125 |
+
return $this->items;
|
1126 |
+
}
|
1127 |
+
public function setKind($kind) {
|
1128 |
+
$this->kind = $kind;
|
1129 |
+
}
|
1130 |
+
public function getKind() {
|
1131 |
+
return $this->kind;
|
1132 |
+
}
|
1133 |
+
public function setPrevPageToken($prevPageToken) {
|
1134 |
+
$this->prevPageToken = $prevPageToken;
|
1135 |
+
}
|
1136 |
+
public function getPrevPageToken() {
|
1137 |
+
return $this->prevPageToken;
|
1138 |
+
}
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
class Google_PostLocation extends Google_Model {
|
1142 |
+
public $lat;
|
1143 |
+
public $lng;
|
1144 |
+
public $span;
|
1145 |
+
public $name;
|
1146 |
+
public function setLat($lat) {
|
1147 |
+
$this->lat = $lat;
|
1148 |
+
}
|
1149 |
+
public function getLat() {
|
1150 |
+
return $this->lat;
|
1151 |
+
}
|
1152 |
+
public function setLng($lng) {
|
1153 |
+
$this->lng = $lng;
|
1154 |
+
}
|
1155 |
+
public function getLng() {
|
1156 |
+
return $this->lng;
|
1157 |
+
}
|
1158 |
+
public function setSpan($span) {
|
1159 |
+
$this->span = $span;
|
1160 |
+
}
|
1161 |
+
public function getSpan() {
|
1162 |
+
return $this->span;
|
1163 |
+
}
|
1164 |
+
public function setName($name) {
|
1165 |
+
$this->name = $name;
|
1166 |
+
}
|
1167 |
+
public function getName() {
|
1168 |
+
return $this->name;
|
1169 |
+
}
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
class Google_PostReplies extends Google_Model {
|
1173 |
+
public $totalItems;
|
1174 |
+
protected $__itemsType = 'Google_Comment';
|
1175 |
+
protected $__itemsDataType = 'array';
|
1176 |
+
public $items;
|
1177 |
+
public $selfLink;
|
1178 |
+
public function setTotalItems($totalItems) {
|
1179 |
+
$this->totalItems = $totalItems;
|
1180 |
+
}
|
1181 |
+
public function getTotalItems() {
|
1182 |
+
return $this->totalItems;
|
1183 |
+
}
|
1184 |
+
public function setItems(/* array(Google_Comment) */ $items) {
|
1185 |
+
$this->assertIsArray($items, 'Google_Comment', __METHOD__);
|
1186 |
+
$this->items = $items;
|
1187 |
+
}
|
1188 |
+
public function getItems() {
|
1189 |
+
return $this->items;
|
1190 |
+
}
|
1191 |
+
public function setSelfLink($selfLink) {
|
1192 |
+
$this->selfLink = $selfLink;
|
1193 |
+
}
|
1194 |
+
public function getSelfLink() {
|
1195 |
+
return $this->selfLink;
|
1196 |
+
}
|
1197 |
+
}
|
1198 |
+
|
1199 |
+
class Google_User extends Google_Model {
|
1200 |
+
public $about;
|
1201 |
+
public $displayName;
|
1202 |
+
public $created;
|
1203 |
+
protected $__localeType = 'Google_UserLocale';
|
1204 |
+
protected $__localeDataType = '';
|
1205 |
+
public $locale;
|
1206 |
+
protected $__blogsType = 'Google_UserBlogs';
|
1207 |
+
protected $__blogsDataType = '';
|
1208 |
+
public $blogs;
|
1209 |
+
public $kind;
|
1210 |
+
public $url;
|
1211 |
+
public $id;
|
1212 |
+
public $selfLink;
|
1213 |
+
public function setAbout($about) {
|
1214 |
+
$this->about = $about;
|
1215 |
+
}
|
1216 |
+
public function getAbout() {
|
1217 |
+
return $this->about;
|
1218 |
+
}
|
1219 |
+
public function setDisplayName($displayName) {
|
1220 |
+
$this->displayName = $displayName;
|
1221 |
+
}
|
1222 |
+
public function getDisplayName() {
|
1223 |
+
return $this->displayName;
|
1224 |
+
}
|
1225 |
+
public function setCreated($created) {
|
1226 |
+
$this->created = $created;
|
1227 |
+
}
|
1228 |
+
public function getCreated() {
|
1229 |
+
return $this->created;
|
1230 |
+
}
|
1231 |
+
public function setLocale(Google_UserLocale $locale) {
|
1232 |
+
$this->locale = $locale;
|
1233 |
+
}
|
1234 |
+
public function getLocale() {
|
1235 |
+
return $this->locale;
|
1236 |
+
}
|
1237 |
+
public function setBlogs(Google_UserBlogs $blogs) {
|
1238 |
+
$this->blogs = $blogs;
|
1239 |
+
}
|
1240 |
+
public function getBlogs() {
|
1241 |
+
return $this->blogs;
|
1242 |
+
}
|
1243 |
+
public function setKind($kind) {
|
1244 |
+
$this->kind = $kind;
|
1245 |
+
}
|
1246 |
+
public function getKind() {
|
1247 |
+
return $this->kind;
|
1248 |
+
}
|
1249 |
+
public function setUrl($url) {
|
1250 |
+
$this->url = $url;
|
1251 |
+
}
|
1252 |
+
public function getUrl() {
|
1253 |
+
return $this->url;
|
1254 |
+
}
|
1255 |
+
public function setId($id) {
|
1256 |
+
$this->id = $id;
|
1257 |
+
}
|
1258 |
+
public function getId() {
|
1259 |
+
return $this->id;
|
1260 |
+
}
|
1261 |
+
public function setSelfLink($selfLink) {
|
1262 |
+
$this->selfLink = $selfLink;
|
1263 |
+
}
|
1264 |
+
public function getSelfLink() {
|
1265 |
+
return $this->selfLink;
|
1266 |
+
}
|
1267 |
+
}
|
1268 |
+
|
1269 |
+
class Google_UserBlogs extends Google_Model {
|
1270 |
+
public $selfLink;
|
1271 |
+
public function setSelfLink($selfLink) {
|
1272 |
+
$this->selfLink = $selfLink;
|
1273 |
+
}
|
1274 |
+
public function getSelfLink() {
|
1275 |
+
return $this->selfLink;
|
1276 |
+
}
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
class Google_UserLocale extends Google_Model {
|
1280 |
+
public $country;
|
1281 |
+
public $variant;
|
1282 |
+
public $language;
|
1283 |
+
public function setCountry($country) {
|
1284 |
+
$this->country = $country;
|
1285 |
+
}
|
1286 |
+
public function getCountry() {
|
1287 |
+
return $this->country;
|
1288 |
+
}
|
1289 |
+
public function setVariant($variant) {
|
1290 |
+
$this->variant = $variant;
|
1291 |
+
}
|
1292 |
+
public function getVariant() {
|
1293 |
+
return $this->variant;
|
1294 |
+
}
|
1295 |
+
public function setLanguage($language) {
|
1296 |
+
$this->language = $language;
|
1297 |
+
}
|
1298 |
+
public function getLanguage() {
|
1299 |
+
return $this->language;
|
1300 |
+
}
|
1301 |
+
}
|
lib/SocialLogin/contrib/Google_BooksService.php
ADDED
@@ -0,0 +1,2793 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "layers" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $booksService = new Google_BooksService(...);
|
22 |
+
* $layers = $booksService->layers;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_LayersServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* List the layer summaries for a volume. (layers.list)
|
30 |
+
*
|
31 |
+
* @param string $volumeId The volume to retrieve layers for.
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
*
|
34 |
+
* @opt_param string pageToken The value of the nextToken from the previous page.
|
35 |
+
* @opt_param string contentVersion The content version for the requested volume.
|
36 |
+
* @opt_param string maxResults Maximum number of results to return
|
37 |
+
* @opt_param string source String to identify the originator of this request.
|
38 |
+
* @return Google_Layersummaries
|
39 |
+
*/
|
40 |
+
public function listLayers($volumeId, $optParams = array()) {
|
41 |
+
$params = array('volumeId' => $volumeId);
|
42 |
+
$params = array_merge($params, $optParams);
|
43 |
+
$data = $this->__call('list', array($params));
|
44 |
+
if ($this->useObjects()) {
|
45 |
+
return new Google_Layersummaries($data);
|
46 |
+
} else {
|
47 |
+
return $data;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
/**
|
51 |
+
* Gets the layer summary for a volume. (layers.get)
|
52 |
+
*
|
53 |
+
* @param string $volumeId The volume to retrieve layers for.
|
54 |
+
* @param string $summaryId The ID for the layer to get the summary for.
|
55 |
+
* @param array $optParams Optional parameters.
|
56 |
+
*
|
57 |
+
* @opt_param string source String to identify the originator of this request.
|
58 |
+
* @opt_param string contentVersion The content version for the requested volume.
|
59 |
+
* @return Google_Layersummary
|
60 |
+
*/
|
61 |
+
public function get($volumeId, $summaryId, $optParams = array()) {
|
62 |
+
$params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
|
63 |
+
$params = array_merge($params, $optParams);
|
64 |
+
$data = $this->__call('get', array($params));
|
65 |
+
if ($this->useObjects()) {
|
66 |
+
return new Google_Layersummary($data);
|
67 |
+
} else {
|
68 |
+
return $data;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* The "annotationData" collection of methods.
|
75 |
+
* Typical usage is:
|
76 |
+
* <code>
|
77 |
+
* $booksService = new Google_BooksService(...);
|
78 |
+
* $annotationData = $booksService->annotationData;
|
79 |
+
* </code>
|
80 |
+
*/
|
81 |
+
class Google_LayersAnnotationDataServiceResource extends Google_ServiceResource {
|
82 |
+
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Gets the annotation data for a volume and layer. (annotationData.list)
|
86 |
+
*
|
87 |
+
* @param string $volumeId The volume to retrieve annotation data for.
|
88 |
+
* @param string $layerId The ID for the layer to get the annotation data.
|
89 |
+
* @param string $contentVersion The content version for the requested volume.
|
90 |
+
* @param array $optParams Optional parameters.
|
91 |
+
*
|
92 |
+
* @opt_param int scale The requested scale for the image.
|
93 |
+
* @opt_param string source String to identify the originator of this request.
|
94 |
+
* @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
|
95 |
+
* @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
|
96 |
+
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
|
97 |
+
* @opt_param string maxResults Maximum number of results to return
|
98 |
+
* @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
|
99 |
+
* @opt_param string pageToken The value of the nextToken from the previous page.
|
100 |
+
* @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
|
101 |
+
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
|
102 |
+
* @return Google_Annotationsdata
|
103 |
+
*/
|
104 |
+
public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
|
105 |
+
$params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
|
106 |
+
$params = array_merge($params, $optParams);
|
107 |
+
$data = $this->__call('list', array($params));
|
108 |
+
if ($this->useObjects()) {
|
109 |
+
return new Google_Annotationsdata($data);
|
110 |
+
} else {
|
111 |
+
return $data;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
/**
|
115 |
+
* Gets the annotation data. (annotationData.get)
|
116 |
+
*
|
117 |
+
* @param string $volumeId The volume to retrieve annotations for.
|
118 |
+
* @param string $layerId The ID for the layer to get the annotations.
|
119 |
+
* @param string $annotationDataId The ID of the annotation data to retrieve.
|
120 |
+
* @param string $contentVersion The content version for the volume you are trying to retrieve.
|
121 |
+
* @param array $optParams Optional parameters.
|
122 |
+
*
|
123 |
+
* @opt_param int scale The requested scale for the image.
|
124 |
+
* @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
|
125 |
+
* @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
|
126 |
+
* @opt_param string source String to identify the originator of this request.
|
127 |
+
* @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
|
128 |
+
* @return Google_Annotationdata
|
129 |
+
*/
|
130 |
+
public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) {
|
131 |
+
$params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
|
132 |
+
$params = array_merge($params, $optParams);
|
133 |
+
$data = $this->__call('get', array($params));
|
134 |
+
if ($this->useObjects()) {
|
135 |
+
return new Google_Annotationdata($data);
|
136 |
+
} else {
|
137 |
+
return $data;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
}
|
141 |
+
/**
|
142 |
+
* The "volumeAnnotations" collection of methods.
|
143 |
+
* Typical usage is:
|
144 |
+
* <code>
|
145 |
+
* $booksService = new Google_BooksService(...);
|
146 |
+
* $volumeAnnotations = $booksService->volumeAnnotations;
|
147 |
+
* </code>
|
148 |
+
*/
|
149 |
+
class Google_LayersVolumeAnnotationsServiceResource extends Google_ServiceResource {
|
150 |
+
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
|
154 |
+
*
|
155 |
+
* @param string $volumeId The volume to retrieve annotations for.
|
156 |
+
* @param string $layerId The ID for the layer to get the annotations.
|
157 |
+
* @param string $contentVersion The content version for the requested volume.
|
158 |
+
* @param array $optParams Optional parameters.
|
159 |
+
*
|
160 |
+
* @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
|
161 |
+
* @opt_param string endPosition The end position to end retrieving data from.
|
162 |
+
* @opt_param string endOffset The end offset to end retrieving data from.
|
163 |
+
* @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
|
164 |
+
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
|
165 |
+
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
|
166 |
+
* @opt_param string maxResults Maximum number of results to return
|
167 |
+
* @opt_param string pageToken The value of the nextToken from the previous page.
|
168 |
+
* @opt_param string source String to identify the originator of this request.
|
169 |
+
* @opt_param string startOffset The start offset to start retrieving data from.
|
170 |
+
* @opt_param string startPosition The start position to start retrieving data from.
|
171 |
+
* @return Google_Volumeannotations
|
172 |
+
*/
|
173 |
+
public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
|
174 |
+
$params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
|
175 |
+
$params = array_merge($params, $optParams);
|
176 |
+
$data = $this->__call('list', array($params));
|
177 |
+
if ($this->useObjects()) {
|
178 |
+
return new Google_Volumeannotations($data);
|
179 |
+
} else {
|
180 |
+
return $data;
|
181 |
+
}
|
182 |
+
}
|
183 |
+
/**
|
184 |
+
* Gets the volume annotation. (volumeAnnotations.get)
|
185 |
+
*
|
186 |
+
* @param string $volumeId The volume to retrieve annotations for.
|
187 |
+
* @param string $layerId The ID for the layer to get the annotations.
|
188 |
+
* @param string $annotationId The ID of the volume annotation to retrieve.
|
189 |
+
* @param array $optParams Optional parameters.
|
190 |
+
*
|
191 |
+
* @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
|
192 |
+
* @opt_param string source String to identify the originator of this request.
|
193 |
+
* @return Google_Volumeannotation
|
194 |
+
*/
|
195 |
+
public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
|
196 |
+
$params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
|
197 |
+
$params = array_merge($params, $optParams);
|
198 |
+
$data = $this->__call('get', array($params));
|
199 |
+
if ($this->useObjects()) {
|
200 |
+
return new Google_Volumeannotation($data);
|
201 |
+
} else {
|
202 |
+
return $data;
|
203 |
+
}
|
204 |
+
}
|
205 |
+
}
|
206 |
+
|
207 |
+
/**
|
208 |
+
* The "bookshelves" collection of methods.
|
209 |
+
* Typical usage is:
|
210 |
+
* <code>
|
211 |
+
* $booksService = new Google_BooksService(...);
|
212 |
+
* $bookshelves = $booksService->bookshelves;
|
213 |
+
* </code>
|
214 |
+
*/
|
215 |
+
class Google_BookshelvesServiceResource extends Google_ServiceResource {
|
216 |
+
|
217 |
+
|
218 |
+
/**
|
219 |
+
* Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
|
220 |
+
*
|
221 |
+
* @param string $userId ID of user for whom to retrieve bookshelves.
|
222 |
+
* @param array $optParams Optional parameters.
|
223 |
+
*
|
224 |
+
* @opt_param string source String to identify the originator of this request.
|
225 |
+
* @return Google_Bookshelves
|
226 |
+
*/
|
227 |
+
public function listBookshelves($userId, $optParams = array()) {
|
228 |
+
$params = array('userId' => $userId);
|
229 |
+
$params = array_merge($params, $optParams);
|
230 |
+
$data = $this->__call('list', array($params));
|
231 |
+
if ($this->useObjects()) {
|
232 |
+
return new Google_Bookshelves($data);
|
233 |
+
} else {
|
234 |
+
return $data;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
/**
|
238 |
+
* Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
|
239 |
+
*
|
240 |
+
* @param string $userId ID of user for whom to retrieve bookshelves.
|
241 |
+
* @param string $shelf ID of bookshelf to retrieve.
|
242 |
+
* @param array $optParams Optional parameters.
|
243 |
+
*
|
244 |
+
* @opt_param string source String to identify the originator of this request.
|
245 |
+
* @return Google_Bookshelf
|
246 |
+
*/
|
247 |
+
public function get($userId, $shelf, $optParams = array()) {
|
248 |
+
$params = array('userId' => $userId, 'shelf' => $shelf);
|
249 |
+
$params = array_merge($params, $optParams);
|
250 |
+
$data = $this->__call('get', array($params));
|
251 |
+
if ($this->useObjects()) {
|
252 |
+
return new Google_Bookshelf($data);
|
253 |
+
} else {
|
254 |
+
return $data;
|
255 |
+
}
|
256 |
+
}
|
257 |
+
}
|
258 |
+
|
259 |
+
/**
|
260 |
+
* The "volumes" collection of methods.
|
261 |
+
* Typical usage is:
|
262 |
+
* <code>
|
263 |
+
* $booksService = new Google_BooksService(...);
|
264 |
+
* $volumes = $booksService->volumes;
|
265 |
+
* </code>
|
266 |
+
*/
|
267 |
+
class Google_BookshelvesVolumesServiceResource extends Google_ServiceResource {
|
268 |
+
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
|
272 |
+
*
|
273 |
+
* @param string $userId ID of user for whom to retrieve bookshelf volumes.
|
274 |
+
* @param string $shelf ID of bookshelf to retrieve volumes.
|
275 |
+
* @param array $optParams Optional parameters.
|
276 |
+
*
|
277 |
+
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
|
278 |
+
* @opt_param string maxResults Maximum number of results to return
|
279 |
+
* @opt_param string source String to identify the originator of this request.
|
280 |
+
* @opt_param string startIndex Index of the first element to return (starts at 0)
|
281 |
+
* @return Google_Volumes
|
282 |
+
*/
|
283 |
+
public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
|
284 |
+
$params = array('userId' => $userId, 'shelf' => $shelf);
|
285 |
+
$params = array_merge($params, $optParams);
|
286 |
+
$data = $this->__call('list', array($params));
|
287 |
+
if ($this->useObjects()) {
|
288 |
+
return new Google_Volumes($data);
|
289 |
+
} else {
|
290 |
+
return $data;
|
291 |
+
}
|
292 |
+
}
|
293 |
+
}
|
294 |
+
|
295 |
+
/**
|
296 |
+
* The "myconfig" collection of methods.
|
297 |
+
* Typical usage is:
|
298 |
+
* <code>
|
299 |
+
* $booksService = new Google_BooksService(...);
|
300 |
+
* $myconfig = $booksService->myconfig;
|
301 |
+
* </code>
|
302 |
+
*/
|
303 |
+
class Google_MyconfigServiceResource extends Google_ServiceResource {
|
304 |
+
|
305 |
+
|
306 |
+
/**
|
307 |
+
* Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
|
308 |
+
*
|
309 |
+
* @param string $volumeIds The volume(s) to release restrictions for.
|
310 |
+
* @param string $cpksver The device/version ID from which to release the restriction.
|
311 |
+
* @param array $optParams Optional parameters.
|
312 |
+
*
|
313 |
+
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
|
314 |
+
* @opt_param string source String to identify the originator of this request.
|
315 |
+
* @return Google_DownloadAccesses
|
316 |
+
*/
|
317 |
+
public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
|
318 |
+
$params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
|
319 |
+
$params = array_merge($params, $optParams);
|
320 |
+
$data = $this->__call('releaseDownloadAccess', array($params));
|
321 |
+
if ($this->useObjects()) {
|
322 |
+
return new Google_DownloadAccesses($data);
|
323 |
+
} else {
|
324 |
+
return $data;
|
325 |
+
}
|
326 |
+
}
|
327 |
+
/**
|
328 |
+
* Request concurrent and download access restrictions. (myconfig.requestAccess)
|
329 |
+
*
|
330 |
+
* @param string $source String to identify the originator of this request.
|
331 |
+
* @param string $volumeId The volume to request concurrent/download restrictions for.
|
332 |
+
* @param string $nonce The client nonce value.
|
333 |
+
* @param string $cpksver The device/version ID from which to request the restrictions.
|
334 |
+
* @param array $optParams Optional parameters.
|
335 |
+
*
|
336 |
+
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
|
337 |
+
* @return Google_RequestAccess
|
338 |
+
*/
|
339 |
+
public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
|
340 |
+
$params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
|
341 |
+
$params = array_merge($params, $optParams);
|
342 |
+
$data = $this->__call('requestAccess', array($params));
|
343 |
+
if ($this->useObjects()) {
|
344 |
+
return new Google_RequestAccess($data);
|
345 |
+
} else {
|
346 |
+
return $data;
|
347 |
+
}
|
348 |
+
}
|
349 |
+
/**
|
350 |
+
* Request downloaded content access for specified volumes on the My eBooks shelf.
|
351 |
+
* (myconfig.syncVolumeLicenses)
|
352 |
+
*
|
353 |
+
* @param string $source String to identify the originator of this request.
|
354 |
+
* @param string $nonce The client nonce value.
|
355 |
+
* @param string $cpksver The device/version ID from which to release the restriction.
|
356 |
+
* @param array $optParams Optional parameters.
|
357 |
+
*
|
358 |
+
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
|
359 |
+
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
|
360 |
+
* @opt_param string volumeIds The volume(s) to request download restrictions for.
|
361 |
+
* @return Google_Volumes
|
362 |
+
*/
|
363 |
+
public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
|
364 |
+
$params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
|
365 |
+
$params = array_merge($params, $optParams);
|
366 |
+
$data = $this->__call('syncVolumeLicenses', array($params));
|
367 |
+
if ($this->useObjects()) {
|
368 |
+
return new Google_Volumes($data);
|
369 |
+
} else {
|
370 |
+
return $data;
|
371 |
+
}
|
372 |
+
}
|
373 |
+
}
|
374 |
+
|
375 |
+
/**
|
376 |
+
* The "volumes" collection of methods.
|
377 |
+
* Typical usage is:
|
378 |
+
* <code>
|
379 |
+
* $booksService = new Google_BooksService(...);
|
380 |
+
* $volumes = $booksService->volumes;
|
381 |
+
* </code>
|
382 |
+
*/
|
383 |
+
class Google_VolumesServiceResource extends Google_ServiceResource {
|
384 |
+
|
385 |
+
|
386 |
+
/**
|
387 |
+
* Performs a book search. (volumes.list)
|
388 |
+
*
|
389 |
+
* @param string $q Full-text search query string.
|
390 |
+
* @param array $optParams Optional parameters.
|
391 |
+
*
|
392 |
+
* @opt_param string orderBy Sort search results.
|
393 |
+
* @opt_param string projection Restrict information returned to a set of selected fields.
|
394 |
+
* @opt_param string libraryRestrict Restrict search to this user's library.
|
395 |
+
* @opt_param string langRestrict Restrict results to books with this language code.
|
396 |
+
* @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
|
397 |
+
* @opt_param string printType Restrict to books or magazines.
|
398 |
+
* @opt_param string maxResults Maximum number of results to return.
|
399 |
+
* @opt_param string filter Filter search results.
|
400 |
+
* @opt_param string source String to identify the originator of this request.
|
401 |
+
* @opt_param string startIndex Index of the first result to return (starts at 0)
|
402 |
+
* @opt_param string download Restrict to volumes by download availability.
|
403 |
+
* @opt_param string partner Restrict and brand results for partner ID.
|
404 |
+
* @return Google_Volumes
|
405 |
+
*/
|
406 |
+
public function listVolumes($q, $optParams = array()) {
|
407 |
+
$params = array('q' => $q);
|
408 |
+
$params = array_merge($params, $optParams);
|
409 |
+
$data = $this->__call('list', array($params));
|
410 |
+
if ($this->useObjects()) {
|
411 |
+
return new Google_Volumes($data);
|
412 |
+
} else {
|
413 |
+
return $data;
|
414 |
+
}
|
415 |
+
}
|
416 |
+
/**
|
417 |
+
* Gets volume information for a single volume. (volumes.get)
|
418 |
+
*
|
419 |
+
* @param string $volumeId ID of volume to retrieve.
|
420 |
+
* @param array $optParams Optional parameters.
|
421 |
+
*
|
422 |
+
* @opt_param string source String to identify the originator of this request.
|
423 |
+
* @opt_param string country ISO-3166-1 code to override the IP-based location.
|
424 |
+
* @opt_param string projection Restrict information returned to a set of selected fields.
|
425 |
+
* @opt_param string partner Brand results for partner ID.
|
426 |
+
* @return Google_Volume
|
427 |
+
*/
|
428 |
+
public function get($volumeId, $optParams = array()) {
|
429 |
+
$params = array('volumeId' => $volumeId);
|
430 |
+
$params = array_merge($params, $optParams);
|
431 |
+
$data = $this->__call('get', array($params));
|
432 |
+
if ($this->useObjects()) {
|
433 |
+
return new Google_Volume($data);
|
434 |
+
} else {
|
435 |
+
return $data;
|
436 |
+
}
|
437 |
+
}
|
438 |
+
}
|
439 |
+
|
440 |
+
/**
|
441 |
+
* The "associated" collection of methods.
|
442 |
+
* Typical usage is:
|
443 |
+
* <code>
|
444 |
+
* $booksService = new Google_BooksService(...);
|
445 |
+
* $associated = $booksService->associated;
|
446 |
+
* </code>
|
447 |
+
*/
|
448 |
+
class Google_VolumesAssociatedServiceResource extends Google_ServiceResource {
|
449 |
+
|
450 |
+
|
451 |
+
/**
|
452 |
+
* Return a list of associated books. (associated.list)
|
453 |
+
*
|
454 |
+
* @param string $volumeId ID of the source volume.
|
455 |
+
* @param array $optParams Optional parameters.
|
456 |
+
*
|
457 |
+
* @opt_param string projection Restrict information returned to a set of selected fields.
|
458 |
+
* @opt_param string maxResults Maximum number of results to return.
|
459 |
+
* @opt_param string filter Filter search results.
|
460 |
+
* @opt_param string source String to identify the originator of this request.
|
461 |
+
* @opt_param string startIndex Index of the first result to return (starts at 0)
|
462 |
+
* @opt_param string association Association type.
|
463 |
+
* @return Google_Volumes
|
464 |
+
*/
|
465 |
+
public function listVolumesAssociated($volumeId, $optParams = array()) {
|
466 |
+
$params = array('volumeId' => $volumeId);
|
467 |
+
$params = array_merge($params, $optParams);
|
468 |
+
$data = $this->__call('list', array($params));
|
469 |
+
if ($this->useObjects()) {
|
470 |
+
return new Google_Volumes($data);
|
471 |
+
} else {
|
472 |
+
return $data;
|
473 |
+
}
|
474 |
+
}
|
475 |
+
}
|
476 |
+
|
477 |
+
/**
|
478 |
+
* The "mylibrary" collection of methods.
|
479 |
+
* Typical usage is:
|
480 |
+
* <code>
|
481 |
+
* $booksService = new Google_BooksService(...);
|
482 |
+
* $mylibrary = $booksService->mylibrary;
|
483 |
+
* </code>
|
484 |
+
*/
|
485 |
+
class Google_MylibraryServiceResource extends Google_ServiceResource {
|
486 |
+
|
487 |
+
|
488 |
+
}
|
489 |
+
|
490 |
+
/**
|
491 |
+
* The "bookshelves" collection of methods.
|
492 |
+
* Typical usage is:
|
493 |
+
* <code>
|
494 |
+
* $booksService = new Google_BooksService(...);
|
495 |
+
* $bookshelves = $booksService->bookshelves;
|
496 |
+
* </code>
|
497 |
+
*/
|
498 |
+
class Google_MylibraryBookshelvesServiceResource extends Google_ServiceResource {
|
499 |
+
|
500 |
+
|
501 |
+
/**
|
502 |
+
* Removes a volume from a bookshelf. (bookshelves.removeVolume)
|
503 |
+
*
|
504 |
+
* @param string $shelf ID of bookshelf from which to remove a volume.
|
505 |
+
* @param string $volumeId ID of volume to remove.
|
506 |
+
* @param array $optParams Optional parameters.
|
507 |
+
*
|
508 |
+
* @opt_param string source String to identify the originator of this request.
|
509 |
+
*/
|
510 |
+
public function removeVolume($shelf, $volumeId, $optParams = array()) {
|
511 |
+
$params = array('shelf' => $shelf, 'volumeId' => $volumeId);
|
512 |
+
$params = array_merge($params, $optParams);
|
513 |
+
$data = $this->__call('removeVolume', array($params));
|
514 |
+
return $data;
|
515 |
+
}
|
516 |
+
/**
|
517 |
+
* Retrieves metadata for a specific bookshelf belonging to the authenticated user.
|
518 |
+
* (bookshelves.get)
|
519 |
+
*
|
520 |
+
* @param string $shelf ID of bookshelf to retrieve.
|
521 |
+
* @param array $optParams Optional parameters.
|
522 |
+
*
|
523 |
+
* @opt_param string source String to identify the originator of this request.
|
524 |
+
* @return Google_Bookshelf
|
525 |
+
*/
|
526 |
+
public function get($shelf, $optParams = array()) {
|
527 |
+
$params = array('shelf' => $shelf);
|
528 |
+
$params = array_merge($params, $optParams);
|
529 |
+
$data = $this->__call('get', array($params));
|
530 |
+
if ($this->useObjects()) {
|
531 |
+
return new Google_Bookshelf($data);
|
532 |
+
} else {
|
533 |
+
return $data;
|
534 |
+
}
|
535 |
+
}
|
536 |
+
/**
|
537 |
+
* Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
|
538 |
+
*
|
539 |
+
* @param string $shelf ID of bookshelf from which to remove a volume.
|
540 |
+
* @param array $optParams Optional parameters.
|
541 |
+
*
|
542 |
+
* @opt_param string source String to identify the originator of this request.
|
543 |
+
*/
|
544 |
+
public function clearVolumes($shelf, $optParams = array()) {
|
545 |
+
$params = array('shelf' => $shelf);
|
546 |
+
$params = array_merge($params, $optParams);
|
547 |
+
$data = $this->__call('clearVolumes', array($params));
|
548 |
+
return $data;
|
549 |
+
}
|
550 |
+
/**
|
551 |
+
* Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
|
552 |
+
*
|
553 |
+
* @param array $optParams Optional parameters.
|
554 |
+
*
|
555 |
+
* @opt_param string source String to identify the originator of this request.
|
556 |
+
* @return Google_Bookshelves
|
557 |
+
*/
|
558 |
+
public function listMylibraryBookshelves($optParams = array()) {
|
559 |
+
$params = array();
|
560 |
+
$params = array_merge($params, $optParams);
|
561 |
+
$data = $this->__call('list', array($params));
|
562 |
+
if ($this->useObjects()) {
|
563 |
+
return new Google_Bookshelves($data);
|
564 |
+
} else {
|
565 |
+
return $data;
|
566 |
+
}
|
567 |
+
}
|
568 |
+
/**
|
569 |
+
* Adds a volume to a bookshelf. (bookshelves.addVolume)
|
570 |
+
*
|
571 |
+
* @param string $shelf ID of bookshelf to which to add a volume.
|
572 |
+
* @param string $volumeId ID of volume to add.
|
573 |
+
* @param array $optParams Optional parameters.
|
574 |
+
*
|
575 |
+
* @opt_param string source String to identify the originator of this request.
|
576 |
+
*/
|
577 |
+
public function addVolume($shelf, $volumeId, $optParams = array()) {
|
578 |
+
$params = array('shelf' => $shelf, 'volumeId' => $volumeId);
|
579 |
+
$params = array_merge($params, $optParams);
|
580 |
+
$data = $this->__call('addVolume', array($params));
|
581 |
+
return $data;
|
582 |
+
}
|
583 |
+
/**
|
584 |
+
* Moves a volume within a bookshelf. (bookshelves.moveVolume)
|
585 |
+
*
|
586 |
+
* @param string $shelf ID of bookshelf with the volume.
|
587 |
+
* @param string $volumeId ID of volume to move.
|
588 |
+
* @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
|
589 |
+
* @param array $optParams Optional parameters.
|
590 |
+
*
|
591 |
+
* @opt_param string source String to identify the originator of this request.
|
592 |
+
*/
|
593 |
+
public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
|
594 |
+
$params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
|
595 |
+
$params = array_merge($params, $optParams);
|
596 |
+
$data = $this->__call('moveVolume', array($params));
|
597 |
+
return $data;
|
598 |
+
}
|
599 |
+
}
|
600 |
+
|
601 |
+
/**
|
602 |
+
* The "volumes" collection of methods.
|
603 |
+
* Typical usage is:
|
604 |
+
* <code>
|
605 |
+
* $booksService = new Google_BooksService(...);
|
606 |
+
* $volumes = $booksService->volumes;
|
607 |
+
* </code>
|
608 |
+
*/
|
609 |
+
class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource {
|
610 |
+
|
611 |
+
|
612 |
+
/**
|
613 |
+
* Gets volume information for volumes on a bookshelf. (volumes.list)
|
614 |
+
*
|
615 |
+
* @param string $shelf The bookshelf ID or name retrieve volumes for.
|
616 |
+
* @param array $optParams Optional parameters.
|
617 |
+
*
|
618 |
+
* @opt_param string projection Restrict information returned to a set of selected fields.
|
619 |
+
* @opt_param string country ISO-3166-1 code to override the IP-based location.
|
620 |
+
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
|
621 |
+
* @opt_param string maxResults Maximum number of results to return
|
622 |
+
* @opt_param string q Full-text search query string in this bookshelf.
|
623 |
+
* @opt_param string source String to identify the originator of this request.
|
624 |
+
* @opt_param string startIndex Index of the first element to return (starts at 0)
|
625 |
+
* @return Google_Volumes
|
626 |
+
*/
|
627 |
+
public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
|
628 |
+
$params = array('shelf' => $shelf);
|
629 |
+
$params = array_merge($params, $optParams);
|
630 |
+
$data = $this->__call('list', array($params));
|
631 |
+
if ($this->useObjects()) {
|
632 |
+
return new Google_Volumes($data);
|
633 |
+
} else {
|
634 |
+
return $data;
|
635 |
+
}
|
636 |
+
}
|
637 |
+
}
|
638 |
+
/**
|
639 |
+
* The "readingpositions" collection of methods.
|
640 |
+
* Typical usage is:
|
641 |
+
* <code>
|
642 |
+
* $booksService = new Google_BooksService(...);
|
643 |
+
* $readingpositions = $booksService->readingpositions;
|
644 |
+
* </code>
|
645 |
+
*/
|
646 |
+
class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource {
|
647 |
+
|
648 |
+
|
649 |
+
/**
|
650 |
+
* Sets my reading position information for a volume. (readingpositions.setPosition)
|
651 |
+
*
|
652 |
+
* @param string $volumeId ID of volume for which to update the reading position.
|
653 |
+
* @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
|
654 |
+
* @param string $position Position string for the new volume reading position.
|
655 |
+
* @param array $optParams Optional parameters.
|
656 |
+
*
|
657 |
+
* @opt_param string source String to identify the originator of this request.
|
658 |
+
* @opt_param string contentVersion Volume content version for which this reading position applies.
|
659 |
+
* @opt_param string action Action that caused this reading position to be set.
|
660 |
+
*/
|
661 |
+
public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
|
662 |
+
$params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
|
663 |
+
$params = array_merge($params, $optParams);
|
664 |
+
$data = $this->__call('setPosition', array($params));
|
665 |
+
return $data;
|
666 |
+
}
|
667 |
+
/**
|
668 |
+
* Retrieves my reading position information for a volume. (readingpositions.get)
|
669 |
+
*
|
670 |
+
* @param string $volumeId ID of volume for which to retrieve a reading position.
|
671 |
+
* @param array $optParams Optional parameters.
|
672 |
+
*
|
673 |
+
* @opt_param string source String to identify the originator of this request.
|
674 |
+
* @opt_param string contentVersion Volume content version for which this reading position is requested.
|
675 |
+
* @return Google_ReadingPosition
|
676 |
+
*/
|
677 |
+
public function get($volumeId, $optParams = array()) {
|
678 |
+
$params = array('volumeId' => $volumeId);
|
679 |
+
$params = array_merge($params, $optParams);
|
680 |
+
$data = $this->__call('get', array($params));
|
681 |
+
if ($this->useObjects()) {
|
682 |
+
return new Google_ReadingPosition($data);
|
683 |
+
} else {
|
684 |
+
return $data;
|
685 |
+
}
|
686 |
+
}
|
687 |
+
}
|
688 |
+
/**
|
689 |
+
* The "annotations" collection of methods.
|
690 |
+
* Typical usage is:
|
691 |
+
* <code>
|
692 |
+
* $booksService = new Google_BooksService(...);
|
693 |
+
* $annotations = $booksService->annotations;
|
694 |
+
* </code>
|
695 |
+
*/
|
696 |
+
class Google_MylibraryAnnotationsServiceResource extends Google_ServiceResource {
|
697 |
+
|
698 |
+
|
699 |
+
/**
|
700 |
+
* Inserts a new annotation. (annotations.insert)
|
701 |
+
*
|
702 |
+
* @param Google_Annotation $postBody
|
703 |
+
* @param array $optParams Optional parameters.
|
704 |
+
*
|
705 |
+
* @opt_param string source String to identify the originator of this request.
|
706 |
+
* @return Google_Annotation
|
707 |
+
*/
|
708 |
+
public function insert(Google_Annotation $postBody, $optParams = array()) {
|
709 |
+
$params = array('postBody' => $postBody);
|
710 |
+
$params = array_merge($params, $optParams);
|
711 |
+
$data = $this->__call('insert', array($params));
|
712 |
+
if ($this->useObjects()) {
|
713 |
+
return new Google_Annotation($data);
|
714 |
+
} else {
|
715 |
+
return $data;
|
716 |
+
}
|
717 |
+
}
|
718 |
+
/**
|
719 |
+
* Gets an annotation by its ID. (annotations.get)
|
720 |
+
*
|
721 |
+
* @param string $annotationId The ID for the annotation to retrieve.
|
722 |
+
* @param array $optParams Optional parameters.
|
723 |
+
*
|
724 |
+
* @opt_param string source String to identify the originator of this request.
|
725 |
+
* @return Google_Annotation
|
726 |
+
*/
|
727 |
+
public function get($annotationId, $optParams = array()) {
|
728 |
+
$params = array('annotationId' => $annotationId);
|
729 |
+
$params = array_merge($params, $optParams);
|
730 |
+
$data = $this->__call('get', array($params));
|
731 |
+
if ($this->useObjects()) {
|
732 |
+
return new Google_Annotation($data);
|
733 |
+
} else {
|
734 |
+
return $data;
|
735 |
+
}
|
736 |
+
}
|
737 |
+
/**
|
738 |
+
* Retrieves a list of annotations, possibly filtered. (annotations.list)
|
739 |
+
*
|
740 |
+
* @param array $optParams Optional parameters.
|
741 |
+
*
|
742 |
+
* @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
|
743 |
+
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
|
744 |
+
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
|
745 |
+
* @opt_param string volumeId The volume to restrict annotations to.
|
746 |
+
* @opt_param string maxResults Maximum number of results to return
|
747 |
+
* @opt_param string pageToken The value of the nextToken from the previous page.
|
748 |
+
* @opt_param string pageIds The page ID(s) for the volume that is being queried.
|
749 |
+
* @opt_param string contentVersion The content version for the requested volume.
|
750 |
+
* @opt_param string source String to identify the originator of this request.
|
751 |
+
* @opt_param string layerId The layer ID to limit annotation by.
|
752 |
+
* @return Google_Annotations
|
753 |
+
*/
|
754 |
+
public function listMylibraryAnnotations($optParams = array()) {
|
755 |
+
$params = array();
|
756 |
+
$params = array_merge($params, $optParams);
|
757 |
+
$data = $this->__call('list', array($params));
|
758 |
+
if ($this->useObjects()) {
|
759 |
+
return new Google_Annotations($data);
|
760 |
+
} else {
|
761 |
+
return $data;
|
762 |
+
}
|
763 |
+
}
|
764 |
+
/**
|
765 |
+
* Updates an existing annotation. (annotations.update)
|
766 |
+
*
|
767 |
+
* @param string $annotationId The ID for the annotation to update.
|
768 |
+
* @param Google_Annotation $postBody
|
769 |
+
* @param array $optParams Optional parameters.
|
770 |
+
*
|
771 |
+
* @opt_param string source String to identify the originator of this request.
|
772 |
+
* @return Google_Annotation
|
773 |
+
*/
|
774 |
+
public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
|
775 |
+
$params = array('annotationId' => $annotationId, 'postBody' => $postBody);
|
776 |
+
$params = array_merge($params, $optParams);
|
777 |
+
$data = $this->__call('update', array($params));
|
778 |
+
if ($this->useObjects()) {
|
779 |
+
return new Google_Annotation($data);
|
780 |
+
} else {
|
781 |
+
return $data;
|
782 |
+
}
|
783 |
+
}
|
784 |
+
/**
|
785 |
+
* Deletes an annotation. (annotations.delete)
|
786 |
+
*
|
787 |
+
* @param string $annotationId The ID for the annotation to delete.
|
788 |
+
* @param array $optParams Optional parameters.
|
789 |
+
*
|
790 |
+
* @opt_param string source String to identify the originator of this request.
|
791 |
+
*/
|
792 |
+
public function delete($annotationId, $optParams = array()) {
|
793 |
+
$params = array('annotationId' => $annotationId);
|
794 |
+
$params = array_merge($params, $optParams);
|
795 |
+
$data = $this->__call('delete', array($params));
|
796 |
+
return $data;
|
797 |
+
}
|
798 |
+
}
|
799 |
+
|
800 |
+
/**
|
801 |
+
* Service definition for Google_Books (v1).
|
802 |
+
*
|
803 |
+
* <p>
|
804 |
+
* Lets you search for books and manage your Google Books library.
|
805 |
+
* </p>
|
806 |
+
*
|
807 |
+
* <p>
|
808 |
+
* For more information about this service, see the
|
809 |
+
* <a href="https://code.google.com/apis/books/docs/v1/getting_started.html" target="_blank">API Documentation</a>
|
810 |
+
* </p>
|
811 |
+
*
|
812 |
+
* @author Google, Inc.
|
813 |
+
*/
|
814 |
+
class Google_BooksService extends Google_Service {
|
815 |
+
public $layers;
|
816 |
+
public $layers_annotationData;
|
817 |
+
public $layers_volumeAnnotations;
|
818 |
+
public $bookshelves;
|
819 |
+
public $bookshelves_volumes;
|
820 |
+
public $myconfig;
|
821 |
+
public $volumes;
|
822 |
+
public $volumes_associated;
|
823 |
+
public $mylibrary_bookshelves;
|
824 |
+
public $mylibrary_bookshelves_volumes;
|
825 |
+
public $mylibrary_readingpositions;
|
826 |
+
public $mylibrary_annotations;
|
827 |
+
/**
|
828 |
+
* Constructs the internal representation of the Books service.
|
829 |
+
*
|
830 |
+
* @param Google_Client $client
|
831 |
+
*/
|
832 |
+
public function __construct(Google_Client $client) {
|
833 |
+
$this->servicePath = 'books/v1/';
|
834 |
+
$this->version = 'v1';
|
835 |
+
$this->serviceName = 'books';
|
836 |
+
|
837 |
+
$client->addService($this->serviceName, $this->version);
|
838 |
+
$this->layers = new Google_LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "source": {"type": "string", "location": "query"}}, "id": "books.layers.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary", "response": {"$ref": "Layersummaries"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "summaryId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary/{summaryId}", "response": {"$ref": "Layersummary"}}}}', true));
|
839 |
+
$this->layers_annotationData = new Google_LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "annotationDataId": {"repeated": true, "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "id": "books.layers.annotationData.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data", "response": {"$ref": "Annotationsdata"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "annotationDataId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.annotationData.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "response": {"$ref": "Annotationdata"}}}}', true));
|
840 |
+
$this->layers_volumeAnnotations = new Google_LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "startPosition": {"type": "string", "location": "query"}}, "id": "books.layers.volumeAnnotations.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}", "response": {"$ref": "Volumeannotations"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.volumeAnnotations.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "response": {"$ref": "Volumeannotation"}}}}', true));
|
841 |
+
$this->bookshelves = new Google_BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.get", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}}}', true));
|
842 |
+
$this->bookshelves_volumes = new Google_BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
|
843 |
+
$this->myconfig = new Google_MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.releaseDownloadAccess", "httpMethod": "POST", "path": "myconfig/releaseDownloadAccess", "response": {"$ref": "DownloadAccesses"}}, "requestAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "nonce": {"required": true, "type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.requestAccess", "httpMethod": "POST", "path": "myconfig/requestAccess", "response": {"$ref": "RequestAccess"}}, "syncVolumeLicenses": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "type": "string", "location": "query"}}, "id": "books.myconfig.syncVolumeLicenses", "httpMethod": "POST", "path": "myconfig/syncVolumeLicenses", "response": {"$ref": "Volumes"}}}}', true));
|
844 |
+
$this->volumes = new Google_VolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"orderBy": {"enum": ["newest", "relevance"], "type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "libraryRestrict": {"enum": ["my-library", "no-restrict"], "type": "string", "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "download": {"enum": ["epub"], "type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}}, "id": "books.volumes.list", "httpMethod": "GET", "path": "volumes", "response": {"$ref": "Volumes"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"partner": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
|
845 |
+
$this->volumes_associated = new Google_VolumesAssociatedServiceResource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "association": {"enum": ["complementary"], "type": "string", "location": "query"}}, "id": "books.volumes.associated.list", "httpMethod": "GET", "path": "volumes/{volumeId}/associated", "response": {"$ref": "Volumes"}}}}', true));
|
846 |
+
$this->mylibrary_bookshelves = new Google_MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.bookshelves.get", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}, "clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "httpMethod": "GET", "path": "mylibrary/bookshelves", "id": "books.mylibrary.bookshelves.list"}, "addVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "moveVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/moveVolume", "id": "books.mylibrary.bookshelves.moveVolume", "parameters": {"source": {"type": "string", "location": "query"}, "volumePosition": {"required": true, "type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}}}', true));
|
847 |
+
$this->mylibrary_bookshelves_volumes = new Google_MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.bookshelves.volumes.list", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
|
848 |
+
$this->mylibrary_readingpositions = new Google_MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"setPosition": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/readingpositions/{volumeId}/setPosition", "id": "books.mylibrary.readingpositions.setPosition", "parameters": {"timestamp": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "action": {"enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "type": "string", "location": "query"}, "position": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.readingpositions.get", "httpMethod": "GET", "path": "mylibrary/readingpositions/{volumeId}", "response": {"$ref": "ReadingPosition"}}}}', true));
|
849 |
+
$this->mylibrary_annotations = new Google_MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "POST", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.annotations.get", "httpMethod": "GET", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "pageIds": {"repeated": true, "type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "httpMethod": "GET", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "PUT", "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.delete", "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
850 |
+
|
851 |
+
}
|
852 |
+
}
|
853 |
+
|
854 |
+
class Google_Annotation extends Google_Model {
|
855 |
+
public $kind;
|
856 |
+
public $updated;
|
857 |
+
public $created;
|
858 |
+
public $deleted;
|
859 |
+
public $beforeSelectedText;
|
860 |
+
protected $__currentVersionRangesType = 'Google_AnnotationCurrentVersionRanges';
|
861 |
+
protected $__currentVersionRangesDataType = '';
|
862 |
+
public $currentVersionRanges;
|
863 |
+
public $afterSelectedText;
|
864 |
+
protected $__clientVersionRangesType = 'Google_AnnotationClientVersionRanges';
|
865 |
+
protected $__clientVersionRangesDataType = '';
|
866 |
+
public $clientVersionRanges;
|
867 |
+
public $volumeId;
|
868 |
+
public $pageIds;
|
869 |
+
public $layerId;
|
870 |
+
public $selectedText;
|
871 |
+
public $highlightStyle;
|
872 |
+
public $data;
|
873 |
+
public $id;
|
874 |
+
public $selfLink;
|
875 |
+
public function setKind($kind) {
|
876 |
+
$this->kind = $kind;
|
877 |
+
}
|
878 |
+
public function getKind() {
|
879 |
+
return $this->kind;
|
880 |
+
}
|
881 |
+
public function setUpdated($updated) {
|
882 |
+
$this->updated = $updated;
|
883 |
+
}
|
884 |
+
public function getUpdated() {
|
885 |
+
return $this->updated;
|
886 |
+
}
|
887 |
+
public function setCreated($created) {
|
888 |
+
$this->created = $created;
|
889 |
+
}
|
890 |
+
public function getCreated() {
|
891 |
+
return $this->created;
|
892 |
+
}
|
893 |
+
public function setDeleted($deleted) {
|
894 |
+
$this->deleted = $deleted;
|
895 |
+
}
|
896 |
+
public function getDeleted() {
|
897 |
+
return $this->deleted;
|
898 |
+
}
|
899 |
+
public function setBeforeSelectedText($beforeSelectedText) {
|
900 |
+
$this->beforeSelectedText = $beforeSelectedText;
|
901 |
+
}
|
902 |
+
public function getBeforeSelectedText() {
|
903 |
+
return $this->beforeSelectedText;
|
904 |
+
}
|
905 |
+
public function setCurrentVersionRanges(Google_AnnotationCurrentVersionRanges $currentVersionRanges) {
|
906 |
+
$this->currentVersionRanges = $currentVersionRanges;
|
907 |
+
}
|
908 |
+
public function getCurrentVersionRanges() {
|
909 |
+
return $this->currentVersionRanges;
|
910 |
+
}
|
911 |
+
public function setAfterSelectedText($afterSelectedText) {
|
912 |
+
$this->afterSelectedText = $afterSelectedText;
|
913 |
+
}
|
914 |
+
public function getAfterSelectedText() {
|
915 |
+
return $this->afterSelectedText;
|
916 |
+
}
|
917 |
+
public function setClientVersionRanges(Google_AnnotationClientVersionRanges $clientVersionRanges) {
|
918 |
+
$this->clientVersionRanges = $clientVersionRanges;
|
919 |
+
}
|
920 |
+
public function getClientVersionRanges() {
|
921 |
+
return $this->clientVersionRanges;
|
922 |
+
}
|
923 |
+
public function setVolumeId($volumeId) {
|
924 |
+
$this->volumeId = $volumeId;
|
925 |
+
}
|
926 |
+
public function getVolumeId() {
|
927 |
+
return $this->volumeId;
|
928 |
+
}
|
929 |
+
public function setPageIds(/* array(Google_string) */ $pageIds) {
|
930 |
+
$this->assertIsArray($pageIds, 'Google_string', __METHOD__);
|
931 |
+
$this->pageIds = $pageIds;
|
932 |
+
}
|
933 |
+
public function getPageIds() {
|
934 |
+
return $this->pageIds;
|
935 |
+
}
|
936 |
+
public function setLayerId($layerId) {
|
937 |
+
$this->layerId = $layerId;
|
938 |
+
}
|
939 |
+
public function getLayerId() {
|
940 |
+
return $this->layerId;
|
941 |
+
}
|
942 |
+
public function setSelectedText($selectedText) {
|
943 |
+
$this->selectedText = $selectedText;
|
944 |
+
}
|
945 |
+
public function getSelectedText() {
|
946 |
+
return $this->selectedText;
|
947 |
+
}
|
948 |
+
public function setHighlightStyle($highlightStyle) {
|
949 |
+
$this->highlightStyle = $highlightStyle;
|
950 |
+
}
|
951 |
+
public function getHighlightStyle() {
|
952 |
+
return $this->highlightStyle;
|
953 |
+
}
|
954 |
+
public function setData($data) {
|
955 |
+
$this->data = $data;
|
956 |
+
}
|
957 |
+
public function getData() {
|
958 |
+
return $this->data;
|
959 |
+
}
|
960 |
+
public function setId($id) {
|
961 |
+
$this->id = $id;
|
962 |
+
}
|
963 |
+
public function getId() {
|
964 |
+
return $this->id;
|
965 |
+
}
|
966 |
+
public function setSelfLink($selfLink) {
|
967 |
+
$this->selfLink = $selfLink;
|
968 |
+
}
|
969 |
+
public function getSelfLink() {
|
970 |
+
return $this->selfLink;
|
971 |
+
}
|
972 |
+
}
|
973 |
+
|
974 |
+
class Google_AnnotationClientVersionRanges extends Google_Model {
|
975 |
+
public $contentVersion;
|
976 |
+
protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
|
977 |
+
protected $__gbTextRangeDataType = '';
|
978 |
+
public $gbTextRange;
|
979 |
+
protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
|
980 |
+
protected $__cfiRangeDataType = '';
|
981 |
+
public $cfiRange;
|
982 |
+
protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
|
983 |
+
protected $__gbImageRangeDataType = '';
|
984 |
+
public $gbImageRange;
|
985 |
+
public function setContentVersion($contentVersion) {
|
986 |
+
$this->contentVersion = $contentVersion;
|
987 |
+
}
|
988 |
+
public function getContentVersion() {
|
989 |
+
return $this->contentVersion;
|
990 |
+
}
|
991 |
+
public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
|
992 |
+
$this->gbTextRange = $gbTextRange;
|
993 |
+
}
|
994 |
+
public function getGbTextRange() {
|
995 |
+
return $this->gbTextRange;
|
996 |
+
}
|
997 |
+
public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
|
998 |
+
$this->cfiRange = $cfiRange;
|
999 |
+
}
|
1000 |
+
public function getCfiRange() {
|
1001 |
+
return $this->cfiRange;
|
1002 |
+
}
|
1003 |
+
public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
|
1004 |
+
$this->gbImageRange = $gbImageRange;
|
1005 |
+
}
|
1006 |
+
public function getGbImageRange() {
|
1007 |
+
return $this->gbImageRange;
|
1008 |
+
}
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
class Google_AnnotationCurrentVersionRanges extends Google_Model {
|
1012 |
+
public $contentVersion;
|
1013 |
+
protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
|
1014 |
+
protected $__gbTextRangeDataType = '';
|
1015 |
+
public $gbTextRange;
|
1016 |
+
protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
|
1017 |
+
protected $__cfiRangeDataType = '';
|
1018 |
+
public $cfiRange;
|
1019 |
+
protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
|
1020 |
+
protected $__gbImageRangeDataType = '';
|
1021 |
+
public $gbImageRange;
|
1022 |
+
public function setContentVersion($contentVersion) {
|
1023 |
+
$this->contentVersion = $contentVersion;
|
1024 |
+
}
|
1025 |
+
public function getContentVersion() {
|
1026 |
+
return $this->contentVersion;
|
1027 |
+
}
|
1028 |
+
public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
|
1029 |
+
$this->gbTextRange = $gbTextRange;
|
1030 |
+
}
|
1031 |
+
public function getGbTextRange() {
|
1032 |
+
return $this->gbTextRange;
|
1033 |
+
}
|
1034 |
+
public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
|
1035 |
+
$this->cfiRange = $cfiRange;
|
1036 |
+
}
|
1037 |
+
public function getCfiRange() {
|
1038 |
+
return $this->cfiRange;
|
1039 |
+
}
|
1040 |
+
public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
|
1041 |
+
$this->gbImageRange = $gbImageRange;
|
1042 |
+
}
|
1043 |
+
public function getGbImageRange() {
|
1044 |
+
return $this->gbImageRange;
|
1045 |
+
}
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
class Google_Annotationdata extends Google_Model {
|
1049 |
+
public $annotationType;
|
1050 |
+
public $kind;
|
1051 |
+
public $updated;
|
1052 |
+
public $volumeId;
|
1053 |
+
public $encoded_data;
|
1054 |
+
public $layerId;
|
1055 |
+
protected $__dataType = 'Google_BooksLayerGeoData';
|
1056 |
+
protected $__dataDataType = '';
|
1057 |
+
public $data;
|
1058 |
+
public $id;
|
1059 |
+
public $selfLink;
|
1060 |
+
public function setAnnotationType($annotationType) {
|
1061 |
+
$this->annotationType = $annotationType;
|
1062 |
+
}
|
1063 |
+
public function getAnnotationType() {
|
1064 |
+
return $this->annotationType;
|
1065 |
+
}
|
1066 |
+
public function setKind($kind) {
|
1067 |
+
$this->kind = $kind;
|
1068 |
+
}
|
1069 |
+
public function getKind() {
|
1070 |
+
return $this->kind;
|
1071 |
+
}
|
1072 |
+
public function setUpdated($updated) {
|
1073 |
+
$this->updated = $updated;
|
1074 |
+
}
|
1075 |
+
public function getUpdated() {
|
1076 |
+
return $this->updated;
|
1077 |
+
}
|
1078 |
+
public function setVolumeId($volumeId) {
|
1079 |
+
$this->volumeId = $volumeId;
|
1080 |
+
}
|
1081 |
+
public function getVolumeId() {
|
1082 |
+
return $this->volumeId;
|
1083 |
+
}
|
1084 |
+
public function setEncoded_data($encoded_data) {
|
1085 |
+
$this->encoded_data = $encoded_data;
|
1086 |
+
}
|
1087 |
+
public function getEncoded_data() {
|
1088 |
+
return $this->encoded_data;
|
1089 |
+
}
|
1090 |
+
public function setLayerId($layerId) {
|
1091 |
+
$this->layerId = $layerId;
|
1092 |
+
}
|
1093 |
+
public function getLayerId() {
|
1094 |
+
return $this->layerId;
|
1095 |
+
}
|
1096 |
+
public function setData(Google_BooksLayerGeoData $data) {
|
1097 |
+
$this->data = $data;
|
1098 |
+
}
|
1099 |
+
public function getData() {
|
1100 |
+
return $this->data;
|
1101 |
+
}
|
1102 |
+
public function setId($id) {
|
1103 |
+
$this->id = $id;
|
1104 |
+
}
|
1105 |
+
public function getId() {
|
1106 |
+
return $this->id;
|
1107 |
+
}
|
1108 |
+
public function setSelfLink($selfLink) {
|
1109 |
+
$this->selfLink = $selfLink;
|
1110 |
+
}
|
1111 |
+
public function getSelfLink() {
|
1112 |
+
return $this->selfLink;
|
1113 |
+
}
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
class Google_Annotations extends Google_Model {
|
1117 |
+
public $nextPageToken;
|
1118 |
+
protected $__itemsType = 'Google_Annotation';
|
1119 |
+
protected $__itemsDataType = 'array';
|
1120 |
+
public $items;
|
1121 |
+
public $kind;
|
1122 |
+
public $totalItems;
|
1123 |
+
public function setNextPageToken($nextPageToken) {
|
1124 |
+
$this->nextPageToken = $nextPageToken;
|
1125 |
+
}
|
1126 |
+
public function getNextPageToken() {
|
1127 |
+
return $this->nextPageToken;
|
1128 |
+
}
|
1129 |
+
public function setItems(/* array(Google_Annotation) */ $items) {
|
1130 |
+
$this->assertIsArray($items, 'Google_Annotation', __METHOD__);
|
1131 |
+
$this->items = $items;
|
1132 |
+
}
|
1133 |
+
public function getItems() {
|
1134 |
+
return $this->items;
|
1135 |
+
}
|
1136 |
+
public function setKind($kind) {
|
1137 |
+
$this->kind = $kind;
|
1138 |
+
}
|
1139 |
+
public function getKind() {
|
1140 |
+
return $this->kind;
|
1141 |
+
}
|
1142 |
+
public function setTotalItems($totalItems) {
|
1143 |
+
$this->totalItems = $totalItems;
|
1144 |
+
}
|
1145 |
+
public function getTotalItems() {
|
1146 |
+
return $this->totalItems;
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
+
|
1150 |
+
class Google_Annotationsdata extends Google_Model {
|
1151 |
+
public $nextPageToken;
|
1152 |
+
protected $__itemsType = 'Google_Annotationdata';
|
1153 |
+
protected $__itemsDataType = 'array';
|
1154 |
+
public $items;
|
1155 |
+
public $kind;
|
1156 |
+
public $totalItems;
|
1157 |
+
public function setNextPageToken($nextPageToken) {
|
1158 |
+
$this->nextPageToken = $nextPageToken;
|
1159 |
+
}
|
1160 |
+
public function getNextPageToken() {
|
1161 |
+
return $this->nextPageToken;
|
1162 |
+
}
|
1163 |
+
public function setItems(/* array(Google_Annotationdata) */ $items) {
|
1164 |
+
$this->assertIsArray($items, 'Google_Annotationdata', __METHOD__);
|
1165 |
+
$this->items = $items;
|
1166 |
+
}
|
1167 |
+
public function getItems() {
|
1168 |
+
return $this->items;
|
1169 |
+
}
|
1170 |
+
public function setKind($kind) {
|
1171 |
+
$this->kind = $kind;
|
1172 |
+
}
|
1173 |
+
public function getKind() {
|
1174 |
+
return $this->kind;
|
1175 |
+
}
|
1176 |
+
public function setTotalItems($totalItems) {
|
1177 |
+
$this->totalItems = $totalItems;
|
1178 |
+
}
|
1179 |
+
public function getTotalItems() {
|
1180 |
+
return $this->totalItems;
|
1181 |
+
}
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
class Google_BooksAnnotationsRange extends Google_Model {
|
1185 |
+
public $startPosition;
|
1186 |
+
public $endPosition;
|
1187 |
+
public $startOffset;
|
1188 |
+
public $endOffset;
|
1189 |
+
public function setStartPosition($startPosition) {
|
1190 |
+
$this->startPosition = $startPosition;
|
1191 |
+
}
|
1192 |
+
public function getStartPosition() {
|
1193 |
+
return $this->startPosition;
|
1194 |
+
}
|
1195 |
+
public function setEndPosition($endPosition) {
|
1196 |
+
$this->endPosition = $endPosition;
|
1197 |
+
}
|
1198 |
+
public function getEndPosition() {
|
1199 |
+
return $this->endPosition;
|
1200 |
+
}
|
1201 |
+
public function setStartOffset($startOffset) {
|
1202 |
+
$this->startOffset = $startOffset;
|
1203 |
+
}
|
1204 |
+
public function getStartOffset() {
|
1205 |
+
return $this->startOffset;
|
1206 |
+
}
|
1207 |
+
public function setEndOffset($endOffset) {
|
1208 |
+
$this->endOffset = $endOffset;
|
1209 |
+
}
|
1210 |
+
public function getEndOffset() {
|
1211 |
+
return $this->endOffset;
|
1212 |
+
}
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
class Google_BooksLayerGeoData extends Google_Model {
|
1216 |
+
protected $__geoType = 'Google_BooksLayerGeoDataGeo';
|
1217 |
+
protected $__geoDataType = '';
|
1218 |
+
public $geo;
|
1219 |
+
protected $__commonType = 'Google_BooksLayerGeoDataCommon';
|
1220 |
+
protected $__commonDataType = '';
|
1221 |
+
public $common;
|
1222 |
+
public function setGeo(Google_BooksLayerGeoDataGeo $geo) {
|
1223 |
+
$this->geo = $geo;
|
1224 |
+
}
|
1225 |
+
public function getGeo() {
|
1226 |
+
return $this->geo;
|
1227 |
+
}
|
1228 |
+
public function setCommon(Google_BooksLayerGeoDataCommon $common) {
|
1229 |
+
$this->common = $common;
|
1230 |
+
}
|
1231 |
+
public function getCommon() {
|
1232 |
+
return $this->common;
|
1233 |
+
}
|
1234 |
+
}
|
1235 |
+
|
1236 |
+
class Google_BooksLayerGeoDataCommon extends Google_Model {
|
1237 |
+
public $lang;
|
1238 |
+
public $previewImageUrl;
|
1239 |
+
public $snippet;
|
1240 |
+
public $snippetUrl;
|
1241 |
+
public function setLang($lang) {
|
1242 |
+
$this->lang = $lang;
|
1243 |
+
}
|
1244 |
+
public function getLang() {
|
1245 |
+
return $this->lang;
|
1246 |
+
}
|
1247 |
+
public function setPreviewImageUrl($previewImageUrl) {
|
1248 |
+
$this->previewImageUrl = $previewImageUrl;
|
1249 |
+
}
|
1250 |
+
public function getPreviewImageUrl() {
|
1251 |
+
return $this->previewImageUrl;
|
1252 |
+
}
|
1253 |
+
public function setSnippet($snippet) {
|
1254 |
+
$this->snippet = $snippet;
|
1255 |
+
}
|
1256 |
+
public function getSnippet() {
|
1257 |
+
return $this->snippet;
|
1258 |
+
}
|
1259 |
+
public function setSnippetUrl($snippetUrl) {
|
1260 |
+
$this->snippetUrl = $snippetUrl;
|
1261 |
+
}
|
1262 |
+
public function getSnippetUrl() {
|
1263 |
+
return $this->snippetUrl;
|
1264 |
+
}
|
1265 |
+
}
|
1266 |
+
|
1267 |
+
class Google_BooksLayerGeoDataGeo extends Google_Model {
|
1268 |
+
public $countryCode;
|
1269 |
+
public $title;
|
1270 |
+
public $zoom;
|
1271 |
+
public $longitude;
|
1272 |
+
public $mapType;
|
1273 |
+
public $latitude;
|
1274 |
+
protected $__boundaryType = 'Google_BooksLayerGeoDataGeoBoundary';
|
1275 |
+
protected $__boundaryDataType = 'array';
|
1276 |
+
public $boundary;
|
1277 |
+
protected $__viewportType = 'Google_BooksLayerGeoDataGeoViewport';
|
1278 |
+
protected $__viewportDataType = '';
|
1279 |
+
public $viewport;
|
1280 |
+
public $cachePolicy;
|
1281 |
+
public function setCountryCode($countryCode) {
|
1282 |
+
$this->countryCode = $countryCode;
|
1283 |
+
}
|
1284 |
+
public function getCountryCode() {
|
1285 |
+
return $this->countryCode;
|
1286 |
+
}
|
1287 |
+
public function setTitle($title) {
|
1288 |
+
$this->title = $title;
|
1289 |
+
}
|
1290 |
+
public function getTitle() {
|
1291 |
+
return $this->title;
|
1292 |
+
}
|
1293 |
+
public function setZoom($zoom) {
|
1294 |
+
$this->zoom = $zoom;
|
1295 |
+
}
|
1296 |
+
public function getZoom() {
|
1297 |
+
return $this->zoom;
|
1298 |
+
}
|
1299 |
+
public function setLongitude($longitude) {
|
1300 |
+
$this->longitude = $longitude;
|
1301 |
+
}
|
1302 |
+
public function getLongitude() {
|
1303 |
+
return $this->longitude;
|
1304 |
+
}
|
1305 |
+
public function setMapType($mapType) {
|
1306 |
+
$this->mapType = $mapType;
|
1307 |
+
}
|
1308 |
+
public function getMapType() {
|
1309 |
+
return $this->mapType;
|
1310 |
+
}
|
1311 |
+
public function setLatitude($latitude) {
|
1312 |
+
$this->latitude = $latitude;
|
1313 |
+
}
|
1314 |
+
public function getLatitude() {
|
1315 |
+
return $this->latitude;
|
1316 |
+
}
|
1317 |
+
public function setBoundary(/* array(Google_BooksLayerGeoDataGeoBoundary) */ $boundary) {
|
1318 |
+
$this->assertIsArray($boundary, 'Google_BooksLayerGeoDataGeoBoundary', __METHOD__);
|
1319 |
+
$this->boundary = $boundary;
|
1320 |
+
}
|
1321 |
+
public function getBoundary() {
|
1322 |
+
return $this->boundary;
|
1323 |
+
}
|
1324 |
+
public function setViewport(Google_BooksLayerGeoDataGeoViewport $viewport) {
|
1325 |
+
$this->viewport = $viewport;
|
1326 |
+
}
|
1327 |
+
public function getViewport() {
|
1328 |
+
return $this->viewport;
|
1329 |
+
}
|
1330 |
+
public function setCachePolicy($cachePolicy) {
|
1331 |
+
$this->cachePolicy = $cachePolicy;
|
1332 |
+
}
|
1333 |
+
public function getCachePolicy() {
|
1334 |
+
return $this->cachePolicy;
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
|
1338 |
+
class Google_BooksLayerGeoDataGeoBoundary extends Google_Model {
|
1339 |
+
public $latitude;
|
1340 |
+
public $longitude;
|
1341 |
+
public function setLatitude($latitude) {
|
1342 |
+
$this->latitude = $latitude;
|
1343 |
+
}
|
1344 |
+
public function getLatitude() {
|
1345 |
+
return $this->latitude;
|
1346 |
+
}
|
1347 |
+
public function setLongitude($longitude) {
|
1348 |
+
$this->longitude = $longitude;
|
1349 |
+
}
|
1350 |
+
public function getLongitude() {
|
1351 |
+
return $this->longitude;
|
1352 |
+
}
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
class Google_BooksLayerGeoDataGeoViewport extends Google_Model {
|
1356 |
+
protected $__loType = 'Google_BooksLayerGeoDataGeoViewportLo';
|
1357 |
+
protected $__loDataType = '';
|
1358 |
+
public $lo;
|
1359 |
+
protected $__hiType = 'Google_BooksLayerGeoDataGeoViewportHi';
|
1360 |
+
protected $__hiDataType = '';
|
1361 |
+
public $hi;
|
1362 |
+
public function setLo(Google_BooksLayerGeoDataGeoViewportLo $lo) {
|
1363 |
+
$this->lo = $lo;
|
1364 |
+
}
|
1365 |
+
public function getLo() {
|
1366 |
+
return $this->lo;
|
1367 |
+
}
|
1368 |
+
public function setHi(Google_BooksLayerGeoDataGeoViewportHi $hi) {
|
1369 |
+
$this->hi = $hi;
|
1370 |
+
}
|
1371 |
+
public function getHi() {
|
1372 |
+
return $this->hi;
|
1373 |
+
}
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
class Google_BooksLayerGeoDataGeoViewportHi extends Google_Model {
|
1377 |
+
public $latitude;
|
1378 |
+
public $longitude;
|
1379 |
+
public function setLatitude($latitude) {
|
1380 |
+
$this->latitude = $latitude;
|
1381 |
+
}
|
1382 |
+
public function getLatitude() {
|
1383 |
+
return $this->latitude;
|
1384 |
+
}
|
1385 |
+
public function setLongitude($longitude) {
|
1386 |
+
$this->longitude = $longitude;
|
1387 |
+
}
|
1388 |
+
public function getLongitude() {
|
1389 |
+
return $this->longitude;
|
1390 |
+
}
|
1391 |
+
}
|
1392 |
+
|
1393 |
+
class Google_BooksLayerGeoDataGeoViewportLo extends Google_Model {
|
1394 |
+
public $latitude;
|
1395 |
+
public $longitude;
|
1396 |
+
public function setLatitude($latitude) {
|
1397 |
+
$this->latitude = $latitude;
|
1398 |
+
}
|
1399 |
+
public function getLatitude() {
|
1400 |
+
return $this->latitude;
|
1401 |
+
}
|
1402 |
+
public function setLongitude($longitude) {
|
1403 |
+
$this->longitude = $longitude;
|
1404 |
+
}
|
1405 |
+
public function getLongitude() {
|
1406 |
+
return $this->longitude;
|
1407 |
+
}
|
1408 |
+
}
|
1409 |
+
|
1410 |
+
class Google_Bookshelf extends Google_Model {
|
1411 |
+
public $kind;
|
1412 |
+
public $description;
|
1413 |
+
public $created;
|
1414 |
+
public $volumeCount;
|
1415 |
+
public $title;
|
1416 |
+
public $updated;
|
1417 |
+
public $access;
|
1418 |
+
public $volumesLastUpdated;
|
1419 |
+
public $id;
|
1420 |
+
public $selfLink;
|
1421 |
+
public function setKind($kind) {
|
1422 |
+
$this->kind = $kind;
|
1423 |
+
}
|
1424 |
+
public function getKind() {
|
1425 |
+
return $this->kind;
|
1426 |
+
}
|
1427 |
+
public function setDescription($description) {
|
1428 |
+
$this->description = $description;
|
1429 |
+
}
|
1430 |
+
public function getDescription() {
|
1431 |
+
return $this->description;
|
1432 |
+
}
|
1433 |
+
public function setCreated($created) {
|
1434 |
+
$this->created = $created;
|
1435 |
+
}
|
1436 |
+
public function getCreated() {
|
1437 |
+
return $this->created;
|
1438 |
+
}
|
1439 |
+
public function setVolumeCount($volumeCount) {
|
1440 |
+
$this->volumeCount = $volumeCount;
|
1441 |
+
}
|
1442 |
+
public function getVolumeCount() {
|
1443 |
+
return $this->volumeCount;
|
1444 |
+
}
|
1445 |
+
public function setTitle($title) {
|
1446 |
+
$this->title = $title;
|
1447 |
+
}
|
1448 |
+
public function getTitle() {
|
1449 |
+
return $this->title;
|
1450 |
+
}
|
1451 |
+
public function setUpdated($updated) {
|
1452 |
+
$this->updated = $updated;
|
1453 |
+
}
|
1454 |
+
public function getUpdated() {
|
1455 |
+
return $this->updated;
|
1456 |
+
}
|
1457 |
+
public function setAccess($access) {
|
1458 |
+
$this->access = $access;
|
1459 |
+
}
|
1460 |
+
public function getAccess() {
|
1461 |
+
return $this->access;
|
1462 |
+
}
|
1463 |
+
public function setVolumesLastUpdated($volumesLastUpdated) {
|
1464 |
+
$this->volumesLastUpdated = $volumesLastUpdated;
|
1465 |
+
}
|
1466 |
+
public function getVolumesLastUpdated() {
|
1467 |
+
return $this->volumesLastUpdated;
|
1468 |
+
}
|
1469 |
+
public function setId($id) {
|
1470 |
+
$this->id = $id;
|
1471 |
+
}
|
1472 |
+
public function getId() {
|
1473 |
+
return $this->id;
|
1474 |
+
}
|
1475 |
+
public function setSelfLink($selfLink) {
|
1476 |
+
$this->selfLink = $selfLink;
|
1477 |
+
}
|
1478 |
+
public function getSelfLink() {
|
1479 |
+
return $this->selfLink;
|
1480 |
+
}
|
1481 |
+
}
|
1482 |
+
|
1483 |
+
class Google_Bookshelves extends Google_Model {
|
1484 |
+
protected $__itemsType = 'Google_Bookshelf';
|
1485 |
+
protected $__itemsDataType = 'array';
|
1486 |
+
public $items;
|
1487 |
+
public $kind;
|
1488 |
+
public function setItems(/* array(Google_Bookshelf) */ $items) {
|
1489 |
+
$this->assertIsArray($items, 'Google_Bookshelf', __METHOD__);
|
1490 |
+
$this->items = $items;
|
1491 |
+
}
|
1492 |
+
public function getItems() {
|
1493 |
+
return $this->items;
|
1494 |
+
}
|
1495 |
+
public function setKind($kind) {
|
1496 |
+
$this->kind = $kind;
|
1497 |
+
}
|
1498 |
+
public function getKind() {
|
1499 |
+
return $this->kind;
|
1500 |
+
}
|
1501 |
+
}
|
1502 |
+
|
1503 |
+
class Google_ConcurrentAccessRestriction extends Google_Model {
|
1504 |
+
public $nonce;
|
1505 |
+
public $kind;
|
1506 |
+
public $restricted;
|
1507 |
+
public $volumeId;
|
1508 |
+
public $maxConcurrentDevices;
|
1509 |
+
public $deviceAllowed;
|
1510 |
+
public $source;
|
1511 |
+
public $timeWindowSeconds;
|
1512 |
+
public $signature;
|
1513 |
+
public $reasonCode;
|
1514 |
+
public $message;
|
1515 |
+
public function setNonce($nonce) {
|
1516 |
+
$this->nonce = $nonce;
|
1517 |
+
}
|
1518 |
+
public function getNonce() {
|
1519 |
+
return $this->nonce;
|
1520 |
+
}
|
1521 |
+
public function setKind($kind) {
|
1522 |
+
$this->kind = $kind;
|
1523 |
+
}
|
1524 |
+
public function getKind() {
|
1525 |
+
return $this->kind;
|
1526 |
+
}
|
1527 |
+
public function setRestricted($restricted) {
|
1528 |
+
$this->restricted = $restricted;
|
1529 |
+
}
|
1530 |
+
public function getRestricted() {
|
1531 |
+
return $this->restricted;
|
1532 |
+
}
|
1533 |
+
public function setVolumeId($volumeId) {
|
1534 |
+
$this->volumeId = $volumeId;
|
1535 |
+
}
|
1536 |
+
public function getVolumeId() {
|
1537 |
+
return $this->volumeId;
|
1538 |
+
}
|
1539 |
+
public function setMaxConcurrentDevices($maxConcurrentDevices) {
|
1540 |
+
$this->maxConcurrentDevices = $maxConcurrentDevices;
|
1541 |
+
}
|
1542 |
+
public function getMaxConcurrentDevices() {
|
1543 |
+
return $this->maxConcurrentDevices;
|
1544 |
+
}
|
1545 |
+
public function setDeviceAllowed($deviceAllowed) {
|
1546 |
+
$this->deviceAllowed = $deviceAllowed;
|
1547 |
+
}
|
1548 |
+
public function getDeviceAllowed() {
|
1549 |
+
return $this->deviceAllowed;
|
1550 |
+
}
|
1551 |
+
public function setSource($source) {
|
1552 |
+
$this->source = $source;
|
1553 |
+
}
|
1554 |
+
public function getSource() {
|
1555 |
+
return $this->source;
|
1556 |
+
}
|
1557 |
+
public function setTimeWindowSeconds($timeWindowSeconds) {
|
1558 |
+
$this->timeWindowSeconds = $timeWindowSeconds;
|
1559 |
+
}
|
1560 |
+
public function getTimeWindowSeconds() {
|
1561 |
+
return $this->timeWindowSeconds;
|
1562 |
+
}
|
1563 |
+
public function setSignature($signature) {
|
1564 |
+
$this->signature = $signature;
|
1565 |
+
}
|
1566 |
+
public function getSignature() {
|
1567 |
+
return $this->signature;
|
1568 |
+
}
|
1569 |
+
public function setReasonCode($reasonCode) {
|
1570 |
+
$this->reasonCode = $reasonCode;
|
1571 |
+
}
|
1572 |
+
public function getReasonCode() {
|
1573 |
+
return $this->reasonCode;
|
1574 |
+
}
|
1575 |
+
public function setMessage($message) {
|
1576 |
+
$this->message = $message;
|
1577 |
+
}
|
1578 |
+
public function getMessage() {
|
1579 |
+
return $this->message;
|
1580 |
+
}
|
1581 |
+
}
|
1582 |
+
|
1583 |
+
class Google_DownloadAccessRestriction extends Google_Model {
|
1584 |
+
public $nonce;
|
1585 |
+
public $kind;
|
1586 |
+
public $justAcquired;
|
1587 |
+
public $maxDownloadDevices;
|
1588 |
+
public $downloadsAcquired;
|
1589 |
+
public $signature;
|
1590 |
+
public $volumeId;
|
1591 |
+
public $deviceAllowed;
|
1592 |
+
public $source;
|
1593 |
+
public $restricted;
|
1594 |
+
public $reasonCode;
|
1595 |
+
public $message;
|
1596 |
+
public function setNonce($nonce) {
|
1597 |
+
$this->nonce = $nonce;
|
1598 |
+
}
|
1599 |
+
public function getNonce() {
|
1600 |
+
return $this->nonce;
|
1601 |
+
}
|
1602 |
+
public function setKind($kind) {
|
1603 |
+
$this->kind = $kind;
|
1604 |
+
}
|
1605 |
+
public function getKind() {
|
1606 |
+
return $this->kind;
|
1607 |
+
}
|
1608 |
+
public function setJustAcquired($justAcquired) {
|
1609 |
+
$this->justAcquired = $justAcquired;
|
1610 |
+
}
|
1611 |
+
public function getJustAcquired() {
|
1612 |
+
return $this->justAcquired;
|
1613 |
+
}
|
1614 |
+
public function setMaxDownloadDevices($maxDownloadDevices) {
|
1615 |
+
$this->maxDownloadDevices = $maxDownloadDevices;
|
1616 |
+
}
|
1617 |
+
public function getMaxDownloadDevices() {
|
1618 |
+
return $this->maxDownloadDevices;
|
1619 |
+
}
|
1620 |
+
public function setDownloadsAcquired($downloadsAcquired) {
|
1621 |
+
$this->downloadsAcquired = $downloadsAcquired;
|
1622 |
+
}
|
1623 |
+
public function getDownloadsAcquired() {
|
1624 |
+
return $this->downloadsAcquired;
|
1625 |
+
}
|
1626 |
+
public function setSignature($signature) {
|
1627 |
+
$this->signature = $signature;
|
1628 |
+
}
|
1629 |
+
public function getSignature() {
|
1630 |
+
return $this->signature;
|
1631 |
+
}
|
1632 |
+
public function setVolumeId($volumeId) {
|
1633 |
+
$this->volumeId = $volumeId;
|
1634 |
+
}
|
1635 |
+
public function getVolumeId() {
|
1636 |
+
return $this->volumeId;
|
1637 |
+
}
|
1638 |
+
public function setDeviceAllowed($deviceAllowed) {
|
1639 |
+
$this->deviceAllowed = $deviceAllowed;
|
1640 |
+
}
|
1641 |
+
public function getDeviceAllowed() {
|
1642 |
+
return $this->deviceAllowed;
|
1643 |
+
}
|
1644 |
+
public function setSource($source) {
|
1645 |
+
$this->source = $source;
|
1646 |
+
}
|
1647 |
+
public function getSource() {
|
1648 |
+
return $this->source;
|
1649 |
+
}
|
1650 |
+
public function setRestricted($restricted) {
|
1651 |
+
$this->restricted = $restricted;
|
1652 |
+
}
|
1653 |
+
public function getRestricted() {
|
1654 |
+
return $this->restricted;
|
1655 |
+
}
|
1656 |
+
public function setReasonCode($reasonCode) {
|
1657 |
+
$this->reasonCode = $reasonCode;
|
1658 |
+
}
|
1659 |
+
public function getReasonCode() {
|
1660 |
+
return $this->reasonCode;
|
1661 |
+
}
|
1662 |
+
public function setMessage($message) {
|
1663 |
+
$this->message = $message;
|
1664 |
+
}
|
1665 |
+
public function getMessage() {
|
1666 |
+
return $this->message;
|
1667 |
+
}
|
1668 |
+
}
|
1669 |
+
|
1670 |
+
class Google_DownloadAccesses extends Google_Model {
|
1671 |
+
protected $__downloadAccessListType = 'Google_DownloadAccessRestriction';
|
1672 |
+
protected $__downloadAccessListDataType = 'array';
|
1673 |
+
public $downloadAccessList;
|
1674 |
+
public $kind;
|
1675 |
+
public function setDownloadAccessList(/* array(Google_DownloadAccessRestriction) */ $downloadAccessList) {
|
1676 |
+
$this->assertIsArray($downloadAccessList, 'Google_DownloadAccessRestriction', __METHOD__);
|
1677 |
+
$this->downloadAccessList = $downloadAccessList;
|
1678 |
+
}
|
1679 |
+
public function getDownloadAccessList() {
|
1680 |
+
return $this->downloadAccessList;
|
1681 |
+
}
|
1682 |
+
public function setKind($kind) {
|
1683 |
+
$this->kind = $kind;
|
1684 |
+
}
|
1685 |
+
public function getKind() {
|
1686 |
+
return $this->kind;
|
1687 |
+
}
|
1688 |
+
}
|
1689 |
+
|
1690 |
+
class Google_Layersummaries extends Google_Model {
|
1691 |
+
public $totalItems;
|
1692 |
+
protected $__itemsType = 'Google_Layersummary';
|
1693 |
+
protected $__itemsDataType = 'array';
|
1694 |
+
public $items;
|
1695 |
+
public $kind;
|
1696 |
+
public function setTotalItems($totalItems) {
|
1697 |
+
$this->totalItems = $totalItems;
|
1698 |
+
}
|
1699 |
+
public function getTotalItems() {
|
1700 |
+
return $this->totalItems;
|
1701 |
+
}
|
1702 |
+
public function setItems(/* array(Google_Layersummary) */ $items) {
|
1703 |
+
$this->assertIsArray($items, 'Google_Layersummary', __METHOD__);
|
1704 |
+
$this->items = $items;
|
1705 |
+
}
|
1706 |
+
public function getItems() {
|
1707 |
+
return $this->items;
|
1708 |
+
}
|
1709 |
+
public function setKind($kind) {
|
1710 |
+
$this->kind = $kind;
|
1711 |
+
}
|
1712 |
+
public function getKind() {
|
1713 |
+
return $this->kind;
|
1714 |
+
}
|
1715 |
+
}
|
1716 |
+
|
1717 |
+
class Google_Layersummary extends Google_Model {
|
1718 |
+
public $kind;
|
1719 |
+
public $annotationCount;
|
1720 |
+
public $dataCount;
|
1721 |
+
public $annotationsLink;
|
1722 |
+
public $updated;
|
1723 |
+
public $volumeId;
|
1724 |
+
public $id;
|
1725 |
+
public $annotationTypes;
|
1726 |
+
public $contentVersion;
|
1727 |
+
public $layerId;
|
1728 |
+
public $annotationsDataLink;
|
1729 |
+
public $selfLink;
|
1730 |
+
public function setKind($kind) {
|
1731 |
+
$this->kind = $kind;
|
1732 |
+
}
|
1733 |
+
public function getKind() {
|
1734 |
+
return $this->kind;
|
1735 |
+
}
|
1736 |
+
public function setAnnotationCount($annotationCount) {
|
1737 |
+
$this->annotationCount = $annotationCount;
|
1738 |
+
}
|
1739 |
+
public function getAnnotationCount() {
|
1740 |
+
return $this->annotationCount;
|
1741 |
+
}
|
1742 |
+
public function setDataCount($dataCount) {
|
1743 |
+
$this->dataCount = $dataCount;
|
1744 |
+
}
|
1745 |
+
public function getDataCount() {
|
1746 |
+
return $this->dataCount;
|
1747 |
+
}
|
1748 |
+
public function setAnnotationsLink($annotationsLink) {
|
1749 |
+
$this->annotationsLink = $annotationsLink;
|
1750 |
+
}
|
1751 |
+
public function getAnnotationsLink() {
|
1752 |
+
return $this->annotationsLink;
|
1753 |
+
}
|
1754 |
+
public function setUpdated($updated) {
|
1755 |
+
$this->updated = $updated;
|
1756 |
+
}
|
1757 |
+
public function getUpdated() {
|
1758 |
+
return $this->updated;
|
1759 |
+
}
|
1760 |
+
public function setVolumeId($volumeId) {
|
1761 |
+
$this->volumeId = $volumeId;
|
1762 |
+
}
|
1763 |
+
public function getVolumeId() {
|
1764 |
+
return $this->volumeId;
|
1765 |
+
}
|
1766 |
+
public function setId($id) {
|
1767 |
+
$this->id = $id;
|
1768 |
+
}
|
1769 |
+
public function getId() {
|
1770 |
+
return $this->id;
|
1771 |
+
}
|
1772 |
+
public function setAnnotationTypes(/* array(Google_string) */ $annotationTypes) {
|
1773 |
+
$this->assertIsArray($annotationTypes, 'Google_string', __METHOD__);
|
1774 |
+
$this->annotationTypes = $annotationTypes;
|
1775 |
+
}
|
1776 |
+
public function getAnnotationTypes() {
|
1777 |
+
return $this->annotationTypes;
|
1778 |
+
}
|
1779 |
+
public function setContentVersion($contentVersion) {
|
1780 |
+
$this->contentVersion = $contentVersion;
|
1781 |
+
}
|
1782 |
+
public function getContentVersion() {
|
1783 |
+
return $this->contentVersion;
|
1784 |
+
}
|
1785 |
+
public function setLayerId($layerId) {
|
1786 |
+
$this->layerId = $layerId;
|
1787 |
+
}
|
1788 |
+
public function getLayerId() {
|
1789 |
+
return $this->layerId;
|
1790 |
+
}
|
1791 |
+
public function setAnnotationsDataLink($annotationsDataLink) {
|
1792 |
+
$this->annotationsDataLink = $annotationsDataLink;
|
1793 |
+
}
|
1794 |
+
public function getAnnotationsDataLink() {
|
1795 |
+
return $this->annotationsDataLink;
|
1796 |
+
}
|
1797 |
+
public function setSelfLink($selfLink) {
|
1798 |
+
$this->selfLink = $selfLink;
|
1799 |
+
}
|
1800 |
+
public function getSelfLink() {
|
1801 |
+
return $this->selfLink;
|
1802 |
+
}
|
1803 |
+
}
|
1804 |
+
|
1805 |
+
class Google_ReadingPosition extends Google_Model {
|
1806 |
+
public $kind;
|
1807 |
+
public $gbImagePosition;
|
1808 |
+
public $epubCfiPosition;
|
1809 |
+
public $updated;
|
1810 |
+
public $volumeId;
|
1811 |
+
public $pdfPosition;
|
1812 |
+
public $gbTextPosition;
|
1813 |
+
public function setKind($kind) {
|
1814 |
+
$this->kind = $kind;
|
1815 |
+
}
|
1816 |
+
public function getKind() {
|
1817 |
+
return $this->kind;
|
1818 |
+
}
|
1819 |
+
public function setGbImagePosition($gbImagePosition) {
|
1820 |
+
$this->gbImagePosition = $gbImagePosition;
|
1821 |
+
}
|
1822 |
+
public function getGbImagePosition() {
|
1823 |
+
return $this->gbImagePosition;
|
1824 |
+
}
|
1825 |
+
public function setEpubCfiPosition($epubCfiPosition) {
|
1826 |
+
$this->epubCfiPosition = $epubCfiPosition;
|
1827 |
+
}
|
1828 |
+
public function getEpubCfiPosition() {
|
1829 |
+
return $this->epubCfiPosition;
|
1830 |
+
}
|
1831 |
+
public function setUpdated($updated) {
|
1832 |
+
$this->updated = $updated;
|
1833 |
+
}
|
1834 |
+
public function getUpdated() {
|
1835 |
+
return $this->updated;
|
1836 |
+
}
|
1837 |
+
public function setVolumeId($volumeId) {
|
1838 |
+
$this->volumeId = $volumeId;
|
1839 |
+
}
|
1840 |
+
public function getVolumeId() {
|
1841 |
+
return $this->volumeId;
|
1842 |
+
}
|
1843 |
+
public function setPdfPosition($pdfPosition) {
|
1844 |
+
$this->pdfPosition = $pdfPosition;
|
1845 |
+
}
|
1846 |
+
public function getPdfPosition() {
|
1847 |
+
return $this->pdfPosition;
|
1848 |
+
}
|
1849 |
+
public function setGbTextPosition($gbTextPosition) {
|
1850 |
+
$this->gbTextPosition = $gbTextPosition;
|
1851 |
+
}
|
1852 |
+
public function getGbTextPosition() {
|
1853 |
+
return $this->gbTextPosition;
|
1854 |
+
}
|
1855 |
+
}
|
1856 |
+
|
1857 |
+
class Google_RequestAccess extends Google_Model {
|
1858 |
+
protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
|
1859 |
+
protected $__downloadAccessDataType = '';
|
1860 |
+
public $downloadAccess;
|
1861 |
+
public $kind;
|
1862 |
+
protected $__concurrentAccessType = 'Google_ConcurrentAccessRestriction';
|
1863 |
+
protected $__concurrentAccessDataType = '';
|
1864 |
+
public $concurrentAccess;
|
1865 |
+
public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
|
1866 |
+
$this->downloadAccess = $downloadAccess;
|
1867 |
+
}
|
1868 |
+
public function getDownloadAccess() {
|
1869 |
+
return $this->downloadAccess;
|
1870 |
+
}
|
1871 |
+
public function setKind($kind) {
|
1872 |
+
$this->kind = $kind;
|
1873 |
+
}
|
1874 |
+
public function getKind() {
|
1875 |
+
return $this->kind;
|
1876 |
+
}
|
1877 |
+
public function setConcurrentAccess(Google_ConcurrentAccessRestriction $concurrentAccess) {
|
1878 |
+
$this->concurrentAccess = $concurrentAccess;
|
1879 |
+
}
|
1880 |
+
public function getConcurrentAccess() {
|
1881 |
+
return $this->concurrentAccess;
|
1882 |
+
}
|
1883 |
+
}
|
1884 |
+
|
1885 |
+
class Google_Review extends Google_Model {
|
1886 |
+
public $rating;
|
1887 |
+
public $kind;
|
1888 |
+
protected $__authorType = 'Google_ReviewAuthor';
|
1889 |
+
protected $__authorDataType = '';
|
1890 |
+
public $author;
|
1891 |
+
public $title;
|
1892 |
+
public $volumeId;
|
1893 |
+
public $content;
|
1894 |
+
protected $__sourceType = 'Google_ReviewSource';
|
1895 |
+
protected $__sourceDataType = '';
|
1896 |
+
public $source;
|
1897 |
+
public $date;
|
1898 |
+
public $type;
|
1899 |
+
public $fullTextUrl;
|
1900 |
+
public function setRating($rating) {
|
1901 |
+
$this->rating = $rating;
|
1902 |
+
}
|
1903 |
+
public function getRating() {
|
1904 |
+
return $this->rating;
|
1905 |
+
}
|
1906 |
+
public function setKind($kind) {
|
1907 |
+
$this->kind = $kind;
|
1908 |
+
}
|
1909 |
+
public function getKind() {
|
1910 |
+
return $this->kind;
|
1911 |
+
}
|
1912 |
+
public function setAuthor(Google_ReviewAuthor $author) {
|
1913 |
+
$this->author = $author;
|
1914 |
+
}
|
1915 |
+
public function getAuthor() {
|
1916 |
+
return $this->author;
|
1917 |
+
}
|
1918 |
+
public function setTitle($title) {
|
1919 |
+
$this->title = $title;
|
1920 |
+
}
|
1921 |
+
public function getTitle() {
|
1922 |
+
return $this->title;
|
1923 |
+
}
|
1924 |
+
public function setVolumeId($volumeId) {
|
1925 |
+
$this->volumeId = $volumeId;
|
1926 |
+
}
|
1927 |
+
public function getVolumeId() {
|
1928 |
+
return $this->volumeId;
|
1929 |
+
}
|
1930 |
+
public function setContent($content) {
|
1931 |
+
$this->content = $content;
|
1932 |
+
}
|
1933 |
+
public function getContent() {
|
1934 |
+
return $this->content;
|
1935 |
+
}
|
1936 |
+
public function setSource(Google_ReviewSource $source) {
|
1937 |
+
$this->source = $source;
|
1938 |
+
}
|
1939 |
+
public function getSource() {
|
1940 |
+
return $this->source;
|
1941 |
+
}
|
1942 |
+
public function setDate($date) {
|
1943 |
+
$this->date = $date;
|
1944 |
+
}
|
1945 |
+
public function getDate() {
|
1946 |
+
return $this->date;
|
1947 |
+
}
|
1948 |
+
public function setType($type) {
|
1949 |
+
$this->type = $type;
|
1950 |
+
}
|
1951 |
+
public function getType() {
|
1952 |
+
return $this->type;
|
1953 |
+
}
|
1954 |
+
public function setFullTextUrl($fullTextUrl) {
|
1955 |
+
$this->fullTextUrl = $fullTextUrl;
|
1956 |
+
}
|
1957 |
+
public function getFullTextUrl() {
|
1958 |
+
return $this->fullTextUrl;
|
1959 |
+
}
|
1960 |
+
}
|
1961 |
+
|
1962 |
+
class Google_ReviewAuthor extends Google_Model {
|
1963 |
+
public $displayName;
|
1964 |
+
public function setDisplayName($displayName) {
|
1965 |
+
$this->displayName = $displayName;
|
1966 |
+
}
|
1967 |
+
public function getDisplayName() {
|
1968 |
+
return $this->displayName;
|
1969 |
+
}
|
1970 |
+
}
|
1971 |
+
|
1972 |
+
class Google_ReviewSource extends Google_Model {
|
1973 |
+
public $extraDescription;
|
1974 |
+
public $url;
|
1975 |
+
public $description;
|
1976 |
+
public function setExtraDescription($extraDescription) {
|
1977 |
+
$this->extraDescription = $extraDescription;
|
1978 |
+
}
|
1979 |
+
public function getExtraDescription() {
|
1980 |
+
return $this->extraDescription;
|
1981 |
+
}
|
1982 |
+
public function setUrl($url) {
|
1983 |
+
$this->url = $url;
|
1984 |
+
}
|
1985 |
+
public function getUrl() {
|
1986 |
+
return $this->url;
|
1987 |
+
}
|
1988 |
+
public function setDescription($description) {
|
1989 |
+
$this->description = $description;
|
1990 |
+
}
|
1991 |
+
public function getDescription() {
|
1992 |
+
return $this->description;
|
1993 |
+
}
|
1994 |
+
}
|
1995 |
+
|
1996 |
+
class Google_Volume extends Google_Model {
|
1997 |
+
public $kind;
|
1998 |
+
protected $__accessInfoType = 'Google_VolumeAccessInfo';
|
1999 |
+
protected $__accessInfoDataType = '';
|
2000 |
+
public $accessInfo;
|
2001 |
+
protected $__searchInfoType = 'Google_VolumeSearchInfo';
|
2002 |
+
protected $__searchInfoDataType = '';
|
2003 |
+
public $searchInfo;
|
2004 |
+
protected $__saleInfoType = 'Google_VolumeSaleInfo';
|
2005 |
+
protected $__saleInfoDataType = '';
|
2006 |
+
public $saleInfo;
|
2007 |
+
public $etag;
|
2008 |
+
protected $__userInfoType = 'Google_VolumeUserInfo';
|
2009 |
+
protected $__userInfoDataType = '';
|
2010 |
+
public $userInfo;
|
2011 |
+
protected $__volumeInfoType = 'Google_VolumeVolumeInfo';
|
2012 |
+
protected $__volumeInfoDataType = '';
|
2013 |
+
public $volumeInfo;
|
2014 |
+
public $id;
|
2015 |
+
public $selfLink;
|
2016 |
+
public function setKind($kind) {
|
2017 |
+
$this->kind = $kind;
|
2018 |
+
}
|
2019 |
+
public function getKind() {
|
2020 |
+
return $this->kind;
|
2021 |
+
}
|
2022 |
+
public function setAccessInfo(Google_VolumeAccessInfo $accessInfo) {
|
2023 |
+
$this->accessInfo = $accessInfo;
|
2024 |
+
}
|
2025 |
+
public function getAccessInfo() {
|
2026 |
+
return $this->accessInfo;
|
2027 |
+
}
|
2028 |
+
public function setSearchInfo(Google_VolumeSearchInfo $searchInfo) {
|
2029 |
+
$this->searchInfo = $searchInfo;
|
2030 |
+
}
|
2031 |
+
public function getSearchInfo() {
|
2032 |
+
return $this->searchInfo;
|
2033 |
+
}
|
2034 |
+
public function setSaleInfo(Google_VolumeSaleInfo $saleInfo) {
|
2035 |
+
$this->saleInfo = $saleInfo;
|
2036 |
+
}
|
2037 |
+
public function getSaleInfo() {
|
2038 |
+
return $this->saleInfo;
|
2039 |
+
}
|
2040 |
+
public function setEtag($etag) {
|
2041 |
+
$this->etag = $etag;
|
2042 |
+
}
|
2043 |
+
public function getEtag() {
|
2044 |
+
return $this->etag;
|
2045 |
+
}
|
2046 |
+
public function setUserInfo(Google_VolumeUserInfo $userInfo) {
|
2047 |
+
$this->userInfo = $userInfo;
|
2048 |
+
}
|
2049 |
+
public function getUserInfo() {
|
2050 |
+
return $this->userInfo;
|
2051 |
+
}
|
2052 |
+
public function setVolumeInfo(Google_VolumeVolumeInfo $volumeInfo) {
|
2053 |
+
$this->volumeInfo = $volumeInfo;
|
2054 |
+
}
|
2055 |
+
public function getVolumeInfo() {
|
2056 |
+
return $this->volumeInfo;
|
2057 |
+
}
|
2058 |
+
public function setId($id) {
|
2059 |
+
$this->id = $id;
|
2060 |
+
}
|
2061 |
+
public function getId() {
|
2062 |
+
return $this->id;
|
2063 |
+
}
|
2064 |
+
public function setSelfLink($selfLink) {
|
2065 |
+
$this->selfLink = $selfLink;
|
2066 |
+
}
|
2067 |
+
public function getSelfLink() {
|
2068 |
+
return $this->selfLink;
|
2069 |
+
}
|
2070 |
+
}
|
2071 |
+
|
2072 |
+
class Google_VolumeAccessInfo extends Google_Model {
|
2073 |
+
public $webReaderLink;
|
2074 |
+
public $publicDomain;
|
2075 |
+
public $embeddable;
|
2076 |
+
protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
|
2077 |
+
protected $__downloadAccessDataType = '';
|
2078 |
+
public $downloadAccess;
|
2079 |
+
public $country;
|
2080 |
+
public $viewOrderUrl;
|
2081 |
+
public $textToSpeechPermission;
|
2082 |
+
protected $__pdfType = 'Google_VolumeAccessInfoPdf';
|
2083 |
+
protected $__pdfDataType = '';
|
2084 |
+
public $pdf;
|
2085 |
+
public $viewability;
|
2086 |
+
protected $__epubType = 'Google_VolumeAccessInfoEpub';
|
2087 |
+
protected $__epubDataType = '';
|
2088 |
+
public $epub;
|
2089 |
+
public $accessViewStatus;
|
2090 |
+
public function setWebReaderLink($webReaderLink) {
|
2091 |
+
$this->webReaderLink = $webReaderLink;
|
2092 |
+
}
|
2093 |
+
public function getWebReaderLink() {
|
2094 |
+
return $this->webReaderLink;
|
2095 |
+
}
|
2096 |
+
public function setPublicDomain($publicDomain) {
|
2097 |
+
$this->publicDomain = $publicDomain;
|
2098 |
+
}
|
2099 |
+
public function getPublicDomain() {
|
2100 |
+
return $this->publicDomain;
|
2101 |
+
}
|
2102 |
+
public function setEmbeddable($embeddable) {
|
2103 |
+
$this->embeddable = $embeddable;
|
2104 |
+
}
|
2105 |
+
public function getEmbeddable() {
|
2106 |
+
return $this->embeddable;
|
2107 |
+
}
|
2108 |
+
public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
|
2109 |
+
$this->downloadAccess = $downloadAccess;
|
2110 |
+
}
|
2111 |
+
public function getDownloadAccess() {
|
2112 |
+
return $this->downloadAccess;
|
2113 |
+
}
|
2114 |
+
public function setCountry($country) {
|
2115 |
+
$this->country = $country;
|
2116 |
+
}
|
2117 |
+
public function getCountry() {
|
2118 |
+
return $this->country;
|
2119 |
+
}
|
2120 |
+
public function setViewOrderUrl($viewOrderUrl) {
|
2121 |
+
$this->viewOrderUrl = $viewOrderUrl;
|
2122 |
+
}
|
2123 |
+
public function getViewOrderUrl() {
|
2124 |
+
return $this->viewOrderUrl;
|
2125 |
+
}
|
2126 |
+
public function setTextToSpeechPermission($textToSpeechPermission) {
|
2127 |
+
$this->textToSpeechPermission = $textToSpeechPermission;
|
2128 |
+
}
|
2129 |
+
public function getTextToSpeechPermission() {
|
2130 |
+
return $this->textToSpeechPermission;
|
2131 |
+
}
|
2132 |
+
public function setPdf(Google_VolumeAccessInfoPdf $pdf) {
|
2133 |
+
$this->pdf = $pdf;
|
2134 |
+
}
|
2135 |
+
public function getPdf() {
|
2136 |
+
return $this->pdf;
|
2137 |
+
}
|
2138 |
+
public function setViewability($viewability) {
|
2139 |
+
$this->viewability = $viewability;
|
2140 |
+
}
|
2141 |
+
public function getViewability() {
|
2142 |
+
return $this->viewability;
|
2143 |
+
}
|
2144 |
+
public function setEpub(Google_VolumeAccessInfoEpub $epub) {
|
2145 |
+
$this->epub = $epub;
|
2146 |
+
}
|
2147 |
+
public function getEpub() {
|
2148 |
+
return $this->epub;
|
2149 |
+
}
|
2150 |
+
public function setAccessViewStatus($accessViewStatus) {
|
2151 |
+
$this->accessViewStatus = $accessViewStatus;
|
2152 |
+
}
|
2153 |
+
public function getAccessViewStatus() {
|
2154 |
+
return $this->accessViewStatus;
|
2155 |
+
}
|
2156 |
+
}
|
2157 |
+
|
2158 |
+
class Google_VolumeAccessInfoEpub extends Google_Model {
|
2159 |
+
public $isAvailable;
|
2160 |
+
public $downloadLink;
|
2161 |
+
public $acsTokenLink;
|
2162 |
+
public function setIsAvailable($isAvailable) {
|
2163 |
+
$this->isAvailable = $isAvailable;
|
2164 |
+
}
|
2165 |
+
public function getIsAvailable() {
|
2166 |
+
return $this->isAvailable;
|
2167 |
+
}
|
2168 |
+
public function setDownloadLink($downloadLink) {
|
2169 |
+
$this->downloadLink = $downloadLink;
|
2170 |
+
}
|
2171 |
+
public function getDownloadLink() {
|
2172 |
+
return $this->downloadLink;
|
2173 |
+
}
|
2174 |
+
public function setAcsTokenLink($acsTokenLink) {
|
2175 |
+
$this->acsTokenLink = $acsTokenLink;
|
2176 |
+
}
|
2177 |
+
public function getAcsTokenLink() {
|
2178 |
+
return $this->acsTokenLink;
|
2179 |
+
}
|
2180 |
+
}
|
2181 |
+
|
2182 |
+
class Google_VolumeAccessInfoPdf extends Google_Model {
|
2183 |
+
public $isAvailable;
|
2184 |
+
public $downloadLink;
|
2185 |
+
public $acsTokenLink;
|
2186 |
+
public function setIsAvailable($isAvailable) {
|
2187 |
+
$this->isAvailable = $isAvailable;
|
2188 |
+
}
|
2189 |
+
public function getIsAvailable() {
|
2190 |
+
return $this->isAvailable;
|
2191 |
+
}
|
2192 |
+
public function setDownloadLink($downloadLink) {
|
2193 |
+
$this->downloadLink = $downloadLink;
|
2194 |
+
}
|
2195 |
+
public function getDownloadLink() {
|
2196 |
+
return $this->downloadLink;
|
2197 |
+
}
|
2198 |
+
public function setAcsTokenLink($acsTokenLink) {
|
2199 |
+
$this->acsTokenLink = $acsTokenLink;
|
2200 |
+
}
|
2201 |
+
public function getAcsTokenLink() {
|
2202 |
+
return $this->acsTokenLink;
|
2203 |
+
}
|
2204 |
+
}
|
2205 |
+
|
2206 |
+
class Google_VolumeSaleInfo extends Google_Model {
|
2207 |
+
public $country;
|
2208 |
+
protected $__retailPriceType = 'Google_VolumeSaleInfoRetailPrice';
|
2209 |
+
protected $__retailPriceDataType = '';
|
2210 |
+
public $retailPrice;
|
2211 |
+
public $isEbook;
|
2212 |
+
public $saleability;
|
2213 |
+
public $buyLink;
|
2214 |
+
public $onSaleDate;
|
2215 |
+
protected $__listPriceType = 'Google_VolumeSaleInfoListPrice';
|
2216 |
+
protected $__listPriceDataType = '';
|
2217 |
+
public $listPrice;
|
2218 |
+
public function setCountry($country) {
|
2219 |
+
$this->country = $country;
|
2220 |
+
}
|
2221 |
+
public function getCountry() {
|
2222 |
+
return $this->country;
|
2223 |
+
}
|
2224 |
+
public function setRetailPrice(Google_VolumeSaleInfoRetailPrice $retailPrice) {
|
2225 |
+
$this->retailPrice = $retailPrice;
|
2226 |
+
}
|
2227 |
+
public function getRetailPrice() {
|
2228 |
+
return $this->retailPrice;
|
2229 |
+
}
|
2230 |
+
public function setIsEbook($isEbook) {
|
2231 |
+
$this->isEbook = $isEbook;
|
2232 |
+
}
|
2233 |
+
public function getIsEbook() {
|
2234 |
+
return $this->isEbook;
|
2235 |
+
}
|
2236 |
+
public function setSaleability($saleability) {
|
2237 |
+
$this->saleability = $saleability;
|
2238 |
+
}
|
2239 |
+
public function getSaleability() {
|
2240 |
+
return $this->saleability;
|
2241 |
+
}
|
2242 |
+
public function setBuyLink($buyLink) {
|
2243 |
+
$this->buyLink = $buyLink;
|
2244 |
+
}
|
2245 |
+
public function getBuyLink() {
|
2246 |
+
return $this->buyLink;
|
2247 |
+
}
|
2248 |
+
public function setOnSaleDate($onSaleDate) {
|
2249 |
+
$this->onSaleDate = $onSaleDate;
|
2250 |
+
}
|
2251 |
+
public function getOnSaleDate() {
|
2252 |
+
return $this->onSaleDate;
|
2253 |
+
}
|
2254 |
+
public function setListPrice(Google_VolumeSaleInfoListPrice $listPrice) {
|
2255 |
+
$this->listPrice = $listPrice;
|
2256 |
+
}
|
2257 |
+
public function getListPrice() {
|
2258 |
+
return $this->listPrice;
|
2259 |
+
}
|
2260 |
+
}
|
2261 |
+
|
2262 |
+
class Google_VolumeSaleInfoListPrice extends Google_Model {
|
2263 |
+
public $amount;
|
2264 |
+
public $currencyCode;
|
2265 |
+
public function setAmount($amount) {
|
2266 |
+
$this->amount = $amount;
|
2267 |
+
}
|
2268 |
+
public function getAmount() {
|
2269 |
+
return $this->amount;
|
2270 |
+
}
|
2271 |
+
public function setCurrencyCode($currencyCode) {
|
2272 |
+
$this->currencyCode = $currencyCode;
|
2273 |
+
}
|
2274 |
+
public function getCurrencyCode() {
|
2275 |
+
return $this->currencyCode;
|
2276 |
+
}
|
2277 |
+
}
|
2278 |
+
|
2279 |
+
class Google_VolumeSaleInfoRetailPrice extends Google_Model {
|
2280 |
+
public $amount;
|
2281 |
+
public $currencyCode;
|
2282 |
+
public function setAmount($amount) {
|
2283 |
+
$this->amount = $amount;
|
2284 |
+
}
|
2285 |
+
public function getAmount() {
|
2286 |
+
return $this->amount;
|
2287 |
+
}
|
2288 |
+
public function setCurrencyCode($currencyCode) {
|
2289 |
+
$this->currencyCode = $currencyCode;
|
2290 |
+
}
|
2291 |
+
public function getCurrencyCode() {
|
2292 |
+
return $this->currencyCode;
|
2293 |
+
}
|
2294 |
+
}
|
2295 |
+
|
2296 |
+
class Google_VolumeSearchInfo extends Google_Model {
|
2297 |
+
public $textSnippet;
|
2298 |
+
public function setTextSnippet($textSnippet) {
|
2299 |
+
$this->textSnippet = $textSnippet;
|
2300 |
+
}
|
2301 |
+
public function getTextSnippet() {
|
2302 |
+
return $this->textSnippet;
|
2303 |
+
}
|
2304 |
+
}
|
2305 |
+
|
2306 |
+
class Google_VolumeUserInfo extends Google_Model {
|
2307 |
+
public $isInMyBooks;
|
2308 |
+
public $updated;
|
2309 |
+
protected $__reviewType = 'Google_Review';
|
2310 |
+
protected $__reviewDataType = '';
|
2311 |
+
public $review;
|
2312 |
+
public $isPurchased;
|
2313 |
+
protected $__readingPositionType = 'Google_ReadingPosition';
|
2314 |
+
protected $__readingPositionDataType = '';
|
2315 |
+
public $readingPosition;
|
2316 |
+
public $isPreordered;
|
2317 |
+
public function setIsInMyBooks($isInMyBooks) {
|
2318 |
+
$this->isInMyBooks = $isInMyBooks;
|
2319 |
+
}
|
2320 |
+
public function getIsInMyBooks() {
|
2321 |
+
return $this->isInMyBooks;
|
2322 |
+
}
|
2323 |
+
public function setUpdated($updated) {
|
2324 |
+
$this->updated = $updated;
|
2325 |
+
}
|
2326 |
+
public function getUpdated() {
|
2327 |
+
return $this->updated;
|
2328 |
+
}
|
2329 |
+
public function setReview(Google_Review $review) {
|
2330 |
+
$this->review = $review;
|
2331 |
+
}
|
2332 |
+
public function getReview() {
|
2333 |
+
return $this->review;
|
2334 |
+
}
|
2335 |
+
public function setIsPurchased($isPurchased) {
|
2336 |
+
$this->isPurchased = $isPurchased;
|
2337 |
+
}
|
2338 |
+
public function getIsPurchased() {
|
2339 |
+
return $this->isPurchased;
|
2340 |
+
}
|
2341 |
+
public function setReadingPosition(Google_ReadingPosition $readingPosition) {
|
2342 |
+
$this->readingPosition = $readingPosition;
|
2343 |
+
}
|
2344 |
+
public function getReadingPosition() {
|
2345 |
+
return $this->readingPosition;
|
2346 |
+
}
|
2347 |
+
public function setIsPreordered($isPreordered) {
|
2348 |
+
$this->isPreordered = $isPreordered;
|
2349 |
+
}
|
2350 |
+
public function getIsPreordered() {
|
2351 |
+
return $this->isPreordered;
|
2352 |
+
}
|
2353 |
+
}
|
2354 |
+
|
2355 |
+
class Google_VolumeVolumeInfo extends Google_Model {
|
2356 |
+
public $publisher;
|
2357 |
+
public $subtitle;
|
2358 |
+
public $description;
|
2359 |
+
public $language;
|
2360 |
+
public $pageCount;
|
2361 |
+
protected $__imageLinksType = 'Google_VolumeVolumeInfoImageLinks';
|
2362 |
+
protected $__imageLinksDataType = '';
|
2363 |
+
public $imageLinks;
|
2364 |
+
public $publishedDate;
|
2365 |
+
public $previewLink;
|
2366 |
+
public $printType;
|
2367 |
+
public $ratingsCount;
|
2368 |
+
public $mainCategory;
|
2369 |
+
protected $__dimensionsType = 'Google_VolumeVolumeInfoDimensions';
|
2370 |
+
protected $__dimensionsDataType = '';
|
2371 |
+
public $dimensions;
|
2372 |
+
public $contentVersion;
|
2373 |
+
protected $__industryIdentifiersType = 'Google_VolumeVolumeInfoIndustryIdentifiers';
|
2374 |
+
protected $__industryIdentifiersDataType = 'array';
|
2375 |
+
public $industryIdentifiers;
|
2376 |
+
public $authors;
|
2377 |
+
public $title;
|
2378 |
+
public $canonicalVolumeLink;
|
2379 |
+
public $infoLink;
|
2380 |
+
public $categories;
|
2381 |
+
public $averageRating;
|
2382 |
+
public function setPublisher($publisher) {
|
2383 |
+
$this->publisher = $publisher;
|
2384 |
+
}
|
2385 |
+
public function getPublisher() {
|
2386 |
+
return $this->publisher;
|
2387 |
+
}
|
2388 |
+
public function setSubtitle($subtitle) {
|
2389 |
+
$this->subtitle = $subtitle;
|
2390 |
+
}
|
2391 |
+
public function getSubtitle() {
|
2392 |
+
return $this->subtitle;
|
2393 |
+
}
|
2394 |
+
public function setDescription($description) {
|
2395 |
+
$this->description = $description;
|
2396 |
+
}
|
2397 |
+
public function getDescription() {
|
2398 |
+
return $this->description;
|
2399 |
+
}
|
2400 |
+
public function setLanguage($language) {
|
2401 |
+
$this->language = $language;
|
2402 |
+
}
|
2403 |
+
public function getLanguage() {
|
2404 |
+
return $this->language;
|
2405 |
+
}
|
2406 |
+
public function setPageCount($pageCount) {
|
2407 |
+
$this->pageCount = $pageCount;
|
2408 |
+
}
|
2409 |
+
public function getPageCount() {
|
2410 |
+
return $this->pageCount;
|
2411 |
+
}
|
2412 |
+
public function setImageLinks(Google_VolumeVolumeInfoImageLinks $imageLinks) {
|
2413 |
+
$this->imageLinks = $imageLinks;
|
2414 |
+
}
|
2415 |
+
public function getImageLinks() {
|
2416 |
+
return $this->imageLinks;
|
2417 |
+
}
|
2418 |
+
public function setPublishedDate($publishedDate) {
|
2419 |
+
$this->publishedDate = $publishedDate;
|
2420 |
+
}
|
2421 |
+
public function getPublishedDate() {
|
2422 |
+
return $this->publishedDate;
|
2423 |
+
}
|
2424 |
+
public function setPreviewLink($previewLink) {
|
2425 |
+
$this->previewLink = $previewLink;
|
2426 |
+
}
|
2427 |
+
public function getPreviewLink() {
|
2428 |
+
return $this->previewLink;
|
2429 |
+
}
|
2430 |
+
public function setPrintType($printType) {
|
2431 |
+
$this->printType = $printType;
|
2432 |
+
}
|
2433 |
+
public function getPrintType() {
|
2434 |
+
return $this->printType;
|
2435 |
+
}
|
2436 |
+
public function setRatingsCount($ratingsCount) {
|
2437 |
+
$this->ratingsCount = $ratingsCount;
|
2438 |
+
}
|
2439 |
+
public function getRatingsCount() {
|
2440 |
+
return $this->ratingsCount;
|
2441 |
+
}
|
2442 |
+
public function setMainCategory($mainCategory) {
|
2443 |
+
$this->mainCategory = $mainCategory;
|
2444 |
+
}
|
2445 |
+
public function getMainCategory() {
|
2446 |
+
return $this->mainCategory;
|
2447 |
+
}
|
2448 |
+
public function setDimensions(Google_VolumeVolumeInfoDimensions $dimensions) {
|
2449 |
+
$this->dimensions = $dimensions;
|
2450 |
+
}
|
2451 |
+
public function getDimensions() {
|
2452 |
+
return $this->dimensions;
|
2453 |
+
}
|
2454 |
+
public function setContentVersion($contentVersion) {
|
2455 |
+
$this->contentVersion = $contentVersion;
|
2456 |
+
}
|
2457 |
+
public function getContentVersion() {
|
2458 |
+
return $this->contentVersion;
|
2459 |
+
}
|
2460 |
+
public function setIndustryIdentifiers(/* array(Google_VolumeVolumeInfoIndustryIdentifiers) */ $industryIdentifiers) {
|
2461 |
+
$this->assertIsArray($industryIdentifiers, 'Google_VolumeVolumeInfoIndustryIdentifiers', __METHOD__);
|
2462 |
+
$this->industryIdentifiers = $industryIdentifiers;
|
2463 |
+
}
|
2464 |
+
public function getIndustryIdentifiers() {
|
2465 |
+
return $this->industryIdentifiers;
|
2466 |
+
}
|
2467 |
+
public function setAuthors(/* array(Google_string) */ $authors) {
|
2468 |
+
$this->assertIsArray($authors, 'Google_string', __METHOD__);
|
2469 |
+
$this->authors = $authors;
|
2470 |
+
}
|
2471 |
+
public function getAuthors() {
|
2472 |
+
return $this->authors;
|
2473 |
+
}
|
2474 |
+
public function setTitle($title) {
|
2475 |
+
$this->title = $title;
|
2476 |
+
}
|
2477 |
+
public function getTitle() {
|
2478 |
+
return $this->title;
|
2479 |
+
}
|
2480 |
+
public function setCanonicalVolumeLink($canonicalVolumeLink) {
|
2481 |
+
$this->canonicalVolumeLink = $canonicalVolumeLink;
|
2482 |
+
}
|
2483 |
+
public function getCanonicalVolumeLink() {
|
2484 |
+
return $this->canonicalVolumeLink;
|
2485 |
+
}
|
2486 |
+
public function setInfoLink($infoLink) {
|
2487 |
+
$this->infoLink = $infoLink;
|
2488 |
+
}
|
2489 |
+
public function getInfoLink() {
|
2490 |
+
return $this->infoLink;
|
2491 |
+
}
|
2492 |
+
public function setCategories(/* array(Google_string) */ $categories) {
|
2493 |
+
$this->assertIsArray($categories, 'Google_string', __METHOD__);
|
2494 |
+
$this->categories = $categories;
|
2495 |
+
}
|
2496 |
+
public function getCategories() {
|
2497 |
+
return $this->categories;
|
2498 |
+
}
|
2499 |
+
public function setAverageRating($averageRating) {
|
2500 |
+
$this->averageRating = $averageRating;
|
2501 |
+
}
|
2502 |
+
public function getAverageRating() {
|
2503 |
+
return $this->averageRating;
|
2504 |
+
}
|
2505 |
+
}
|
2506 |
+
|
2507 |
+
class Google_VolumeVolumeInfoDimensions extends Google_Model {
|
2508 |
+
public $width;
|
2509 |
+
public $thickness;
|
2510 |
+
public $height;
|
2511 |
+
public function setWidth($width) {
|
2512 |
+
$this->width = $width;
|
2513 |
+
}
|
2514 |
+
public function getWidth() {
|
2515 |
+
return $this->width;
|
2516 |
+
}
|
2517 |
+
public function setThickness($thickness) {
|
2518 |
+
$this->thickness = $thickness;
|
2519 |
+
}
|
2520 |
+
public function getThickness() {
|
2521 |
+
return $this->thickness;
|
2522 |
+
}
|
2523 |
+
public function setHeight($height) {
|
2524 |
+
$this->height = $height;
|
2525 |
+
}
|
2526 |
+
public function getHeight() {
|
2527 |
+
return $this->height;
|
2528 |
+
}
|
2529 |
+
}
|
2530 |
+
|
2531 |
+
class Google_VolumeVolumeInfoImageLinks extends Google_Model {
|
2532 |
+
public $medium;
|
2533 |
+
public $smallThumbnail;
|
2534 |
+
public $large;
|
2535 |
+
public $extraLarge;
|
2536 |
+
public $small;
|
2537 |
+
public $thumbnail;
|
2538 |
+
public function setMedium($medium) {
|
2539 |
+
$this->medium = $medium;
|
2540 |
+
}
|
2541 |
+
public function getMedium() {
|
2542 |
+
return $this->medium;
|
2543 |
+
}
|
2544 |
+
public function setSmallThumbnail($smallThumbnail) {
|
2545 |
+
$this->smallThumbnail = $smallThumbnail;
|
2546 |
+
}
|
2547 |
+
public function getSmallThumbnail() {
|
2548 |
+
return $this->smallThumbnail;
|
2549 |
+
}
|
2550 |
+
public function setLarge($large) {
|
2551 |
+
$this->large = $large;
|
2552 |
+
}
|
2553 |
+
public function getLarge() {
|
2554 |
+
return $this->large;
|
2555 |
+
}
|
2556 |
+
public function setExtraLarge($extraLarge) {
|
2557 |
+
$this->extraLarge = $extraLarge;
|
2558 |
+
}
|
2559 |
+
public function getExtraLarge() {
|
2560 |
+
return $this->extraLarge;
|
2561 |
+
}
|
2562 |
+
public function setSmall($small) {
|
2563 |
+
$this->small = $small;
|
2564 |
+
}
|
2565 |
+
public function getSmall() {
|
2566 |
+
return $this->small;
|
2567 |
+
}
|
2568 |
+
public function setThumbnail($thumbnail) {
|
2569 |
+
$this->thumbnail = $thumbnail;
|
2570 |
+
}
|
2571 |
+
public function getThumbnail() {
|
2572 |
+
return $this->thumbnail;
|
2573 |
+
}
|
2574 |
+
}
|
2575 |
+
|
2576 |
+
class Google_VolumeVolumeInfoIndustryIdentifiers extends Google_Model {
|
2577 |
+
public $identifier;
|
2578 |
+
public $type;
|
2579 |
+
public function setIdentifier($identifier) {
|
2580 |
+
$this->identifier = $identifier;
|
2581 |
+
}
|
2582 |
+
public function getIdentifier() {
|
2583 |
+
return $this->identifier;
|
2584 |
+
}
|
2585 |
+
public function setType($type) {
|
2586 |
+
$this->type = $type;
|
2587 |
+
}
|
2588 |
+
public function getType() {
|
2589 |
+
return $this->type;
|
2590 |
+
}
|
2591 |
+
}
|
2592 |
+
|
2593 |
+
class Google_Volumeannotation extends Google_Model {
|
2594 |
+
public $annotationType;
|
2595 |
+
public $kind;
|
2596 |
+
public $updated;
|
2597 |
+
public $deleted;
|
2598 |
+
protected $__contentRangesType = 'Google_VolumeannotationContentRanges';
|
2599 |
+
protected $__contentRangesDataType = '';
|
2600 |
+
public $contentRanges;
|
2601 |
+
public $selectedText;
|
2602 |
+
public $volumeId;
|
2603 |
+
public $annotationDataId;
|
2604 |
+
public $annotationDataLink;
|
2605 |
+
public $pageIds;
|
2606 |
+
public $layerId;
|
2607 |
+
public $data;
|
2608 |
+
public $id;
|
2609 |
+
public $selfLink;
|
2610 |
+
public function setAnnotationType($annotationType) {
|
2611 |
+
$this->annotationType = $annotationType;
|
2612 |
+
}
|
2613 |
+
public function getAnnotationType() {
|
2614 |
+
return $this->annotationType;
|
2615 |
+
}
|
2616 |
+
public function setKind($kind) {
|
2617 |
+
$this->kind = $kind;
|
2618 |
+
}
|
2619 |
+
public function getKind() {
|
2620 |
+
return $this->kind;
|
2621 |
+
}
|
2622 |
+
public function setUpdated($updated) {
|
2623 |
+
$this->updated = $updated;
|
2624 |
+
}
|
2625 |
+
public function getUpdated() {
|
2626 |
+
return $this->updated;
|
2627 |
+
}
|
2628 |
+
public function setDeleted($deleted) {
|
2629 |
+
$this->deleted = $deleted;
|
2630 |
+
}
|
2631 |
+
public function getDeleted() {
|
2632 |
+
return $this->deleted;
|
2633 |
+
}
|
2634 |
+
public function setContentRanges(Google_VolumeannotationContentRanges $contentRanges) {
|
2635 |
+
$this->contentRanges = $contentRanges;
|
2636 |
+
}
|
2637 |
+
public function getContentRanges() {
|
2638 |
+
return $this->contentRanges;
|
2639 |
+
}
|
2640 |
+
public function setSelectedText($selectedText) {
|
2641 |
+
$this->selectedText = $selectedText;
|
2642 |
+
}
|
2643 |
+
public function getSelectedText() {
|
2644 |
+
return $this->selectedText;
|
2645 |
+
}
|
2646 |
+
public function setVolumeId($volumeId) {
|
2647 |
+
$this->volumeId = $volumeId;
|
2648 |
+
}
|
2649 |
+
public function getVolumeId() {
|
2650 |
+
return $this->volumeId;
|
2651 |
+
}
|
2652 |
+
public function setAnnotationDataId($annotationDataId) {
|
2653 |
+
$this->annotationDataId = $annotationDataId;
|
2654 |
+
}
|
2655 |
+
public function getAnnotationDataId() {
|
2656 |
+
return $this->annotationDataId;
|
2657 |
+
}
|
2658 |
+
public function setAnnotationDataLink($annotationDataLink) {
|
2659 |
+
$this->annotationDataLink = $annotationDataLink;
|
2660 |
+
}
|
2661 |
+
public function getAnnotationDataLink() {
|
2662 |
+
return $this->annotationDataLink;
|
2663 |
+
}
|
2664 |
+
public function setPageIds(/* array(Google_string) */ $pageIds) {
|
2665 |
+
$this->assertIsArray($pageIds, 'Google_string', __METHOD__);
|
2666 |
+
$this->pageIds = $pageIds;
|
2667 |
+
}
|
2668 |
+
public function getPageIds() {
|
2669 |
+
return $this->pageIds;
|
2670 |
+
}
|
2671 |
+
public function setLayerId($layerId) {
|
2672 |
+
$this->layerId = $layerId;
|
2673 |
+
}
|
2674 |
+
public function getLayerId() {
|
2675 |
+
return $this->layerId;
|
2676 |
+
}
|
2677 |
+
public function setData($data) {
|
2678 |
+
$this->data = $data;
|
2679 |
+
}
|
2680 |
+
public function getData() {
|
2681 |
+
return $this->data;
|
2682 |
+
}
|
2683 |
+
public function setId($id) {
|
2684 |
+
$this->id = $id;
|
2685 |
+
}
|
2686 |
+
public function getId() {
|
2687 |
+
return $this->id;
|
2688 |
+
}
|
2689 |
+
public function setSelfLink($selfLink) {
|
2690 |
+
$this->selfLink = $selfLink;
|
2691 |
+
}
|
2692 |
+
public function getSelfLink() {
|
2693 |
+
return $this->selfLink;
|
2694 |
+
}
|
2695 |
+
}
|
2696 |
+
|
2697 |
+
class Google_VolumeannotationContentRanges extends Google_Model {
|
2698 |
+
public $contentVersion;
|
2699 |
+
protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
|
2700 |
+
protected $__gbTextRangeDataType = '';
|
2701 |
+
public $gbTextRange;
|
2702 |
+
protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
|
2703 |
+
protected $__cfiRangeDataType = '';
|
2704 |
+
public $cfiRange;
|
2705 |
+
protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
|
2706 |
+
protected $__gbImageRangeDataType = '';
|
2707 |
+
public $gbImageRange;
|
2708 |
+
public function setContentVersion($contentVersion) {
|
2709 |
+
$this->contentVersion = $contentVersion;
|
2710 |
+
}
|
2711 |
+
public function getContentVersion() {
|
2712 |
+
return $this->contentVersion;
|
2713 |
+
}
|
2714 |
+
public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
|
2715 |
+
$this->gbTextRange = $gbTextRange;
|
2716 |
+
}
|
2717 |
+
public function getGbTextRange() {
|
2718 |
+
return $this->gbTextRange;
|
2719 |
+
}
|
2720 |
+
public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
|
2721 |
+
$this->cfiRange = $cfiRange;
|
2722 |
+
}
|
2723 |
+
public function getCfiRange() {
|
2724 |
+
return $this->cfiRange;
|
2725 |
+
}
|
2726 |
+
public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
|
2727 |
+
$this->gbImageRange = $gbImageRange;
|
2728 |
+
}
|
2729 |
+
public function getGbImageRange() {
|
2730 |
+
return $this->gbImageRange;
|
2731 |
+
}
|
2732 |
+
}
|
2733 |
+
|
2734 |
+
class Google_Volumeannotations extends Google_Model {
|
2735 |
+
public $nextPageToken;
|
2736 |
+
protected $__itemsType = 'Google_Volumeannotation';
|
2737 |
+
protected $__itemsDataType = 'array';
|
2738 |
+
public $items;
|
2739 |
+
public $kind;
|
2740 |
+
public $totalItems;
|
2741 |
+
public function setNextPageToken($nextPageToken) {
|
2742 |
+
$this->nextPageToken = $nextPageToken;
|
2743 |
+
}
|
2744 |
+
public function getNextPageToken() {
|
2745 |
+
return $this->nextPageToken;
|
2746 |
+
}
|
2747 |
+
public function setItems(/* array(Google_Volumeannotation) */ $items) {
|
2748 |
+
$this->assertIsArray($items, 'Google_Volumeannotation', __METHOD__);
|
2749 |
+
$this->items = $items;
|
2750 |
+
}
|
2751 |
+
public function getItems() {
|
2752 |
+
return $this->items;
|
2753 |
+
}
|
2754 |
+
public function setKind($kind) {
|
2755 |
+
$this->kind = $kind;
|
2756 |
+
}
|
2757 |
+
public function getKind() {
|
2758 |
+
return $this->kind;
|
2759 |
+
}
|
2760 |
+
public function setTotalItems($totalItems) {
|
2761 |
+
$this->totalItems = $totalItems;
|
2762 |
+
}
|
2763 |
+
public function getTotalItems() {
|
2764 |
+
return $this->totalItems;
|
2765 |
+
}
|
2766 |
+
}
|
2767 |
+
|
2768 |
+
class Google_Volumes extends Google_Model {
|
2769 |
+
public $totalItems;
|
2770 |
+
protected $__itemsType = 'Google_Volume';
|
2771 |
+
protected $__itemsDataType = 'array';
|
2772 |
+
public $items;
|
2773 |
+
public $kind;
|
2774 |
+
public function setTotalItems($totalItems) {
|
2775 |
+
$this->totalItems = $totalItems;
|
2776 |
+
}
|
2777 |
+
public function getTotalItems() {
|
2778 |
+
return $this->totalItems;
|
2779 |
+
}
|
2780 |
+
public function setItems(/* array(Google_Volume) */ $items) {
|
2781 |
+
$this->assertIsArray($items, 'Google_Volume', __METHOD__);
|
2782 |
+
$this->items = $items;
|
2783 |
+
}
|
2784 |
+
public function getItems() {
|
2785 |
+
return $this->items;
|
2786 |
+
}
|
2787 |
+
public function setKind($kind) {
|
2788 |
+
$this->kind = $kind;
|
2789 |
+
}
|
2790 |
+
public function getKind() {
|
2791 |
+
return $this->kind;
|
2792 |
+
}
|
2793 |
+
}
|
lib/SocialLogin/contrib/Google_CalendarService.php
ADDED
@@ -0,0 +1,1931 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "freebusy" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $calendarService = new Google_CalendarService(...);
|
22 |
+
* $freebusy = $calendarService->freebusy;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_FreebusyServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Returns free/busy information for a set of calendars. (freebusy.query)
|
30 |
+
*
|
31 |
+
* @param Google_FreeBusyRequest $postBody
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
* @return Google_FreeBusyResponse
|
34 |
+
*/
|
35 |
+
public function query(Google_FreeBusyRequest $postBody, $optParams = array()) {
|
36 |
+
$params = array('postBody' => $postBody);
|
37 |
+
$params = array_merge($params, $optParams);
|
38 |
+
$data = $this->__call('query', array($params));
|
39 |
+
if ($this->useObjects()) {
|
40 |
+
return new Google_FreeBusyResponse($data);
|
41 |
+
} else {
|
42 |
+
return $data;
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* The "settings" collection of methods.
|
49 |
+
* Typical usage is:
|
50 |
+
* <code>
|
51 |
+
* $calendarService = new Google_CalendarService(...);
|
52 |
+
* $settings = $calendarService->settings;
|
53 |
+
* </code>
|
54 |
+
*/
|
55 |
+
class Google_SettingsServiceResource extends Google_ServiceResource {
|
56 |
+
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Returns all user settings for the authenticated user. (settings.list)
|
60 |
+
*
|
61 |
+
* @param array $optParams Optional parameters.
|
62 |
+
* @return Google_Settings
|
63 |
+
*/
|
64 |
+
public function listSettings($optParams = array()) {
|
65 |
+
$params = array();
|
66 |
+
$params = array_merge($params, $optParams);
|
67 |
+
$data = $this->__call('list', array($params));
|
68 |
+
if ($this->useObjects()) {
|
69 |
+
return new Google_Settings($data);
|
70 |
+
} else {
|
71 |
+
return $data;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
/**
|
75 |
+
* Returns a single user setting. (settings.get)
|
76 |
+
*
|
77 |
+
* @param string $setting Name of the user setting.
|
78 |
+
* @param array $optParams Optional parameters.
|
79 |
+
* @return Google_Setting
|
80 |
+
*/
|
81 |
+
public function get($setting, $optParams = array()) {
|
82 |
+
$params = array('setting' => $setting);
|
83 |
+
$params = array_merge($params, $optParams);
|
84 |
+
$data = $this->__call('get', array($params));
|
85 |
+
if ($this->useObjects()) {
|
86 |
+
return new Google_Setting($data);
|
87 |
+
} else {
|
88 |
+
return $data;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* The "calendarList" collection of methods.
|
95 |
+
* Typical usage is:
|
96 |
+
* <code>
|
97 |
+
* $calendarService = new Google_CalendarService(...);
|
98 |
+
* $calendarList = $calendarService->calendarList;
|
99 |
+
* </code>
|
100 |
+
*/
|
101 |
+
class Google_CalendarListServiceResource extends Google_ServiceResource {
|
102 |
+
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Adds an entry to the user's calendar list. (calendarList.insert)
|
106 |
+
*
|
107 |
+
* @param Google_CalendarListEntry $postBody
|
108 |
+
* @param array $optParams Optional parameters.
|
109 |
+
*
|
110 |
+
* @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
|
111 |
+
* @return Google_CalendarListEntry
|
112 |
+
*/
|
113 |
+
public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
|
114 |
+
$params = array('postBody' => $postBody);
|
115 |
+
$params = array_merge($params, $optParams);
|
116 |
+
$data = $this->__call('insert', array($params));
|
117 |
+
if ($this->useObjects()) {
|
118 |
+
return new Google_CalendarListEntry($data);
|
119 |
+
} else {
|
120 |
+
return $data;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
/**
|
124 |
+
* Returns an entry on the user's calendar list. (calendarList.get)
|
125 |
+
*
|
126 |
+
* @param string $calendarId Calendar identifier.
|
127 |
+
* @param array $optParams Optional parameters.
|
128 |
+
* @return Google_CalendarListEntry
|
129 |
+
*/
|
130 |
+
public function get($calendarId, $optParams = array()) {
|
131 |
+
$params = array('calendarId' => $calendarId);
|
132 |
+
$params = array_merge($params, $optParams);
|
133 |
+
$data = $this->__call('get', array($params));
|
134 |
+
if ($this->useObjects()) {
|
135 |
+
return new Google_CalendarListEntry($data);
|
136 |
+
} else {
|
137 |
+
return $data;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
/**
|
141 |
+
* Returns entries on the user's calendar list. (calendarList.list)
|
142 |
+
*
|
143 |
+
* @param array $optParams Optional parameters.
|
144 |
+
*
|
145 |
+
* @opt_param string pageToken Token specifying which result page to return. Optional.
|
146 |
+
* @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
|
147 |
+
* @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
|
148 |
+
* @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
|
149 |
+
* @return Google_CalendarList
|
150 |
+
*/
|
151 |
+
public function listCalendarList($optParams = array()) {
|
152 |
+
$params = array();
|
153 |
+
$params = array_merge($params, $optParams);
|
154 |
+
$data = $this->__call('list', array($params));
|
155 |
+
if ($this->useObjects()) {
|
156 |
+
return new Google_CalendarList($data);
|
157 |
+
} else {
|
158 |
+
return $data;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
/**
|
162 |
+
* Updates an entry on the user's calendar list. (calendarList.update)
|
163 |
+
*
|
164 |
+
* @param string $calendarId Calendar identifier.
|
165 |
+
* @param Google_CalendarListEntry $postBody
|
166 |
+
* @param array $optParams Optional parameters.
|
167 |
+
*
|
168 |
+
* @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
|
169 |
+
* @return Google_CalendarListEntry
|
170 |
+
*/
|
171 |
+
public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
|
172 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
173 |
+
$params = array_merge($params, $optParams);
|
174 |
+
$data = $this->__call('update', array($params));
|
175 |
+
if ($this->useObjects()) {
|
176 |
+
return new Google_CalendarListEntry($data);
|
177 |
+
} else {
|
178 |
+
return $data;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
/**
|
182 |
+
* Updates an entry on the user's calendar list. This method supports patch semantics.
|
183 |
+
* (calendarList.patch)
|
184 |
+
*
|
185 |
+
* @param string $calendarId Calendar identifier.
|
186 |
+
* @param Google_CalendarListEntry $postBody
|
187 |
+
* @param array $optParams Optional parameters.
|
188 |
+
*
|
189 |
+
* @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
|
190 |
+
* @return Google_CalendarListEntry
|
191 |
+
*/
|
192 |
+
public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
|
193 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
194 |
+
$params = array_merge($params, $optParams);
|
195 |
+
$data = $this->__call('patch', array($params));
|
196 |
+
if ($this->useObjects()) {
|
197 |
+
return new Google_CalendarListEntry($data);
|
198 |
+
} else {
|
199 |
+
return $data;
|
200 |
+
}
|
201 |
+
}
|
202 |
+
/**
|
203 |
+
* Deletes an entry on the user's calendar list. (calendarList.delete)
|
204 |
+
*
|
205 |
+
* @param string $calendarId Calendar identifier.
|
206 |
+
* @param array $optParams Optional parameters.
|
207 |
+
*/
|
208 |
+
public function delete($calendarId, $optParams = array()) {
|
209 |
+
$params = array('calendarId' => $calendarId);
|
210 |
+
$params = array_merge($params, $optParams);
|
211 |
+
$data = $this->__call('delete', array($params));
|
212 |
+
return $data;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* The "calendars" collection of methods.
|
218 |
+
* Typical usage is:
|
219 |
+
* <code>
|
220 |
+
* $calendarService = new Google_CalendarService(...);
|
221 |
+
* $calendars = $calendarService->calendars;
|
222 |
+
* </code>
|
223 |
+
*/
|
224 |
+
class Google_CalendarsServiceResource extends Google_ServiceResource {
|
225 |
+
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Creates a secondary calendar. (calendars.insert)
|
229 |
+
*
|
230 |
+
* @param Google_Calendar $postBody
|
231 |
+
* @param array $optParams Optional parameters.
|
232 |
+
* @return Google_Calendar
|
233 |
+
*/
|
234 |
+
public function insert(Google_Calendar $postBody, $optParams = array()) {
|
235 |
+
$params = array('postBody' => $postBody);
|
236 |
+
$params = array_merge($params, $optParams);
|
237 |
+
$data = $this->__call('insert', array($params));
|
238 |
+
if ($this->useObjects()) {
|
239 |
+
return new Google_Calendar($data);
|
240 |
+
} else {
|
241 |
+
return $data;
|
242 |
+
}
|
243 |
+
}
|
244 |
+
/**
|
245 |
+
* Returns metadata for a calendar. (calendars.get)
|
246 |
+
*
|
247 |
+
* @param string $calendarId Calendar identifier.
|
248 |
+
* @param array $optParams Optional parameters.
|
249 |
+
* @return Google_Calendar
|
250 |
+
*/
|
251 |
+
public function get($calendarId, $optParams = array()) {
|
252 |
+
$params = array('calendarId' => $calendarId);
|
253 |
+
$params = array_merge($params, $optParams);
|
254 |
+
$data = $this->__call('get', array($params));
|
255 |
+
if ($this->useObjects()) {
|
256 |
+
return new Google_Calendar($data);
|
257 |
+
} else {
|
258 |
+
return $data;
|
259 |
+
}
|
260 |
+
}
|
261 |
+
/**
|
262 |
+
* Clears a primary calendar. This operation deletes all data associated with the primary calendar
|
263 |
+
* of an account and cannot be undone. (calendars.clear)
|
264 |
+
*
|
265 |
+
* @param string $calendarId Calendar identifier.
|
266 |
+
* @param array $optParams Optional parameters.
|
267 |
+
*/
|
268 |
+
public function clear($calendarId, $optParams = array()) {
|
269 |
+
$params = array('calendarId' => $calendarId);
|
270 |
+
$params = array_merge($params, $optParams);
|
271 |
+
$data = $this->__call('clear', array($params));
|
272 |
+
return $data;
|
273 |
+
}
|
274 |
+
/**
|
275 |
+
* Updates metadata for a calendar. (calendars.update)
|
276 |
+
*
|
277 |
+
* @param string $calendarId Calendar identifier.
|
278 |
+
* @param Google_Calendar $postBody
|
279 |
+
* @param array $optParams Optional parameters.
|
280 |
+
* @return Google_Calendar
|
281 |
+
*/
|
282 |
+
public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
|
283 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
284 |
+
$params = array_merge($params, $optParams);
|
285 |
+
$data = $this->__call('update', array($params));
|
286 |
+
if ($this->useObjects()) {
|
287 |
+
return new Google_Calendar($data);
|
288 |
+
} else {
|
289 |
+
return $data;
|
290 |
+
}
|
291 |
+
}
|
292 |
+
/**
|
293 |
+
* Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
|
294 |
+
*
|
295 |
+
* @param string $calendarId Calendar identifier.
|
296 |
+
* @param Google_Calendar $postBody
|
297 |
+
* @param array $optParams Optional parameters.
|
298 |
+
* @return Google_Calendar
|
299 |
+
*/
|
300 |
+
public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
|
301 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
302 |
+
$params = array_merge($params, $optParams);
|
303 |
+
$data = $this->__call('patch', array($params));
|
304 |
+
if ($this->useObjects()) {
|
305 |
+
return new Google_Calendar($data);
|
306 |
+
} else {
|
307 |
+
return $data;
|
308 |
+
}
|
309 |
+
}
|
310 |
+
/**
|
311 |
+
* Deletes a secondary calendar. (calendars.delete)
|
312 |
+
*
|
313 |
+
* @param string $calendarId Calendar identifier.
|
314 |
+
* @param array $optParams Optional parameters.
|
315 |
+
*/
|
316 |
+
public function delete($calendarId, $optParams = array()) {
|
317 |
+
$params = array('calendarId' => $calendarId);
|
318 |
+
$params = array_merge($params, $optParams);
|
319 |
+
$data = $this->__call('delete', array($params));
|
320 |
+
return $data;
|
321 |
+
}
|
322 |
+
}
|
323 |
+
|
324 |
+
/**
|
325 |
+
* The "acl" collection of methods.
|
326 |
+
* Typical usage is:
|
327 |
+
* <code>
|
328 |
+
* $calendarService = new Google_CalendarService(...);
|
329 |
+
* $acl = $calendarService->acl;
|
330 |
+
* </code>
|
331 |
+
*/
|
332 |
+
class Google_AclServiceResource extends Google_ServiceResource {
|
333 |
+
|
334 |
+
|
335 |
+
/**
|
336 |
+
* Creates an access control rule. (acl.insert)
|
337 |
+
*
|
338 |
+
* @param string $calendarId Calendar identifier.
|
339 |
+
* @param Google_AclRule $postBody
|
340 |
+
* @param array $optParams Optional parameters.
|
341 |
+
* @return Google_AclRule
|
342 |
+
*/
|
343 |
+
public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
|
344 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
345 |
+
$params = array_merge($params, $optParams);
|
346 |
+
$data = $this->__call('insert', array($params));
|
347 |
+
if ($this->useObjects()) {
|
348 |
+
return new Google_AclRule($data);
|
349 |
+
} else {
|
350 |
+
return $data;
|
351 |
+
}
|
352 |
+
}
|
353 |
+
/**
|
354 |
+
* Returns an access control rule. (acl.get)
|
355 |
+
*
|
356 |
+
* @param string $calendarId Calendar identifier.
|
357 |
+
* @param string $ruleId ACL rule identifier.
|
358 |
+
* @param array $optParams Optional parameters.
|
359 |
+
* @return Google_AclRule
|
360 |
+
*/
|
361 |
+
public function get($calendarId, $ruleId, $optParams = array()) {
|
362 |
+
$params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
|
363 |
+
$params = array_merge($params, $optParams);
|
364 |
+
$data = $this->__call('get', array($params));
|
365 |
+
if ($this->useObjects()) {
|
366 |
+
return new Google_AclRule($data);
|
367 |
+
} else {
|
368 |
+
return $data;
|
369 |
+
}
|
370 |
+
}
|
371 |
+
/**
|
372 |
+
* Returns the rules in the access control list for the calendar. (acl.list)
|
373 |
+
*
|
374 |
+
* @param string $calendarId Calendar identifier.
|
375 |
+
* @param array $optParams Optional parameters.
|
376 |
+
* @return Google_Acl
|
377 |
+
*/
|
378 |
+
public function listAcl($calendarId, $optParams = array()) {
|
379 |
+
$params = array('calendarId' => $calendarId);
|
380 |
+
$params = array_merge($params, $optParams);
|
381 |
+
$data = $this->__call('list', array($params));
|
382 |
+
if ($this->useObjects()) {
|
383 |
+
return new Google_Acl($data);
|
384 |
+
} else {
|
385 |
+
return $data;
|
386 |
+
}
|
387 |
+
}
|
388 |
+
/**
|
389 |
+
* Updates an access control rule. (acl.update)
|
390 |
+
*
|
391 |
+
* @param string $calendarId Calendar identifier.
|
392 |
+
* @param string $ruleId ACL rule identifier.
|
393 |
+
* @param Google_AclRule $postBody
|
394 |
+
* @param array $optParams Optional parameters.
|
395 |
+
* @return Google_AclRule
|
396 |
+
*/
|
397 |
+
public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
|
398 |
+
$params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
|
399 |
+
$params = array_merge($params, $optParams);
|
400 |
+
$data = $this->__call('update', array($params));
|
401 |
+
if ($this->useObjects()) {
|
402 |
+
return new Google_AclRule($data);
|
403 |
+
} else {
|
404 |
+
return $data;
|
405 |
+
}
|
406 |
+
}
|
407 |
+
/**
|
408 |
+
* Updates an access control rule. This method supports patch semantics. (acl.patch)
|
409 |
+
*
|
410 |
+
* @param string $calendarId Calendar identifier.
|
411 |
+
* @param string $ruleId ACL rule identifier.
|
412 |
+
* @param Google_AclRule $postBody
|
413 |
+
* @param array $optParams Optional parameters.
|
414 |
+
* @return Google_AclRule
|
415 |
+
*/
|
416 |
+
public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
|
417 |
+
$params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
|
418 |
+
$params = array_merge($params, $optParams);
|
419 |
+
$data = $this->__call('patch', array($params));
|
420 |
+
if ($this->useObjects()) {
|
421 |
+
return new Google_AclRule($data);
|
422 |
+
} else {
|
423 |
+
return $data;
|
424 |
+
}
|
425 |
+
}
|
426 |
+
/**
|
427 |
+
* Deletes an access control rule. (acl.delete)
|
428 |
+
*
|
429 |
+
* @param string $calendarId Calendar identifier.
|
430 |
+
* @param string $ruleId ACL rule identifier.
|
431 |
+
* @param array $optParams Optional parameters.
|
432 |
+
*/
|
433 |
+
public function delete($calendarId, $ruleId, $optParams = array()) {
|
434 |
+
$params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
|
435 |
+
$params = array_merge($params, $optParams);
|
436 |
+
$data = $this->__call('delete', array($params));
|
437 |
+
return $data;
|
438 |
+
}
|
439 |
+
}
|
440 |
+
|
441 |
+
/**
|
442 |
+
* The "colors" collection of methods.
|
443 |
+
* Typical usage is:
|
444 |
+
* <code>
|
445 |
+
* $calendarService = new Google_CalendarService(...);
|
446 |
+
* $colors = $calendarService->colors;
|
447 |
+
* </code>
|
448 |
+
*/
|
449 |
+
class Google_ColorsServiceResource extends Google_ServiceResource {
|
450 |
+
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Returns the color definitions for calendars and events. (colors.get)
|
454 |
+
*
|
455 |
+
* @param array $optParams Optional parameters.
|
456 |
+
* @return Google_Colors
|
457 |
+
*/
|
458 |
+
public function get($optParams = array()) {
|
459 |
+
$params = array();
|
460 |
+
$params = array_merge($params, $optParams);
|
461 |
+
$data = $this->__call('get', array($params));
|
462 |
+
if ($this->useObjects()) {
|
463 |
+
return new Google_Colors($data);
|
464 |
+
} else {
|
465 |
+
return $data;
|
466 |
+
}
|
467 |
+
}
|
468 |
+
}
|
469 |
+
|
470 |
+
/**
|
471 |
+
* The "events" collection of methods.
|
472 |
+
* Typical usage is:
|
473 |
+
* <code>
|
474 |
+
* $calendarService = new Google_CalendarService(...);
|
475 |
+
* $events = $calendarService->events;
|
476 |
+
* </code>
|
477 |
+
*/
|
478 |
+
class Google_EventsServiceResource extends Google_ServiceResource {
|
479 |
+
|
480 |
+
|
481 |
+
/**
|
482 |
+
* Creates an event. (events.insert)
|
483 |
+
*
|
484 |
+
* @param string $calendarId Calendar identifier.
|
485 |
+
* @param Google_Event $postBody
|
486 |
+
* @param array $optParams Optional parameters.
|
487 |
+
*
|
488 |
+
* @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
|
489 |
+
* @return Google_Event
|
490 |
+
*/
|
491 |
+
public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
|
492 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
493 |
+
$params = array_merge($params, $optParams);
|
494 |
+
$data = $this->__call('insert', array($params));
|
495 |
+
if ($this->useObjects()) {
|
496 |
+
return new Google_Event($data);
|
497 |
+
} else {
|
498 |
+
return $data;
|
499 |
+
}
|
500 |
+
}
|
501 |
+
/**
|
502 |
+
* Returns an event. (events.get)
|
503 |
+
*
|
504 |
+
* @param string $calendarId Calendar identifier.
|
505 |
+
* @param string $eventId Event identifier.
|
506 |
+
* @param array $optParams Optional parameters.
|
507 |
+
*
|
508 |
+
* @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
|
509 |
+
* @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
|
510 |
+
* @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
|
511 |
+
* @return Google_Event
|
512 |
+
*/
|
513 |
+
public function get($calendarId, $eventId, $optParams = array()) {
|
514 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId);
|
515 |
+
$params = array_merge($params, $optParams);
|
516 |
+
$data = $this->__call('get', array($params));
|
517 |
+
if ($this->useObjects()) {
|
518 |
+
return new Google_Event($data);
|
519 |
+
} else {
|
520 |
+
return $data;
|
521 |
+
}
|
522 |
+
}
|
523 |
+
/**
|
524 |
+
* Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
|
525 |
+
*
|
526 |
+
* @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
|
527 |
+
* @param string $eventId Event identifier.
|
528 |
+
* @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
|
529 |
+
* @param array $optParams Optional parameters.
|
530 |
+
*
|
531 |
+
* @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
|
532 |
+
* @return Google_Event
|
533 |
+
*/
|
534 |
+
public function move($calendarId, $eventId, $destination, $optParams = array()) {
|
535 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
|
536 |
+
$params = array_merge($params, $optParams);
|
537 |
+
$data = $this->__call('move', array($params));
|
538 |
+
if ($this->useObjects()) {
|
539 |
+
return new Google_Event($data);
|
540 |
+
} else {
|
541 |
+
return $data;
|
542 |
+
}
|
543 |
+
}
|
544 |
+
/**
|
545 |
+
* Returns events on the specified calendar. (events.list)
|
546 |
+
*
|
547 |
+
* @param string $calendarId Calendar identifier.
|
548 |
+
* @param array $optParams Optional parameters.
|
549 |
+
*
|
550 |
+
* @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
|
551 |
+
* @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
|
552 |
+
* @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
|
553 |
+
* @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
|
554 |
+
* @opt_param string updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
|
555 |
+
* @opt_param bool singleEvents Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
|
556 |
+
* @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
|
557 |
+
* @opt_param int maxResults Maximum number of events returned on one result page. Optional.
|
558 |
+
* @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
|
559 |
+
* @opt_param string pageToken Token specifying which result page to return. Optional.
|
560 |
+
* @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
|
561 |
+
* @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
|
562 |
+
* @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
|
563 |
+
* @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
|
564 |
+
* @return Google_Events
|
565 |
+
*/
|
566 |
+
public function listEvents($calendarId, $optParams = array()) {
|
567 |
+
$params = array('calendarId' => $calendarId);
|
568 |
+
$params = array_merge($params, $optParams);
|
569 |
+
$data = $this->__call('list', array($params));
|
570 |
+
if ($this->useObjects()) {
|
571 |
+
return new Google_Events($data);
|
572 |
+
} else {
|
573 |
+
return $data;
|
574 |
+
}
|
575 |
+
}
|
576 |
+
/**
|
577 |
+
* Updates an event. (events.update)
|
578 |
+
*
|
579 |
+
* @param string $calendarId Calendar identifier.
|
580 |
+
* @param string $eventId Event identifier.
|
581 |
+
* @param Google_Event $postBody
|
582 |
+
* @param array $optParams Optional parameters.
|
583 |
+
*
|
584 |
+
* @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
|
585 |
+
* @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
|
586 |
+
* @return Google_Event
|
587 |
+
*/
|
588 |
+
public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
|
589 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
|
590 |
+
$params = array_merge($params, $optParams);
|
591 |
+
$data = $this->__call('update', array($params));
|
592 |
+
if ($this->useObjects()) {
|
593 |
+
return new Google_Event($data);
|
594 |
+
} else {
|
595 |
+
return $data;
|
596 |
+
}
|
597 |
+
}
|
598 |
+
/**
|
599 |
+
* Updates an event. This method supports patch semantics. (events.patch)
|
600 |
+
*
|
601 |
+
* @param string $calendarId Calendar identifier.
|
602 |
+
* @param string $eventId Event identifier.
|
603 |
+
* @param Google_Event $postBody
|
604 |
+
* @param array $optParams Optional parameters.
|
605 |
+
*
|
606 |
+
* @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
|
607 |
+
* @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
|
608 |
+
* @return Google_Event
|
609 |
+
*/
|
610 |
+
public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
|
611 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
|
612 |
+
$params = array_merge($params, $optParams);
|
613 |
+
$data = $this->__call('patch', array($params));
|
614 |
+
if ($this->useObjects()) {
|
615 |
+
return new Google_Event($data);
|
616 |
+
} else {
|
617 |
+
return $data;
|
618 |
+
}
|
619 |
+
}
|
620 |
+
/**
|
621 |
+
* Returns instances of the specified recurring event. (events.instances)
|
622 |
+
*
|
623 |
+
* @param string $calendarId Calendar identifier.
|
624 |
+
* @param string $eventId Recurring event identifier.
|
625 |
+
* @param array $optParams Optional parameters.
|
626 |
+
*
|
627 |
+
* @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
|
628 |
+
* @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
|
629 |
+
* @opt_param int maxResults Maximum number of events returned on one result page. Optional.
|
630 |
+
* @opt_param string pageToken Token specifying which result page to return. Optional.
|
631 |
+
* @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
|
632 |
+
* @opt_param string originalStart The original start time of the instance in the result. Optional.
|
633 |
+
* @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
|
634 |
+
* @return Google_Events
|
635 |
+
*/
|
636 |
+
public function instances($calendarId, $eventId, $optParams = array()) {
|
637 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId);
|
638 |
+
$params = array_merge($params, $optParams);
|
639 |
+
$data = $this->__call('instances', array($params));
|
640 |
+
if ($this->useObjects()) {
|
641 |
+
return new Google_Events($data);
|
642 |
+
} else {
|
643 |
+
return $data;
|
644 |
+
}
|
645 |
+
}
|
646 |
+
/**
|
647 |
+
* Imports an event. (events.import)
|
648 |
+
*
|
649 |
+
* @param string $calendarId Calendar identifier.
|
650 |
+
* @param Google_Event $postBody
|
651 |
+
* @param array $optParams Optional parameters.
|
652 |
+
* @return Google_Event
|
653 |
+
*/
|
654 |
+
public function import($calendarId, Google_Event $postBody, $optParams = array()) {
|
655 |
+
$params = array('calendarId' => $calendarId, 'postBody' => $postBody);
|
656 |
+
$params = array_merge($params, $optParams);
|
657 |
+
$data = $this->__call('import', array($params));
|
658 |
+
if ($this->useObjects()) {
|
659 |
+
return new Google_Event($data);
|
660 |
+
} else {
|
661 |
+
return $data;
|
662 |
+
}
|
663 |
+
}
|
664 |
+
/**
|
665 |
+
* Creates an event based on a simple text string. (events.quickAdd)
|
666 |
+
*
|
667 |
+
* @param string $calendarId Calendar identifier.
|
668 |
+
* @param string $text The text describing the event to be created.
|
669 |
+
* @param array $optParams Optional parameters.
|
670 |
+
*
|
671 |
+
* @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
|
672 |
+
* @return Google_Event
|
673 |
+
*/
|
674 |
+
public function quickAdd($calendarId, $text, $optParams = array()) {
|
675 |
+
$params = array('calendarId' => $calendarId, 'text' => $text);
|
676 |
+
$params = array_merge($params, $optParams);
|
677 |
+
$data = $this->__call('quickAdd', array($params));
|
678 |
+
if ($this->useObjects()) {
|
679 |
+
return new Google_Event($data);
|
680 |
+
} else {
|
681 |
+
return $data;
|
682 |
+
}
|
683 |
+
}
|
684 |
+
/**
|
685 |
+
* Deletes an event. (events.delete)
|
686 |
+
*
|
687 |
+
* @param string $calendarId Calendar identifier.
|
688 |
+
* @param string $eventId Event identifier.
|
689 |
+
* @param array $optParams Optional parameters.
|
690 |
+
*
|
691 |
+
* @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
|
692 |
+
*/
|
693 |
+
public function delete($calendarId, $eventId, $optParams = array()) {
|
694 |
+
$params = array('calendarId' => $calendarId, 'eventId' => $eventId);
|
695 |
+
$params = array_merge($params, $optParams);
|
696 |
+
$data = $this->__call('delete', array($params));
|
697 |
+
return $data;
|
698 |
+
}
|
699 |
+
}
|
700 |
+
|
701 |
+
/**
|
702 |
+
* Service definition for Google_Calendar (v3).
|
703 |
+
*
|
704 |
+
* <p>
|
705 |
+
* Lets you manipulate events and other calendar data.
|
706 |
+
* </p>
|
707 |
+
*
|
708 |
+
* <p>
|
709 |
+
* For more information about this service, see the
|
710 |
+
* <a href="http://code.google.com/apis/calendar/v3/using.html" target="_blank">API Documentation</a>
|
711 |
+
* </p>
|
712 |
+
*
|
713 |
+
* @author Google, Inc.
|
714 |
+
*/
|
715 |
+
class Google_CalendarService extends Google_Service {
|
716 |
+
public $freebusy;
|
717 |
+
public $settings;
|
718 |
+
public $calendarList;
|
719 |
+
public $calendars;
|
720 |
+
public $acl;
|
721 |
+
public $colors;
|
722 |
+
public $events;
|
723 |
+
/**
|
724 |
+
* Constructs the internal representation of the Calendar service.
|
725 |
+
*
|
726 |
+
* @param Google_Client $client
|
727 |
+
*/
|
728 |
+
public function __construct(Google_Client $client) {
|
729 |
+
$this->servicePath = 'calendar/v3/';
|
730 |
+
$this->version = 'v3';
|
731 |
+
$this->serviceName = 'calendar';
|
732 |
+
|
733 |
+
$client->addService($this->serviceName, $this->version);
|
734 |
+
$this->freebusy = new Google_FreebusyServiceResource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "httpMethod": "POST", "path": "freeBusy", "id": "calendar.freebusy.query"}}}', true));
|
735 |
+
$this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "users/me/settings", "response": {"$ref": "Settings"}, "id": "calendar.settings.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"setting": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.settings.get", "httpMethod": "GET", "path": "users/me/settings/{setting}", "response": {"$ref": "Setting"}}}}', true));
|
736 |
+
$this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "POST", "path": "users/me/calendarList", "id": "calendar.calendarList.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendarList.get", "httpMethod": "GET", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "minAccessRole": {"enum": ["freeBusyReader", "owner", "reader", "writer"], "type": "string", "location": "query"}}, "response": {"$ref": "CalendarList"}, "httpMethod": "GET", "path": "users/me/calendarList", "id": "calendar.calendarList.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PUT", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PATCH", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
737 |
+
$this->calendars = new Google_CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "POST", "path": "calendars", "id": "calendar.calendars.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendars.get", "httpMethod": "GET", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "clear": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/clear", "id": "calendar.calendars.clear", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PUT", "path": "calendars/{calendarId}", "id": "calendar.calendars.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}", "id": "calendar.calendars.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}", "id": "calendar.calendars.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
738 |
+
$this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "POST", "path": "calendars/{calendarId}/acl", "id": "calendar.acl.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.get", "httpMethod": "GET", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.list", "httpMethod": "GET", "path": "calendars/{calendarId}/acl", "response": {"$ref": "Acl"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
739 |
+
$this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "colors", "response": {"$ref": "Colors"}, "id": "calendar.colors.get", "httpMethod": "GET"}}}', true));
|
740 |
+
$this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events", "id": "calendar.events.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.get", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "move": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "destination": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.move", "httpMethod": "POST", "path": "calendars/{calendarId}/events/{eventId}/move", "response": {"$ref": "Event"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"orderBy": {"enum": ["startTime", "updated"], "type": "string", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "iCalUID": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query", "format": "date-time"}, "singleEvents": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeMin": {"type": "string", "location": "query", "format": "date-time"}, "timeZone": {"type": "string", "location": "query"}, "timeMax": {"type": "string", "location": "query", "format": "date-time"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.list", "httpMethod": "GET", "path": "calendars/{calendarId}/events", "response": {"$ref": "Events"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.patch"}, "instances": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "showDeleted": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.instances", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}/instances", "response": {"$ref": "Events"}}, "import": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events/import", "id": "calendar.events.import"}, "quickAdd": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"text": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.quickAdd", "httpMethod": "POST", "path": "calendars/{calendarId}/events/quickAdd", "response": {"$ref": "Event"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.delete", "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
|
741 |
+
|
742 |
+
}
|
743 |
+
}
|
744 |
+
|
745 |
+
class Google_Acl extends Google_Model {
|
746 |
+
public $nextPageToken;
|
747 |
+
protected $__itemsType = 'Google_AclRule';
|
748 |
+
protected $__itemsDataType = 'array';
|
749 |
+
public $items;
|
750 |
+
public $kind;
|
751 |
+
public $etag;
|
752 |
+
public function setNextPageToken($nextPageToken) {
|
753 |
+
$this->nextPageToken = $nextPageToken;
|
754 |
+
}
|
755 |
+
public function getNextPageToken() {
|
756 |
+
return $this->nextPageToken;
|
757 |
+
}
|
758 |
+
public function setItems(/* array(Google_AclRule) */ $items) {
|
759 |
+
$this->assertIsArray($items, 'Google_AclRule', __METHOD__);
|
760 |
+
$this->items = $items;
|
761 |
+
}
|
762 |
+
public function getItems() {
|
763 |
+
return $this->items;
|
764 |
+
}
|
765 |
+
public function setKind($kind) {
|
766 |
+
$this->kind = $kind;
|
767 |
+
}
|
768 |
+
public function getKind() {
|
769 |
+
return $this->kind;
|
770 |
+
}
|
771 |
+
public function setEtag($etag) {
|
772 |
+
$this->etag = $etag;
|
773 |
+
}
|
774 |
+
public function getEtag() {
|
775 |
+
return $this->etag;
|
776 |
+
}
|
777 |
+
}
|
778 |
+
|
779 |
+
class Google_AclRule extends Google_Model {
|
780 |
+
protected $__scopeType = 'Google_AclRuleScope';
|
781 |
+
protected $__scopeDataType = '';
|
782 |
+
public $scope;
|
783 |
+
public $kind;
|
784 |
+
public $etag;
|
785 |
+
public $role;
|
786 |
+
public $id;
|
787 |
+
public function setScope(Google_AclRuleScope $scope) {
|
788 |
+
$this->scope = $scope;
|
789 |
+
}
|
790 |
+
public function getScope() {
|
791 |
+
return $this->scope;
|
792 |
+
}
|
793 |
+
public function setKind($kind) {
|
794 |
+
$this->kind = $kind;
|
795 |
+
}
|
796 |
+
public function getKind() {
|
797 |
+
return $this->kind;
|
798 |
+
}
|
799 |
+
public function setEtag($etag) {
|
800 |
+
$this->etag = $etag;
|
801 |
+
}
|
802 |
+
public function getEtag() {
|
803 |
+
return $this->etag;
|
804 |
+
}
|
805 |
+
public function setRole($role) {
|
806 |
+
$this->role = $role;
|
807 |
+
}
|
808 |
+
public function getRole() {
|
809 |
+
return $this->role;
|
810 |
+
}
|
811 |
+
public function setId($id) {
|
812 |
+
$this->id = $id;
|
813 |
+
}
|
814 |
+
public function getId() {
|
815 |
+
return $this->id;
|
816 |
+
}
|
817 |
+
}
|
818 |
+
|
819 |
+
class Google_AclRuleScope extends Google_Model {
|
820 |
+
public $type;
|
821 |
+
public $value;
|
822 |
+
public function setType($type) {
|
823 |
+
$this->type = $type;
|
824 |
+
}
|
825 |
+
public function getType() {
|
826 |
+
return $this->type;
|
827 |
+
}
|
828 |
+
public function setValue($value) {
|
829 |
+
$this->value = $value;
|
830 |
+
}
|
831 |
+
public function getValue() {
|
832 |
+
return $this->value;
|
833 |
+
}
|
834 |
+
}
|
835 |
+
|
836 |
+
class Google_Calendar extends Google_Model {
|
837 |
+
public $kind;
|
838 |
+
public $description;
|
839 |
+
public $summary;
|
840 |
+
public $etag;
|
841 |
+
public $location;
|
842 |
+
public $timeZone;
|
843 |
+
public $id;
|
844 |
+
public function setKind($kind) {
|
845 |
+
$this->kind = $kind;
|
846 |
+
}
|
847 |
+
public function getKind() {
|
848 |
+
return $this->kind;
|
849 |
+
}
|
850 |
+
public function setDescription($description) {
|
851 |
+
$this->description = $description;
|
852 |
+
}
|
853 |
+
public function getDescription() {
|
854 |
+
return $this->description;
|
855 |
+
}
|
856 |
+
public function setSummary($summary) {
|
857 |
+
$this->summary = $summary;
|
858 |
+
}
|
859 |
+
public function getSummary() {
|
860 |
+
return $this->summary;
|
861 |
+
}
|
862 |
+
public function setEtag($etag) {
|
863 |
+
$this->etag = $etag;
|
864 |
+
}
|
865 |
+
public function getEtag() {
|
866 |
+
return $this->etag;
|
867 |
+
}
|
868 |
+
public function setLocation($location) {
|
869 |
+
$this->location = $location;
|
870 |
+
}
|
871 |
+
public function getLocation() {
|
872 |
+
return $this->location;
|
873 |
+
}
|
874 |
+
public function setTimeZone($timeZone) {
|
875 |
+
$this->timeZone = $timeZone;
|
876 |
+
}
|
877 |
+
public function getTimeZone() {
|
878 |
+
return $this->timeZone;
|
879 |
+
}
|
880 |
+
public function setId($id) {
|
881 |
+
$this->id = $id;
|
882 |
+
}
|
883 |
+
public function getId() {
|
884 |
+
return $this->id;
|
885 |
+
}
|
886 |
+
}
|
887 |
+
|
888 |
+
class Google_CalendarList extends Google_Model {
|
889 |
+
public $nextPageToken;
|
890 |
+
protected $__itemsType = 'Google_CalendarListEntry';
|
891 |
+
protected $__itemsDataType = 'array';
|
892 |
+
public $items;
|
893 |
+
public $kind;
|
894 |
+
public $etag;
|
895 |
+
public function setNextPageToken($nextPageToken) {
|
896 |
+
$this->nextPageToken = $nextPageToken;
|
897 |
+
}
|
898 |
+
public function getNextPageToken() {
|
899 |
+
return $this->nextPageToken;
|
900 |
+
}
|
901 |
+
public function setItems(/* array(Google_CalendarListEntry) */ $items) {
|
902 |
+
$this->assertIsArray($items, 'Google_CalendarListEntry', __METHOD__);
|
903 |
+
$this->items = $items;
|
904 |
+
}
|
905 |
+
public function getItems() {
|
906 |
+
return $this->items;
|
907 |
+
}
|
908 |
+
public function setKind($kind) {
|
909 |
+
$this->kind = $kind;
|
910 |
+
}
|
911 |
+
public function getKind() {
|
912 |
+
return $this->kind;
|
913 |
+
}
|
914 |
+
public function setEtag($etag) {
|
915 |
+
$this->etag = $etag;
|
916 |
+
}
|
917 |
+
public function getEtag() {
|
918 |
+
return $this->etag;
|
919 |
+
}
|
920 |
+
}
|
921 |
+
|
922 |
+
class Google_CalendarListEntry extends Google_Model {
|
923 |
+
public $kind;
|
924 |
+
public $foregroundColor;
|
925 |
+
protected $__defaultRemindersType = 'Google_EventReminder';
|
926 |
+
protected $__defaultRemindersDataType = 'array';
|
927 |
+
public $defaultReminders;
|
928 |
+
public $description;
|
929 |
+
public $colorId;
|
930 |
+
public $selected;
|
931 |
+
public $summary;
|
932 |
+
public $etag;
|
933 |
+
public $location;
|
934 |
+
public $backgroundColor;
|
935 |
+
public $summaryOverride;
|
936 |
+
public $timeZone;
|
937 |
+
public $hidden;
|
938 |
+
public $accessRole;
|
939 |
+
public $id;
|
940 |
+
public function setKind($kind) {
|
941 |
+
$this->kind = $kind;
|
942 |
+
}
|
943 |
+
public function getKind() {
|
944 |
+
return $this->kind;
|
945 |
+
}
|
946 |
+
public function setForegroundColor($foregroundColor) {
|
947 |
+
$this->foregroundColor = $foregroundColor;
|
948 |
+
}
|
949 |
+
public function getForegroundColor() {
|
950 |
+
return $this->foregroundColor;
|
951 |
+
}
|
952 |
+
public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
|
953 |
+
$this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
|
954 |
+
$this->defaultReminders = $defaultReminders;
|
955 |
+
}
|
956 |
+
public function getDefaultReminders() {
|
957 |
+
return $this->defaultReminders;
|
958 |
+
}
|
959 |
+
public function setDescription($description) {
|
960 |
+
$this->description = $description;
|
961 |
+
}
|
962 |
+
public function getDescription() {
|
963 |
+
return $this->description;
|
964 |
+
}
|
965 |
+
public function setColorId($colorId) {
|
966 |
+
$this->colorId = $colorId;
|
967 |
+
}
|
968 |
+
public function getColorId() {
|
969 |
+
return $this->colorId;
|
970 |
+
}
|
971 |
+
public function setSelected($selected) {
|
972 |
+
$this->selected = $selected;
|
973 |
+
}
|
974 |
+
public function getSelected() {
|
975 |
+
return $this->selected;
|
976 |
+
}
|
977 |
+
public function setSummary($summary) {
|
978 |
+
$this->summary = $summary;
|
979 |
+
}
|
980 |
+
public function getSummary() {
|
981 |
+
return $this->summary;
|
982 |
+
}
|
983 |
+
public function setEtag($etag) {
|
984 |
+
$this->etag = $etag;
|
985 |
+
}
|
986 |
+
public function getEtag() {
|
987 |
+
return $this->etag;
|
988 |
+
}
|
989 |
+
public function setLocation($location) {
|
990 |
+
$this->location = $location;
|
991 |
+
}
|
992 |
+
public function getLocation() {
|
993 |
+
return $this->location;
|
994 |
+
}
|
995 |
+
public function setBackgroundColor($backgroundColor) {
|
996 |
+
$this->backgroundColor = $backgroundColor;
|
997 |
+
}
|
998 |
+
public function getBackgroundColor() {
|
999 |
+
return $this->backgroundColor;
|
1000 |
+
}
|
1001 |
+
public function setSummaryOverride($summaryOverride) {
|
1002 |
+
$this->summaryOverride = $summaryOverride;
|
1003 |
+
}
|
1004 |
+
public function getSummaryOverride() {
|
1005 |
+
return $this->summaryOverride;
|
1006 |
+
}
|
1007 |
+
public function setTimeZone($timeZone) {
|
1008 |
+
$this->timeZone = $timeZone;
|
1009 |
+
}
|
1010 |
+
public function getTimeZone() {
|
1011 |
+
return $this->timeZone;
|
1012 |
+
}
|
1013 |
+
public function setHidden($hidden) {
|
1014 |
+
$this->hidden = $hidden;
|
1015 |
+
}
|
1016 |
+
public function getHidden() {
|
1017 |
+
return $this->hidden;
|
1018 |
+
}
|
1019 |
+
public function setAccessRole($accessRole) {
|
1020 |
+
$this->accessRole = $accessRole;
|
1021 |
+
}
|
1022 |
+
public function getAccessRole() {
|
1023 |
+
return $this->accessRole;
|
1024 |
+
}
|
1025 |
+
public function setId($id) {
|
1026 |
+
$this->id = $id;
|
1027 |
+
}
|
1028 |
+
public function getId() {
|
1029 |
+
return $this->id;
|
1030 |
+
}
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
class Google_ColorDefinition extends Google_Model {
|
1034 |
+
public $foreground;
|
1035 |
+
public $background;
|
1036 |
+
public function setForeground($foreground) {
|
1037 |
+
$this->foreground = $foreground;
|
1038 |
+
}
|
1039 |
+
public function getForeground() {
|
1040 |
+
return $this->foreground;
|
1041 |
+
}
|
1042 |
+
public function setBackground($background) {
|
1043 |
+
$this->background = $background;
|
1044 |
+
}
|
1045 |
+
public function getBackground() {
|
1046 |
+
return $this->background;
|
1047 |
+
}
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
class Google_Colors extends Google_Model {
|
1051 |
+
protected $__calendarType = 'Google_ColorDefinition';
|
1052 |
+
protected $__calendarDataType = 'map';
|
1053 |
+
public $calendar;
|
1054 |
+
public $updated;
|
1055 |
+
protected $__eventType = 'Google_ColorDefinition';
|
1056 |
+
protected $__eventDataType = 'map';
|
1057 |
+
public $event;
|
1058 |
+
public $kind;
|
1059 |
+
public function setCalendar(Google_ColorDefinition $calendar) {
|
1060 |
+
$this->calendar = $calendar;
|
1061 |
+
}
|
1062 |
+
public function getCalendar() {
|
1063 |
+
return $this->calendar;
|
1064 |
+
}
|
1065 |
+
public function setUpdated($updated) {
|
1066 |
+
$this->updated = $updated;
|
1067 |
+
}
|
1068 |
+
public function getUpdated() {
|
1069 |
+
return $this->updated;
|
1070 |
+
}
|
1071 |
+
public function setEvent(Google_ColorDefinition $event) {
|
1072 |
+
$this->event = $event;
|
1073 |
+
}
|
1074 |
+
public function getEvent() {
|
1075 |
+
return $this->event;
|
1076 |
+
}
|
1077 |
+
public function setKind($kind) {
|
1078 |
+
$this->kind = $kind;
|
1079 |
+
}
|
1080 |
+
public function getKind() {
|
1081 |
+
return $this->kind;
|
1082 |
+
}
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
class Google_Error extends Google_Model {
|
1086 |
+
public $domain;
|
1087 |
+
public $reason;
|
1088 |
+
public function setDomain($domain) {
|
1089 |
+
$this->domain = $domain;
|
1090 |
+
}
|
1091 |
+
public function getDomain() {
|
1092 |
+
return $this->domain;
|
1093 |
+
}
|
1094 |
+
public function setReason($reason) {
|
1095 |
+
$this->reason = $reason;
|
1096 |
+
}
|
1097 |
+
public function getReason() {
|
1098 |
+
return $this->reason;
|
1099 |
+
}
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
class Google_Event extends Google_Model {
|
1103 |
+
protected $__creatorType = 'Google_EventCreator';
|
1104 |
+
protected $__creatorDataType = '';
|
1105 |
+
public $creator;
|
1106 |
+
protected $__organizerType = 'Google_EventOrganizer';
|
1107 |
+
protected $__organizerDataType = '';
|
1108 |
+
public $organizer;
|
1109 |
+
public $summary;
|
1110 |
+
public $id;
|
1111 |
+
protected $__attendeesType = 'Google_EventAttendee';
|
1112 |
+
protected $__attendeesDataType = 'array';
|
1113 |
+
public $attendees;
|
1114 |
+
public $htmlLink;
|
1115 |
+
public $recurrence;
|
1116 |
+
protected $__startType = 'Google_EventDateTime';
|
1117 |
+
protected $__startDataType = '';
|
1118 |
+
public $start;
|
1119 |
+
public $etag;
|
1120 |
+
public $location;
|
1121 |
+
public $recurringEventId;
|
1122 |
+
protected $__gadgetType = 'Google_EventGadget';
|
1123 |
+
protected $__gadgetDataType = '';
|
1124 |
+
public $gadget;
|
1125 |
+
public $status;
|
1126 |
+
public $updated;
|
1127 |
+
public $description;
|
1128 |
+
public $iCalUID;
|
1129 |
+
protected $__extendedPropertiesType = 'Google_EventExtendedProperties';
|
1130 |
+
protected $__extendedPropertiesDataType = '';
|
1131 |
+
public $extendedProperties;
|
1132 |
+
public $endTimeUnspecified;
|
1133 |
+
public $sequence;
|
1134 |
+
public $visibility;
|
1135 |
+
public $guestsCanModify;
|
1136 |
+
protected $__endType = 'Google_EventDateTime';
|
1137 |
+
protected $__endDataType = '';
|
1138 |
+
public $end;
|
1139 |
+
public $attendeesOmitted;
|
1140 |
+
public $kind;
|
1141 |
+
public $locked;
|
1142 |
+
public $created;
|
1143 |
+
public $colorId;
|
1144 |
+
public $anyoneCanAddSelf;
|
1145 |
+
protected $__remindersType = 'Google_EventReminders';
|
1146 |
+
protected $__remindersDataType = '';
|
1147 |
+
public $reminders;
|
1148 |
+
public $guestsCanSeeOtherGuests;
|
1149 |
+
protected $__originalStartTimeType = 'Google_EventDateTime';
|
1150 |
+
protected $__originalStartTimeDataType = '';
|
1151 |
+
public $originalStartTime;
|
1152 |
+
public $guestsCanInviteOthers;
|
1153 |
+
public $transparency;
|
1154 |
+
public $privateCopy;
|
1155 |
+
public function setCreator(Google_EventCreator $creator) {
|
1156 |
+
$this->creator = $creator;
|
1157 |
+
}
|
1158 |
+
public function getCreator() {
|
1159 |
+
return $this->creator;
|
1160 |
+
}
|
1161 |
+
public function setOrganizer(Google_EventOrganizer $organizer) {
|
1162 |
+
$this->organizer = $organizer;
|
1163 |
+
}
|
1164 |
+
public function getOrganizer() {
|
1165 |
+
return $this->organizer;
|
1166 |
+
}
|
1167 |
+
public function setSummary($summary) {
|
1168 |
+
$this->summary = $summary;
|
1169 |
+
}
|
1170 |
+
public function getSummary() {
|
1171 |
+
return $this->summary;
|
1172 |
+
}
|
1173 |
+
public function setId($id) {
|
1174 |
+
$this->id = $id;
|
1175 |
+
}
|
1176 |
+
public function getId() {
|
1177 |
+
return $this->id;
|
1178 |
+
}
|
1179 |
+
public function setAttendees(/* array(Google_EventAttendee) */ $attendees) {
|
1180 |
+
$this->assertIsArray($attendees, 'Google_EventAttendee', __METHOD__);
|
1181 |
+
$this->attendees = $attendees;
|
1182 |
+
}
|
1183 |
+
public function getAttendees() {
|
1184 |
+
return $this->attendees;
|
1185 |
+
}
|
1186 |
+
public function setHtmlLink($htmlLink) {
|
1187 |
+
$this->htmlLink = $htmlLink;
|
1188 |
+
}
|
1189 |
+
public function getHtmlLink() {
|
1190 |
+
return $this->htmlLink;
|
1191 |
+
}
|
1192 |
+
public function setRecurrence(/* array(Google_string) */ $recurrence) {
|
1193 |
+
$this->assertIsArray($recurrence, 'Google_string', __METHOD__);
|
1194 |
+
$this->recurrence = $recurrence;
|
1195 |
+
}
|
1196 |
+
public function getRecurrence() {
|
1197 |
+
return $this->recurrence;
|
1198 |
+
}
|
1199 |
+
public function setStart(Google_EventDateTime $start) {
|
1200 |
+
$this->start = $start;
|
1201 |
+
}
|
1202 |
+
public function getStart() {
|
1203 |
+
return $this->start;
|
1204 |
+
}
|
1205 |
+
public function setEtag($etag) {
|
1206 |
+
$this->etag = $etag;
|
1207 |
+
}
|
1208 |
+
public function getEtag() {
|
1209 |
+
return $this->etag;
|
1210 |
+
}
|
1211 |
+
public function setLocation($location) {
|
1212 |
+
$this->location = $location;
|
1213 |
+
}
|
1214 |
+
public function getLocation() {
|
1215 |
+
return $this->location;
|
1216 |
+
}
|
1217 |
+
public function setRecurringEventId($recurringEventId) {
|
1218 |
+
$this->recurringEventId = $recurringEventId;
|
1219 |
+
}
|
1220 |
+
public function getRecurringEventId() {
|
1221 |
+
return $this->recurringEventId;
|
1222 |
+
}
|
1223 |
+
public function setGadget(Google_EventGadget $gadget) {
|
1224 |
+
$this->gadget = $gadget;
|
1225 |
+
}
|
1226 |
+
public function getGadget() {
|
1227 |
+
return $this->gadget;
|
1228 |
+
}
|
1229 |
+
public function setStatus($status) {
|
1230 |
+
$this->status = $status;
|
1231 |
+
}
|
1232 |
+
public function getStatus() {
|
1233 |
+
return $this->status;
|
1234 |
+
}
|
1235 |
+
public function setUpdated($updated) {
|
1236 |
+
$this->updated = $updated;
|
1237 |
+
}
|
1238 |
+
public function getUpdated() {
|
1239 |
+
return $this->updated;
|
1240 |
+
}
|
1241 |
+
public function setDescription($description) {
|
1242 |
+
$this->description = $description;
|
1243 |
+
}
|
1244 |
+
public function getDescription() {
|
1245 |
+
return $this->description;
|
1246 |
+
}
|
1247 |
+
public function setICalUID($iCalUID) {
|
1248 |
+
$this->iCalUID = $iCalUID;
|
1249 |
+
}
|
1250 |
+
public function getICalUID() {
|
1251 |
+
return $this->iCalUID;
|
1252 |
+
}
|
1253 |
+
public function setExtendedProperties(Google_EventExtendedProperties $extendedProperties) {
|
1254 |
+
$this->extendedProperties = $extendedProperties;
|
1255 |
+
}
|
1256 |
+
public function getExtendedProperties() {
|
1257 |
+
return $this->extendedProperties;
|
1258 |
+
}
|
1259 |
+
public function setEndTimeUnspecified($endTimeUnspecified) {
|
1260 |
+
$this->endTimeUnspecified = $endTimeUnspecified;
|
1261 |
+
}
|
1262 |
+
public function getEndTimeUnspecified() {
|
1263 |
+
return $this->endTimeUnspecified;
|
1264 |
+
}
|
1265 |
+
public function setSequence($sequence) {
|
1266 |
+
$this->sequence = $sequence;
|
1267 |
+
}
|
1268 |
+
public function getSequence() {
|
1269 |
+
return $this->sequence;
|
1270 |
+
}
|
1271 |
+
public function setVisibility($visibility) {
|
1272 |
+
$this->visibility = $visibility;
|
1273 |
+
}
|
1274 |
+
public function getVisibility() {
|
1275 |
+
return $this->visibility;
|
1276 |
+
}
|
1277 |
+
public function setGuestsCanModify($guestsCanModify) {
|
1278 |
+
$this->guestsCanModify = $guestsCanModify;
|
1279 |
+
}
|
1280 |
+
public function getGuestsCanModify() {
|
1281 |
+
return $this->guestsCanModify;
|
1282 |
+
}
|
1283 |
+
public function setEnd(Google_EventDateTime $end) {
|
1284 |
+
$this->end = $end;
|
1285 |
+
}
|
1286 |
+
public function getEnd() {
|
1287 |
+
return $this->end;
|
1288 |
+
}
|
1289 |
+
public function setAttendeesOmitted($attendeesOmitted) {
|
1290 |
+
$this->attendeesOmitted = $attendeesOmitted;
|
1291 |
+
}
|
1292 |
+
public function getAttendeesOmitted() {
|
1293 |
+
return $this->attendeesOmitted;
|
1294 |
+
}
|
1295 |
+
public function setKind($kind) {
|
1296 |
+
$this->kind = $kind;
|
1297 |
+
}
|
1298 |
+
public function getKind() {
|
1299 |
+
return $this->kind;
|
1300 |
+
}
|
1301 |
+
public function setLocked($locked) {
|
1302 |
+
$this->locked = $locked;
|
1303 |
+
}
|
1304 |
+
public function getLocked() {
|
1305 |
+
return $this->locked;
|
1306 |
+
}
|
1307 |
+
public function setCreated($created) {
|
1308 |
+
$this->created = $created;
|
1309 |
+
}
|
1310 |
+
public function getCreated() {
|
1311 |
+
return $this->created;
|
1312 |
+
}
|
1313 |
+
public function setColorId($colorId) {
|
1314 |
+
$this->colorId = $colorId;
|
1315 |
+
}
|
1316 |
+
public function getColorId() {
|
1317 |
+
return $this->colorId;
|
1318 |
+
}
|
1319 |
+
public function setAnyoneCanAddSelf($anyoneCanAddSelf) {
|
1320 |
+
$this->anyoneCanAddSelf = $anyoneCanAddSelf;
|
1321 |
+
}
|
1322 |
+
public function getAnyoneCanAddSelf() {
|
1323 |
+
return $this->anyoneCanAddSelf;
|
1324 |
+
}
|
1325 |
+
public function setReminders(Google_EventReminders $reminders) {
|
1326 |
+
$this->reminders = $reminders;
|
1327 |
+
}
|
1328 |
+
public function getReminders() {
|
1329 |
+
return $this->reminders;
|
1330 |
+
}
|
1331 |
+
public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) {
|
1332 |
+
$this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
|
1333 |
+
}
|
1334 |
+
public function getGuestsCanSeeOtherGuests() {
|
1335 |
+
return $this->guestsCanSeeOtherGuests;
|
1336 |
+
}
|
1337 |
+
public function setOriginalStartTime(Google_EventDateTime $originalStartTime) {
|
1338 |
+
$this->originalStartTime = $originalStartTime;
|
1339 |
+
}
|
1340 |
+
public function getOriginalStartTime() {
|
1341 |
+
return $this->originalStartTime;
|
1342 |
+
}
|
1343 |
+
public function setGuestsCanInviteOthers($guestsCanInviteOthers) {
|
1344 |
+
$this->guestsCanInviteOthers = $guestsCanInviteOthers;
|
1345 |
+
}
|
1346 |
+
public function getGuestsCanInviteOthers() {
|
1347 |
+
return $this->guestsCanInviteOthers;
|
1348 |
+
}
|
1349 |
+
public function setTransparency($transparency) {
|
1350 |
+
$this->transparency = $transparency;
|
1351 |
+
}
|
1352 |
+
public function getTransparency() {
|
1353 |
+
return $this->transparency;
|
1354 |
+
}
|
1355 |
+
public function setPrivateCopy($privateCopy) {
|
1356 |
+
$this->privateCopy = $privateCopy;
|
1357 |
+
}
|
1358 |
+
public function getPrivateCopy() {
|
1359 |
+
return $this->privateCopy;
|
1360 |
+
}
|
1361 |
+
}
|
1362 |
+
|
1363 |
+
class Google_EventAttendee extends Google_Model {
|
1364 |
+
public $comment;
|
1365 |
+
public $displayName;
|
1366 |
+
public $responseStatus;
|
1367 |
+
public $self;
|
1368 |
+
public $id;
|
1369 |
+
public $additionalGuests;
|
1370 |
+
public $resource;
|
1371 |
+
public $organizer;
|
1372 |
+
public $optional;
|
1373 |
+
public $email;
|
1374 |
+
public function setComment($comment) {
|
1375 |
+
$this->comment = $comment;
|
1376 |
+
}
|
1377 |
+
public function getComment() {
|
1378 |
+
return $this->comment;
|
1379 |
+
}
|
1380 |
+
public function setDisplayName($displayName) {
|
1381 |
+
$this->displayName = $displayName;
|
1382 |
+
}
|
1383 |
+
public function getDisplayName() {
|
1384 |
+
return $this->displayName;
|
1385 |
+
}
|
1386 |
+
public function setResponseStatus($responseStatus) {
|
1387 |
+
$this->responseStatus = $responseStatus;
|
1388 |
+
}
|
1389 |
+
public function getResponseStatus() {
|
1390 |
+
return $this->responseStatus;
|
1391 |
+
}
|
1392 |
+
public function setSelf($self) {
|
1393 |
+
$this->self = $self;
|
1394 |
+
}
|
1395 |
+
public function getSelf() {
|
1396 |
+
return $this->self;
|
1397 |
+
}
|
1398 |
+
public function setId($id) {
|
1399 |
+
$this->id = $id;
|
1400 |
+
}
|
1401 |
+
public function getId() {
|
1402 |
+
return $this->id;
|
1403 |
+
}
|
1404 |
+
public function setAdditionalGuests($additionalGuests) {
|
1405 |
+
$this->additionalGuests = $additionalGuests;
|
1406 |
+
}
|
1407 |
+
public function getAdditionalGuests() {
|
1408 |
+
return $this->additionalGuests;
|
1409 |
+
}
|
1410 |
+
public function setResource($resource) {
|
1411 |
+
$this->resource = $resource;
|
1412 |
+
}
|
1413 |
+
public function getResource() {
|
1414 |
+
return $this->resource;
|
1415 |
+
}
|
1416 |
+
public function setOrganizer($organizer) {
|
1417 |
+
$this->organizer = $organizer;
|
1418 |
+
}
|
1419 |
+
public function getOrganizer() {
|
1420 |
+
return $this->organizer;
|
1421 |
+
}
|
1422 |
+
public function setOptional($optional) {
|
1423 |
+
$this->optional = $optional;
|
1424 |
+
}
|
1425 |
+
public function getOptional() {
|
1426 |
+
return $this->optional;
|
1427 |
+
}
|
1428 |
+
public function setEmail($email) {
|
1429 |
+
$this->email = $email;
|
1430 |
+
}
|
1431 |
+
public function getEmail() {
|
1432 |
+
return $this->email;
|
1433 |
+
}
|
1434 |
+
}
|
1435 |
+
|
1436 |
+
class Google_EventCreator extends Google_Model {
|
1437 |
+
public $self;
|
1438 |
+
public $displayName;
|
1439 |
+
public $email;
|
1440 |
+
public $id;
|
1441 |
+
public function setSelf($self) {
|
1442 |
+
$this->self = $self;
|
1443 |
+
}
|
1444 |
+
public function getSelf() {
|
1445 |
+
return $this->self;
|
1446 |
+
}
|
1447 |
+
public function setDisplayName($displayName) {
|
1448 |
+
$this->displayName = $displayName;
|
1449 |
+
}
|
1450 |
+
public function getDisplayName() {
|
1451 |
+
return $this->displayName;
|
1452 |
+
}
|
1453 |
+
public function setEmail($email) {
|
1454 |
+
$this->email = $email;
|
1455 |
+
}
|
1456 |
+
public function getEmail() {
|
1457 |
+
return $this->email;
|
1458 |
+
}
|
1459 |
+
public function setId($id) {
|
1460 |
+
$this->id = $id;
|
1461 |
+
}
|
1462 |
+
public function getId() {
|
1463 |
+
return $this->id;
|
1464 |
+
}
|
1465 |
+
}
|
1466 |
+
|
1467 |
+
class Google_EventDateTime extends Google_Model {
|
1468 |
+
public $date;
|
1469 |
+
public $timeZone;
|
1470 |
+
public $dateTime;
|
1471 |
+
public function setDate($date) {
|
1472 |
+
$this->date = $date;
|
1473 |
+
}
|
1474 |
+
public function getDate() {
|
1475 |
+
return $this->date;
|
1476 |
+
}
|
1477 |
+
public function setTimeZone($timeZone) {
|
1478 |
+
$this->timeZone = $timeZone;
|
1479 |
+
}
|
1480 |
+
public function getTimeZone() {
|
1481 |
+
return $this->timeZone;
|
1482 |
+
}
|
1483 |
+
public function setDateTime($dateTime) {
|
1484 |
+
$this->dateTime = $dateTime;
|
1485 |
+
}
|
1486 |
+
public function getDateTime() {
|
1487 |
+
return $this->dateTime;
|
1488 |
+
}
|
1489 |
+
}
|
1490 |
+
|
1491 |
+
class Google_EventExtendedProperties extends Google_Model {
|
1492 |
+
public $shared;
|
1493 |
+
public $private;
|
1494 |
+
public function setShared($shared) {
|
1495 |
+
$this->shared = $shared;
|
1496 |
+
}
|
1497 |
+
public function getShared() {
|
1498 |
+
return $this->shared;
|
1499 |
+
}
|
1500 |
+
public function setPrivate($private) {
|
1501 |
+
$this->private = $private;
|
1502 |
+
}
|
1503 |
+
public function getPrivate() {
|
1504 |
+
return $this->private;
|
1505 |
+
}
|
1506 |
+
}
|
1507 |
+
|
1508 |
+
class Google_EventGadget extends Google_Model {
|
1509 |
+
public $preferences;
|
1510 |
+
public $title;
|
1511 |
+
public $height;
|
1512 |
+
public $width;
|
1513 |
+
public $link;
|
1514 |
+
public $type;
|
1515 |
+
public $display;
|
1516 |
+
public $iconLink;
|
1517 |
+
public function setPreferences($preferences) {
|
1518 |
+
$this->preferences = $preferences;
|
1519 |
+
}
|
1520 |
+
public function getPreferences() {
|
1521 |
+
return $this->preferences;
|
1522 |
+
}
|
1523 |
+
public function setTitle($title) {
|
1524 |
+
$this->title = $title;
|
1525 |
+
}
|
1526 |
+
public function getTitle() {
|
1527 |
+
return $this->title;
|
1528 |
+
}
|
1529 |
+
public function setHeight($height) {
|
1530 |
+
$this->height = $height;
|
1531 |
+
}
|
1532 |
+
public function getHeight() {
|
1533 |
+
return $this->height;
|
1534 |
+
}
|
1535 |
+
public function setWidth($width) {
|
1536 |
+
$this->width = $width;
|
1537 |
+
}
|
1538 |
+
public function getWidth() {
|
1539 |
+
return $this->width;
|
1540 |
+
}
|
1541 |
+
public function setLink($link) {
|
1542 |
+
$this->link = $link;
|
1543 |
+
}
|
1544 |
+
public function getLink() {
|
1545 |
+
return $this->link;
|
1546 |
+
}
|
1547 |
+
public function setType($type) {
|
1548 |
+
$this->type = $type;
|
1549 |
+
}
|
1550 |
+
public function getType() {
|
1551 |
+
return $this->type;
|
1552 |
+
}
|
1553 |
+
public function setDisplay($display) {
|
1554 |
+
$this->display = $display;
|
1555 |
+
}
|
1556 |
+
public function getDisplay() {
|
1557 |
+
return $this->display;
|
1558 |
+
}
|
1559 |
+
public function setIconLink($iconLink) {
|
1560 |
+
$this->iconLink = $iconLink;
|
1561 |
+
}
|
1562 |
+
public function getIconLink() {
|
1563 |
+
return $this->iconLink;
|
1564 |
+
}
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
class Google_EventOrganizer extends Google_Model {
|
1568 |
+
public $self;
|
1569 |
+
public $displayName;
|
1570 |
+
public $email;
|
1571 |
+
public $id;
|
1572 |
+
public function setSelf($self) {
|
1573 |
+
$this->self = $self;
|
1574 |
+
}
|
1575 |
+
public function getSelf() {
|
1576 |
+
return $this->self;
|
1577 |
+
}
|
1578 |
+
public function setDisplayName($displayName) {
|
1579 |
+
$this->displayName = $displayName;
|
1580 |
+
}
|
1581 |
+
public function getDisplayName() {
|
1582 |
+
return $this->displayName;
|
1583 |
+
}
|
1584 |
+
public function setEmail($email) {
|
1585 |
+
$this->email = $email;
|
1586 |
+
}
|
1587 |
+
public function getEmail() {
|
1588 |
+
return $this->email;
|
1589 |
+
}
|
1590 |
+
public function setId($id) {
|
1591 |
+
$this->id = $id;
|
1592 |
+
}
|
1593 |
+
public function getId() {
|
1594 |
+
return $this->id;
|
1595 |
+
}
|
1596 |
+
}
|
1597 |
+
|
1598 |
+
class Google_EventReminder extends Google_Model {
|
1599 |
+
public $minutes;
|
1600 |
+
public $method;
|
1601 |
+
public function setMinutes($minutes) {
|
1602 |
+
$this->minutes = $minutes;
|
1603 |
+
}
|
1604 |
+
public function getMinutes() {
|
1605 |
+
return $this->minutes;
|
1606 |
+
}
|
1607 |
+
public function setMethod($method) {
|
1608 |
+
$this->method = $method;
|
1609 |
+
}
|
1610 |
+
public function getMethod() {
|
1611 |
+
return $this->method;
|
1612 |
+
}
|
1613 |
+
}
|
1614 |
+
|
1615 |
+
class Google_EventReminders extends Google_Model {
|
1616 |
+
protected $__overridesType = 'Google_EventReminder';
|
1617 |
+
protected $__overridesDataType = 'array';
|
1618 |
+
public $overrides;
|
1619 |
+
public $useDefault;
|
1620 |
+
public function setOverrides(/* array(Google_EventReminder) */ $overrides) {
|
1621 |
+
$this->assertIsArray($overrides, 'Google_EventReminder', __METHOD__);
|
1622 |
+
$this->overrides = $overrides;
|
1623 |
+
}
|
1624 |
+
public function getOverrides() {
|
1625 |
+
return $this->overrides;
|
1626 |
+
}
|
1627 |
+
public function setUseDefault($useDefault) {
|
1628 |
+
$this->useDefault = $useDefault;
|
1629 |
+
}
|
1630 |
+
public function getUseDefault() {
|
1631 |
+
return $this->useDefault;
|
1632 |
+
}
|
1633 |
+
}
|
1634 |
+
|
1635 |
+
class Google_Events extends Google_Model {
|
1636 |
+
public $nextPageToken;
|
1637 |
+
public $kind;
|
1638 |
+
protected $__defaultRemindersType = 'Google_EventReminder';
|
1639 |
+
protected $__defaultRemindersDataType = 'array';
|
1640 |
+
public $defaultReminders;
|
1641 |
+
public $description;
|
1642 |
+
protected $__itemsType = 'Google_Event';
|
1643 |
+
protected $__itemsDataType = 'array';
|
1644 |
+
public $items;
|
1645 |
+
public $updated;
|
1646 |
+
public $summary;
|
1647 |
+
public $etag;
|
1648 |
+
public $timeZone;
|
1649 |
+
public $accessRole;
|
1650 |
+
public function setNextPageToken($nextPageToken) {
|
1651 |
+
$this->nextPageToken = $nextPageToken;
|
1652 |
+
}
|
1653 |
+
public function getNextPageToken() {
|
1654 |
+
return $this->nextPageToken;
|
1655 |
+
}
|
1656 |
+
public function setKind($kind) {
|
1657 |
+
$this->kind = $kind;
|
1658 |
+
}
|
1659 |
+
public function getKind() {
|
1660 |
+
return $this->kind;
|
1661 |
+
}
|
1662 |
+
public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
|
1663 |
+
$this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
|
1664 |
+
$this->defaultReminders = $defaultReminders;
|
1665 |
+
}
|
1666 |
+
public function getDefaultReminders() {
|
1667 |
+
return $this->defaultReminders;
|
1668 |
+
}
|
1669 |
+
public function setDescription($description) {
|
1670 |
+
$this->description = $description;
|
1671 |
+
}
|
1672 |
+
public function getDescription() {
|
1673 |
+
return $this->description;
|
1674 |
+
}
|
1675 |
+
public function setItems(/* array(Google_Event) */ $items) {
|
1676 |
+
$this->assertIsArray($items, 'Google_Event', __METHOD__);
|
1677 |
+
$this->items = $items;
|
1678 |
+
}
|
1679 |
+
public function getItems() {
|
1680 |
+
return $this->items;
|
1681 |
+
}
|
1682 |
+
public function setUpdated($updated) {
|
1683 |
+
$this->updated = $updated;
|
1684 |
+
}
|
1685 |
+
public function getUpdated() {
|
1686 |
+
return $this->updated;
|
1687 |
+
}
|
1688 |
+
public function setSummary($summary) {
|
1689 |
+
$this->summary = $summary;
|
1690 |
+
}
|
1691 |
+
public function getSummary() {
|
1692 |
+
return $this->summary;
|
1693 |
+
}
|
1694 |
+
public function setEtag($etag) {
|
1695 |
+
$this->etag = $etag;
|
1696 |
+
}
|
1697 |
+
public function getEtag() {
|
1698 |
+
return $this->etag;
|
1699 |
+
}
|
1700 |
+
public function setTimeZone($timeZone) {
|
1701 |
+
$this->timeZone = $timeZone;
|
1702 |
+
}
|
1703 |
+
public function getTimeZone() {
|
1704 |
+
return $this->timeZone;
|
1705 |
+
}
|
1706 |
+
public function setAccessRole($accessRole) {
|
1707 |
+
$this->accessRole = $accessRole;
|
1708 |
+
}
|
1709 |
+
public function getAccessRole() {
|
1710 |
+
return $this->accessRole;
|
1711 |
+
}
|
1712 |
+
}
|
1713 |
+
|
1714 |
+
class Google_FreeBusyCalendar extends Google_Model {
|
1715 |
+
protected $__busyType = 'Google_TimePeriod';
|
1716 |
+
protected $__busyDataType = 'array';
|
1717 |
+
public $busy;
|
1718 |
+
protected $__errorsType = 'Google_Error';
|
1719 |
+
protected $__errorsDataType = 'array';
|
1720 |
+
public $errors;
|
1721 |
+
public function setBusy(/* array(Google_TimePeriod) */ $busy) {
|
1722 |
+
$this->assertIsArray($busy, 'Google_TimePeriod', __METHOD__);
|
1723 |
+
$this->busy = $busy;
|
1724 |
+
}
|
1725 |
+
public function getBusy() {
|
1726 |
+
return $this->busy;
|
1727 |
+
}
|
1728 |
+
public function setErrors(/* array(Google_Error) */ $errors) {
|
1729 |
+
$this->assertIsArray($errors, 'Google_Error', __METHOD__);
|
1730 |
+
$this->errors = $errors;
|
1731 |
+
}
|
1732 |
+
public function getErrors() {
|
1733 |
+
return $this->errors;
|
1734 |
+
}
|
1735 |
+
}
|
1736 |
+
|
1737 |
+
class Google_FreeBusyGroup extends Google_Model {
|
1738 |
+
protected $__errorsType = 'Google_Error';
|
1739 |
+
protected $__errorsDataType = 'array';
|
1740 |
+
public $errors;
|
1741 |
+
public $calendars;
|
1742 |
+
public function setErrors(/* array(Google_Error) */ $errors) {
|
1743 |
+
$this->assertIsArray($errors, 'Google_Error', __METHOD__);
|
1744 |
+
$this->errors = $errors;
|
1745 |
+
}
|
1746 |
+
public function getErrors() {
|
1747 |
+
return $this->errors;
|
1748 |
+
}
|
1749 |
+
public function setCalendars(/* array(Google_string) */ $calendars) {
|
1750 |
+
$this->assertIsArray($calendars, 'Google_string', __METHOD__);
|
1751 |
+
$this->calendars = $calendars;
|
1752 |
+
}
|
1753 |
+
public function getCalendars() {
|
1754 |
+
return $this->calendars;
|
1755 |
+
}
|
1756 |
+
}
|
1757 |
+
|
1758 |
+
class Google_FreeBusyRequest extends Google_Model {
|
1759 |
+
public $calendarExpansionMax;
|
1760 |
+
public $groupExpansionMax;
|
1761 |
+
public $timeMax;
|
1762 |
+
protected $__itemsType = 'Google_FreeBusyRequestItem';
|
1763 |
+
protected $__itemsDataType = 'array';
|
1764 |
+
public $items;
|
1765 |
+
public $timeMin;
|
1766 |
+
public $timeZone;
|
1767 |
+
public function setCalendarExpansionMax($calendarExpansionMax) {
|
1768 |
+
$this->calendarExpansionMax = $calendarExpansionMax;
|
1769 |
+
}
|
1770 |
+
public function getCalendarExpansionMax() {
|
1771 |
+
return $this->calendarExpansionMax;
|
1772 |
+
}
|
1773 |
+
public function setGroupExpansionMax($groupExpansionMax) {
|
1774 |
+
$this->groupExpansionMax = $groupExpansionMax;
|
1775 |
+
}
|
1776 |
+
public function getGroupExpansionMax() {
|
1777 |
+
return $this->groupExpansionMax;
|
1778 |
+
}
|
1779 |
+
public function setTimeMax($timeMax) {
|
1780 |
+
$this->timeMax = $timeMax;
|
1781 |
+
}
|
1782 |
+
public function getTimeMax() {
|
1783 |
+
return $this->timeMax;
|
1784 |
+
}
|
1785 |
+
public function setItems(/* array(Google_FreeBusyRequestItem) */ $items) {
|
1786 |
+
$this->assertIsArray($items, 'Google_FreeBusyRequestItem', __METHOD__);
|
1787 |
+
$this->items = $items;
|
1788 |
+
}
|
1789 |
+
public function getItems() {
|
1790 |
+
return $this->items;
|
1791 |
+
}
|
1792 |
+
public function setTimeMin($timeMin) {
|
1793 |
+
$this->timeMin = $timeMin;
|
1794 |
+
}
|
1795 |
+
public function getTimeMin() {
|
1796 |
+
return $this->timeMin;
|
1797 |
+
}
|
1798 |
+
public function setTimeZone($timeZone) {
|
1799 |
+
$this->timeZone = $timeZone;
|
1800 |
+
}
|
1801 |
+
public function getTimeZone() {
|
1802 |
+
return $this->timeZone;
|
1803 |
+
}
|
1804 |
+
}
|
1805 |
+
|
1806 |
+
class Google_FreeBusyRequestItem extends Google_Model {
|
1807 |
+
public $id;
|
1808 |
+
public function setId($id) {
|
1809 |
+
$this->id = $id;
|
1810 |
+
}
|
1811 |
+
public function getId() {
|
1812 |
+
return $this->id;
|
1813 |
+
}
|
1814 |
+
}
|
1815 |
+
|
1816 |
+
class Google_FreeBusyResponse extends Google_Model {
|
1817 |
+
public $timeMax;
|
1818 |
+
public $kind;
|
1819 |
+
protected $__calendarsType = 'Google_FreeBusyCalendar';
|
1820 |
+
protected $__calendarsDataType = 'map';
|
1821 |
+
public $calendars;
|
1822 |
+
public $timeMin;
|
1823 |
+
protected $__groupsType = 'Google_FreeBusyGroup';
|
1824 |
+
protected $__groupsDataType = 'map';
|
1825 |
+
public $groups;
|
1826 |
+
public function setTimeMax($timeMax) {
|
1827 |
+
$this->timeMax = $timeMax;
|
1828 |
+
}
|
1829 |
+
public function getTimeMax() {
|
1830 |
+
return $this->timeMax;
|
1831 |
+
}
|
1832 |
+
public function setKind($kind) {
|
1833 |
+
$this->kind = $kind;
|
1834 |
+
}
|
1835 |
+
public function getKind() {
|
1836 |
+
return $this->kind;
|
1837 |
+
}
|
1838 |
+
public function setCalendars(Google_FreeBusyCalendar $calendars) {
|
1839 |
+
$this->calendars = $calendars;
|
1840 |
+
}
|
1841 |
+
public function getCalendars() {
|
1842 |
+
return $this->calendars;
|
1843 |
+
}
|
1844 |
+
public function setTimeMin($timeMin) {
|
1845 |
+
$this->timeMin = $timeMin;
|
1846 |
+
}
|
1847 |
+
public function getTimeMin() {
|
1848 |
+
return $this->timeMin;
|
1849 |
+
}
|
1850 |
+
public function setGroups(Google_FreeBusyGroup $groups) {
|
1851 |
+
$this->groups = $groups;
|
1852 |
+
}
|
1853 |
+
public function getGroups() {
|
1854 |
+
return $this->groups;
|
1855 |
+
}
|
1856 |
+
}
|
1857 |
+
|
1858 |
+
class Google_Setting extends Google_Model {
|
1859 |
+
public $kind;
|
1860 |
+
public $etag;
|
1861 |
+
public $id;
|
1862 |
+
public $value;
|
1863 |
+
public function setKind($kind) {
|
1864 |
+
$this->kind = $kind;
|
1865 |
+
}
|
1866 |
+
public function getKind() {
|
1867 |
+
return $this->kind;
|
1868 |
+
}
|
1869 |
+
public function setEtag($etag) {
|
1870 |
+
$this->etag = $etag;
|
1871 |
+
}
|
1872 |
+
public function getEtag() {
|
1873 |
+
return $this->etag;
|
1874 |
+
}
|
1875 |
+
public function setId($id) {
|
1876 |
+
$this->id = $id;
|
1877 |
+
}
|
1878 |
+
public function getId() {
|
1879 |
+
return $this->id;
|
1880 |
+
}
|
1881 |
+
public function setValue($value) {
|
1882 |
+
$this->value = $value;
|
1883 |
+
}
|
1884 |
+
public function getValue() {
|
1885 |
+
return $this->value;
|
1886 |
+
}
|
1887 |
+
}
|
1888 |
+
|
1889 |
+
class Google_Settings extends Google_Model {
|
1890 |
+
protected $__itemsType = 'Google_Setting';
|
1891 |
+
protected $__itemsDataType = 'array';
|
1892 |
+
public $items;
|
1893 |
+
public $kind;
|
1894 |
+
public $etag;
|
1895 |
+
public function setItems(/* array(Google_Setting) */ $items) {
|
1896 |
+
$this->assertIsArray($items, 'Google_Setting', __METHOD__);
|
1897 |
+
$this->items = $items;
|
1898 |
+
}
|
1899 |
+
public function getItems() {
|
1900 |
+
return $this->items;
|
1901 |
+
}
|
1902 |
+
public function setKind($kind) {
|
1903 |
+
$this->kind = $kind;
|
1904 |
+
}
|
1905 |
+
public function getKind() {
|
1906 |
+
return $this->kind;
|
1907 |
+
}
|
1908 |
+
public function setEtag($etag) {
|
1909 |
+
$this->etag = $etag;
|
1910 |
+
}
|
1911 |
+
public function getEtag() {
|
1912 |
+
return $this->etag;
|
1913 |
+
}
|
1914 |
+
}
|
1915 |
+
|
1916 |
+
class Google_TimePeriod extends Google_Model {
|
1917 |
+
public $start;
|
1918 |
+
public $end;
|
1919 |
+
public function setStart($start) {
|
1920 |
+
$this->start = $start;
|
1921 |
+
}
|
1922 |
+
public function getStart() {
|
1923 |
+
return $this->start;
|
1924 |
+
}
|
1925 |
+
public function setEnd($end) {
|
1926 |
+
$this->end = $end;
|
1927 |
+
}
|
1928 |
+
public function getEnd() {
|
1929 |
+
return $this->end;
|
1930 |
+
}
|
1931 |
+
}
|
lib/SocialLogin/contrib/Google_ComputeService.php
ADDED
@@ -0,0 +1,2629 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "operations" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $computeService = new Google_ComputeService(...);
|
22 |
+
* $operations = $computeService->operations;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_OperationsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Retrieves the specified operation resource. (operations.get)
|
30 |
+
*
|
31 |
+
* @param string $project Name of the project scoping this request.
|
32 |
+
* @param string $operation Name of the operation resource to return.
|
33 |
+
* @param array $optParams Optional parameters.
|
34 |
+
* @return Google_Operation
|
35 |
+
*/
|
36 |
+
public function get($project, $operation, $optParams = array()) {
|
37 |
+
$params = array('project' => $project, 'operation' => $operation);
|
38 |
+
$params = array_merge($params, $optParams);
|
39 |
+
$data = $this->__call('get', array($params));
|
40 |
+
if ($this->useObjects()) {
|
41 |
+
return new Google_Operation($data);
|
42 |
+
} else {
|
43 |
+
return $data;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
/**
|
47 |
+
* Retrieves the list of operation resources contained within the specified project.
|
48 |
+
* (operations.list)
|
49 |
+
*
|
50 |
+
* @param string $project Name of the project scoping this request.
|
51 |
+
* @param array $optParams Optional parameters.
|
52 |
+
*
|
53 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
54 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
55 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
56 |
+
* @return Google_OperationList
|
57 |
+
*/
|
58 |
+
public function listOperations($project, $optParams = array()) {
|
59 |
+
$params = array('project' => $project);
|
60 |
+
$params = array_merge($params, $optParams);
|
61 |
+
$data = $this->__call('list', array($params));
|
62 |
+
if ($this->useObjects()) {
|
63 |
+
return new Google_OperationList($data);
|
64 |
+
} else {
|
65 |
+
return $data;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
/**
|
69 |
+
* Deletes the specified operation resource. (operations.delete)
|
70 |
+
*
|
71 |
+
* @param string $project Name of the project scoping this request.
|
72 |
+
* @param string $operation Name of the operation resource to delete.
|
73 |
+
* @param array $optParams Optional parameters.
|
74 |
+
*/
|
75 |
+
public function delete($project, $operation, $optParams = array()) {
|
76 |
+
$params = array('project' => $project, 'operation' => $operation);
|
77 |
+
$params = array_merge($params, $optParams);
|
78 |
+
$data = $this->__call('delete', array($params));
|
79 |
+
return $data;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* The "kernels" collection of methods.
|
85 |
+
* Typical usage is:
|
86 |
+
* <code>
|
87 |
+
* $computeService = new Google_ComputeService(...);
|
88 |
+
* $kernels = $computeService->kernels;
|
89 |
+
* </code>
|
90 |
+
*/
|
91 |
+
class Google_KernelsServiceResource extends Google_ServiceResource {
|
92 |
+
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Retrieves the list of kernel resources available to the specified project. (kernels.list)
|
96 |
+
*
|
97 |
+
* @param string $project Name of the project scoping this request.
|
98 |
+
* @param array $optParams Optional parameters.
|
99 |
+
*
|
100 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
101 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
102 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
103 |
+
* @return Google_KernelList
|
104 |
+
*/
|
105 |
+
public function listKernels($project, $optParams = array()) {
|
106 |
+
$params = array('project' => $project);
|
107 |
+
$params = array_merge($params, $optParams);
|
108 |
+
$data = $this->__call('list', array($params));
|
109 |
+
if ($this->useObjects()) {
|
110 |
+
return new Google_KernelList($data);
|
111 |
+
} else {
|
112 |
+
return $data;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
/**
|
116 |
+
* Returns the specified kernel resource. (kernels.get)
|
117 |
+
*
|
118 |
+
* @param string $project Name of the project scoping this request.
|
119 |
+
* @param string $kernel Name of the kernel resource to return.
|
120 |
+
* @param array $optParams Optional parameters.
|
121 |
+
* @return Google_Kernel
|
122 |
+
*/
|
123 |
+
public function get($project, $kernel, $optParams = array()) {
|
124 |
+
$params = array('project' => $project, 'kernel' => $kernel);
|
125 |
+
$params = array_merge($params, $optParams);
|
126 |
+
$data = $this->__call('get', array($params));
|
127 |
+
if ($this->useObjects()) {
|
128 |
+
return new Google_Kernel($data);
|
129 |
+
} else {
|
130 |
+
return $data;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* The "disks" collection of methods.
|
137 |
+
* Typical usage is:
|
138 |
+
* <code>
|
139 |
+
* $computeService = new Google_ComputeService(...);
|
140 |
+
* $disks = $computeService->disks;
|
141 |
+
* </code>
|
142 |
+
*/
|
143 |
+
class Google_DisksServiceResource extends Google_ServiceResource {
|
144 |
+
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Creates a persistent disk resource in the specified project using the data included in the
|
148 |
+
* request. (disks.insert)
|
149 |
+
*
|
150 |
+
* @param string $project Name of the project scoping this request.
|
151 |
+
* @param Google_Disk $postBody
|
152 |
+
* @param array $optParams Optional parameters.
|
153 |
+
* @return Google_Operation
|
154 |
+
*/
|
155 |
+
public function insert($project, Google_Disk $postBody, $optParams = array()) {
|
156 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
157 |
+
$params = array_merge($params, $optParams);
|
158 |
+
$data = $this->__call('insert', array($params));
|
159 |
+
if ($this->useObjects()) {
|
160 |
+
return new Google_Operation($data);
|
161 |
+
} else {
|
162 |
+
return $data;
|
163 |
+
}
|
164 |
+
}
|
165 |
+
/**
|
166 |
+
* Returns the specified persistent disk resource. (disks.get)
|
167 |
+
*
|
168 |
+
* @param string $project Name of the project scoping this request.
|
169 |
+
* @param string $disk Name of the persistent disk resource to return.
|
170 |
+
* @param array $optParams Optional parameters.
|
171 |
+
* @return Google_Disk
|
172 |
+
*/
|
173 |
+
public function get($project, $disk, $optParams = array()) {
|
174 |
+
$params = array('project' => $project, 'disk' => $disk);
|
175 |
+
$params = array_merge($params, $optParams);
|
176 |
+
$data = $this->__call('get', array($params));
|
177 |
+
if ($this->useObjects()) {
|
178 |
+
return new Google_Disk($data);
|
179 |
+
} else {
|
180 |
+
return $data;
|
181 |
+
}
|
182 |
+
}
|
183 |
+
/**
|
184 |
+
* Retrieves the list of persistent disk resources contained within the specified project.
|
185 |
+
* (disks.list)
|
186 |
+
*
|
187 |
+
* @param string $project Name of the project scoping this request.
|
188 |
+
* @param array $optParams Optional parameters.
|
189 |
+
*
|
190 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
191 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
192 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
193 |
+
* @return Google_DiskList
|
194 |
+
*/
|
195 |
+
public function listDisks($project, $optParams = array()) {
|
196 |
+
$params = array('project' => $project);
|
197 |
+
$params = array_merge($params, $optParams);
|
198 |
+
$data = $this->__call('list', array($params));
|
199 |
+
if ($this->useObjects()) {
|
200 |
+
return new Google_DiskList($data);
|
201 |
+
} else {
|
202 |
+
return $data;
|
203 |
+
}
|
204 |
+
}
|
205 |
+
/**
|
206 |
+
* Deletes the specified persistent disk resource. (disks.delete)
|
207 |
+
*
|
208 |
+
* @param string $project Name of the project scoping this request.
|
209 |
+
* @param string $disk Name of the persistent disk resource to delete.
|
210 |
+
* @param array $optParams Optional parameters.
|
211 |
+
* @return Google_Operation
|
212 |
+
*/
|
213 |
+
public function delete($project, $disk, $optParams = array()) {
|
214 |
+
$params = array('project' => $project, 'disk' => $disk);
|
215 |
+
$params = array_merge($params, $optParams);
|
216 |
+
$data = $this->__call('delete', array($params));
|
217 |
+
if ($this->useObjects()) {
|
218 |
+
return new Google_Operation($data);
|
219 |
+
} else {
|
220 |
+
return $data;
|
221 |
+
}
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* The "snapshots" collection of methods.
|
227 |
+
* Typical usage is:
|
228 |
+
* <code>
|
229 |
+
* $computeService = new Google_ComputeService(...);
|
230 |
+
* $snapshots = $computeService->snapshots;
|
231 |
+
* </code>
|
232 |
+
*/
|
233 |
+
class Google_SnapshotsServiceResource extends Google_ServiceResource {
|
234 |
+
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Creates a persistent disk snapshot resource in the specified project using the data included in
|
238 |
+
* the request. (snapshots.insert)
|
239 |
+
*
|
240 |
+
* @param string $project Name of the project scoping this request.
|
241 |
+
* @param Google_Snapshot $postBody
|
242 |
+
* @param array $optParams Optional parameters.
|
243 |
+
* @return Google_Operation
|
244 |
+
*/
|
245 |
+
public function insert($project, Google_Snapshot $postBody, $optParams = array()) {
|
246 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
247 |
+
$params = array_merge($params, $optParams);
|
248 |
+
$data = $this->__call('insert', array($params));
|
249 |
+
if ($this->useObjects()) {
|
250 |
+
return new Google_Operation($data);
|
251 |
+
} else {
|
252 |
+
return $data;
|
253 |
+
}
|
254 |
+
}
|
255 |
+
/**
|
256 |
+
* Returns the specified persistent disk snapshot resource. (snapshots.get)
|
257 |
+
*
|
258 |
+
* @param string $project Name of the project scoping this request.
|
259 |
+
* @param string $snapshot Name of the persistent disk snapshot resource to return.
|
260 |
+
* @param array $optParams Optional parameters.
|
261 |
+
* @return Google_Snapshot
|
262 |
+
*/
|
263 |
+
public function get($project, $snapshot, $optParams = array()) {
|
264 |
+
$params = array('project' => $project, 'snapshot' => $snapshot);
|
265 |
+
$params = array_merge($params, $optParams);
|
266 |
+
$data = $this->__call('get', array($params));
|
267 |
+
if ($this->useObjects()) {
|
268 |
+
return new Google_Snapshot($data);
|
269 |
+
} else {
|
270 |
+
return $data;
|
271 |
+
}
|
272 |
+
}
|
273 |
+
/**
|
274 |
+
* Retrieves the list of persistent disk snapshot resources contained within the specified project.
|
275 |
+
* (snapshots.list)
|
276 |
+
*
|
277 |
+
* @param string $project Name of the project scoping this request.
|
278 |
+
* @param array $optParams Optional parameters.
|
279 |
+
*
|
280 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
281 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
282 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
283 |
+
* @return Google_SnapshotList
|
284 |
+
*/
|
285 |
+
public function listSnapshots($project, $optParams = array()) {
|
286 |
+
$params = array('project' => $project);
|
287 |
+
$params = array_merge($params, $optParams);
|
288 |
+
$data = $this->__call('list', array($params));
|
289 |
+
if ($this->useObjects()) {
|
290 |
+
return new Google_SnapshotList($data);
|
291 |
+
} else {
|
292 |
+
return $data;
|
293 |
+
}
|
294 |
+
}
|
295 |
+
/**
|
296 |
+
* Deletes the specified persistent disk snapshot resource. (snapshots.delete)
|
297 |
+
*
|
298 |
+
* @param string $project Name of the project scoping this request.
|
299 |
+
* @param string $snapshot Name of the persistent disk snapshot resource to delete.
|
300 |
+
* @param array $optParams Optional parameters.
|
301 |
+
* @return Google_Operation
|
302 |
+
*/
|
303 |
+
public function delete($project, $snapshot, $optParams = array()) {
|
304 |
+
$params = array('project' => $project, 'snapshot' => $snapshot);
|
305 |
+
$params = array_merge($params, $optParams);
|
306 |
+
$data = $this->__call('delete', array($params));
|
307 |
+
if ($this->useObjects()) {
|
308 |
+
return new Google_Operation($data);
|
309 |
+
} else {
|
310 |
+
return $data;
|
311 |
+
}
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
/**
|
316 |
+
* The "zones" collection of methods.
|
317 |
+
* Typical usage is:
|
318 |
+
* <code>
|
319 |
+
* $computeService = new Google_ComputeService(...);
|
320 |
+
* $zones = $computeService->zones;
|
321 |
+
* </code>
|
322 |
+
*/
|
323 |
+
class Google_ZonesServiceResource extends Google_ServiceResource {
|
324 |
+
|
325 |
+
|
326 |
+
/**
|
327 |
+
* Retrieves the list of zone resources available to the specified project. (zones.list)
|
328 |
+
*
|
329 |
+
* @param string $project Name of the project scoping this request.
|
330 |
+
* @param array $optParams Optional parameters.
|
331 |
+
*
|
332 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
333 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
334 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
335 |
+
* @return Google_ZoneList
|
336 |
+
*/
|
337 |
+
public function listZones($project, $optParams = array()) {
|
338 |
+
$params = array('project' => $project);
|
339 |
+
$params = array_merge($params, $optParams);
|
340 |
+
$data = $this->__call('list', array($params));
|
341 |
+
if ($this->useObjects()) {
|
342 |
+
return new Google_ZoneList($data);
|
343 |
+
} else {
|
344 |
+
return $data;
|
345 |
+
}
|
346 |
+
}
|
347 |
+
/**
|
348 |
+
* Returns the specified zone resource. (zones.get)
|
349 |
+
*
|
350 |
+
* @param string $project Name of the project scoping this request.
|
351 |
+
* @param string $zone Name of the zone resource to return.
|
352 |
+
* @param array $optParams Optional parameters.
|
353 |
+
* @return Google_Zone
|
354 |
+
*/
|
355 |
+
public function get($project, $zone, $optParams = array()) {
|
356 |
+
$params = array('project' => $project, 'zone' => $zone);
|
357 |
+
$params = array_merge($params, $optParams);
|
358 |
+
$data = $this->__call('get', array($params));
|
359 |
+
if ($this->useObjects()) {
|
360 |
+
return new Google_Zone($data);
|
361 |
+
} else {
|
362 |
+
return $data;
|
363 |
+
}
|
364 |
+
}
|
365 |
+
}
|
366 |
+
|
367 |
+
/**
|
368 |
+
* The "instances" collection of methods.
|
369 |
+
* Typical usage is:
|
370 |
+
* <code>
|
371 |
+
* $computeService = new Google_ComputeService(...);
|
372 |
+
* $instances = $computeService->instances;
|
373 |
+
* </code>
|
374 |
+
*/
|
375 |
+
class Google_InstancesServiceResource extends Google_ServiceResource {
|
376 |
+
|
377 |
+
|
378 |
+
/**
|
379 |
+
* Creates an instance resource in the specified project using the data included in the request.
|
380 |
+
* (instances.insert)
|
381 |
+
*
|
382 |
+
* @param string $project Name of the project scoping this request.
|
383 |
+
* @param Google_Instance $postBody
|
384 |
+
* @param array $optParams Optional parameters.
|
385 |
+
* @return Google_Operation
|
386 |
+
*/
|
387 |
+
public function insert($project, Google_Instance $postBody, $optParams = array()) {
|
388 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
389 |
+
$params = array_merge($params, $optParams);
|
390 |
+
$data = $this->__call('insert', array($params));
|
391 |
+
if ($this->useObjects()) {
|
392 |
+
return new Google_Operation($data);
|
393 |
+
} else {
|
394 |
+
return $data;
|
395 |
+
}
|
396 |
+
}
|
397 |
+
/**
|
398 |
+
* Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
|
399 |
+
*
|
400 |
+
* @param string $project Project name.
|
401 |
+
* @param string $instance Instance name.
|
402 |
+
* @param string $access_config Access config name.
|
403 |
+
* @param string $network_interface Network interface name.
|
404 |
+
* @param array $optParams Optional parameters.
|
405 |
+
* @return Google_Operation
|
406 |
+
*/
|
407 |
+
public function deleteAccessConfig($project, $instance, $access_config, $network_interface, $optParams = array()) {
|
408 |
+
$params = array('project' => $project, 'instance' => $instance, 'access_config' => $access_config, 'network_interface' => $network_interface);
|
409 |
+
$params = array_merge($params, $optParams);
|
410 |
+
$data = $this->__call('deleteAccessConfig', array($params));
|
411 |
+
if ($this->useObjects()) {
|
412 |
+
return new Google_Operation($data);
|
413 |
+
} else {
|
414 |
+
return $data;
|
415 |
+
}
|
416 |
+
}
|
417 |
+
/**
|
418 |
+
* Returns the specified instance resource. (instances.get)
|
419 |
+
*
|
420 |
+
* @param string $project Name of the project scoping this request.
|
421 |
+
* @param string $instance Name of the instance resource to return.
|
422 |
+
* @param array $optParams Optional parameters.
|
423 |
+
* @return Google_Instance
|
424 |
+
*/
|
425 |
+
public function get($project, $instance, $optParams = array()) {
|
426 |
+
$params = array('project' => $project, 'instance' => $instance);
|
427 |
+
$params = array_merge($params, $optParams);
|
428 |
+
$data = $this->__call('get', array($params));
|
429 |
+
if ($this->useObjects()) {
|
430 |
+
return new Google_Instance($data);
|
431 |
+
} else {
|
432 |
+
return $data;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
/**
|
436 |
+
* Retrieves the list of instance resources contained within the specified project. (instances.list)
|
437 |
+
*
|
438 |
+
* @param string $project Name of the project scoping this request.
|
439 |
+
* @param array $optParams Optional parameters.
|
440 |
+
*
|
441 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
442 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
443 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
444 |
+
* @return Google_InstanceList
|
445 |
+
*/
|
446 |
+
public function listInstances($project, $optParams = array()) {
|
447 |
+
$params = array('project' => $project);
|
448 |
+
$params = array_merge($params, $optParams);
|
449 |
+
$data = $this->__call('list', array($params));
|
450 |
+
if ($this->useObjects()) {
|
451 |
+
return new Google_InstanceList($data);
|
452 |
+
} else {
|
453 |
+
return $data;
|
454 |
+
}
|
455 |
+
}
|
456 |
+
/**
|
457 |
+
* Adds an access config to an instance's network interface. (instances.addAccessConfig)
|
458 |
+
*
|
459 |
+
* @param string $project Project name.
|
460 |
+
* @param string $instance Instance name.
|
461 |
+
* @param string $network_interface Network interface name.
|
462 |
+
* @param Google_AccessConfig $postBody
|
463 |
+
* @param array $optParams Optional parameters.
|
464 |
+
* @return Google_Operation
|
465 |
+
*/
|
466 |
+
public function addAccessConfig($project, $instance, $network_interface, Google_AccessConfig $postBody, $optParams = array()) {
|
467 |
+
$params = array('project' => $project, 'instance' => $instance, 'network_interface' => $network_interface, 'postBody' => $postBody);
|
468 |
+
$params = array_merge($params, $optParams);
|
469 |
+
$data = $this->__call('addAccessConfig', array($params));
|
470 |
+
if ($this->useObjects()) {
|
471 |
+
return new Google_Operation($data);
|
472 |
+
} else {
|
473 |
+
return $data;
|
474 |
+
}
|
475 |
+
}
|
476 |
+
/**
|
477 |
+
* Deletes the specified instance resource. (instances.delete)
|
478 |
+
*
|
479 |
+
* @param string $project Name of the project scoping this request.
|
480 |
+
* @param string $instance Name of the instance resource to delete.
|
481 |
+
* @param array $optParams Optional parameters.
|
482 |
+
* @return Google_Operation
|
483 |
+
*/
|
484 |
+
public function delete($project, $instance, $optParams = array()) {
|
485 |
+
$params = array('project' => $project, 'instance' => $instance);
|
486 |
+
$params = array_merge($params, $optParams);
|
487 |
+
$data = $this->__call('delete', array($params));
|
488 |
+
if ($this->useObjects()) {
|
489 |
+
return new Google_Operation($data);
|
490 |
+
} else {
|
491 |
+
return $data;
|
492 |
+
}
|
493 |
+
}
|
494 |
+
}
|
495 |
+
|
496 |
+
/**
|
497 |
+
* The "machineTypes" collection of methods.
|
498 |
+
* Typical usage is:
|
499 |
+
* <code>
|
500 |
+
* $computeService = new Google_ComputeService(...);
|
501 |
+
* $machineTypes = $computeService->machineTypes;
|
502 |
+
* </code>
|
503 |
+
*/
|
504 |
+
class Google_MachineTypesServiceResource extends Google_ServiceResource {
|
505 |
+
|
506 |
+
|
507 |
+
/**
|
508 |
+
* Retrieves the list of machine type resources available to the specified project.
|
509 |
+
* (machineTypes.list)
|
510 |
+
*
|
511 |
+
* @param string $project Name of the project scoping this request.
|
512 |
+
* @param array $optParams Optional parameters.
|
513 |
+
*
|
514 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
515 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
516 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
517 |
+
* @return Google_MachineTypeList
|
518 |
+
*/
|
519 |
+
public function listMachineTypes($project, $optParams = array()) {
|
520 |
+
$params = array('project' => $project);
|
521 |
+
$params = array_merge($params, $optParams);
|
522 |
+
$data = $this->__call('list', array($params));
|
523 |
+
if ($this->useObjects()) {
|
524 |
+
return new Google_MachineTypeList($data);
|
525 |
+
} else {
|
526 |
+
return $data;
|
527 |
+
}
|
528 |
+
}
|
529 |
+
/**
|
530 |
+
* Returns the specified machine type resource. (machineTypes.get)
|
531 |
+
*
|
532 |
+
* @param string $project Name of the project scoping this request.
|
533 |
+
* @param string $machineType Name of the machine type resource to return.
|
534 |
+
* @param array $optParams Optional parameters.
|
535 |
+
* @return Google_MachineType
|
536 |
+
*/
|
537 |
+
public function get($project, $machineType, $optParams = array()) {
|
538 |
+
$params = array('project' => $project, 'machineType' => $machineType);
|
539 |
+
$params = array_merge($params, $optParams);
|
540 |
+
$data = $this->__call('get', array($params));
|
541 |
+
if ($this->useObjects()) {
|
542 |
+
return new Google_MachineType($data);
|
543 |
+
} else {
|
544 |
+
return $data;
|
545 |
+
}
|
546 |
+
}
|
547 |
+
}
|
548 |
+
|
549 |
+
/**
|
550 |
+
* The "images" collection of methods.
|
551 |
+
* Typical usage is:
|
552 |
+
* <code>
|
553 |
+
* $computeService = new Google_ComputeService(...);
|
554 |
+
* $images = $computeService->images;
|
555 |
+
* </code>
|
556 |
+
*/
|
557 |
+
class Google_ImagesServiceResource extends Google_ServiceResource {
|
558 |
+
|
559 |
+
|
560 |
+
/**
|
561 |
+
* Creates an image resource in the specified project using the data included in the request.
|
562 |
+
* (images.insert)
|
563 |
+
*
|
564 |
+
* @param string $project Name of the project scoping this request.
|
565 |
+
* @param Google_Image $postBody
|
566 |
+
* @param array $optParams Optional parameters.
|
567 |
+
* @return Google_Operation
|
568 |
+
*/
|
569 |
+
public function insert($project, Google_Image $postBody, $optParams = array()) {
|
570 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
571 |
+
$params = array_merge($params, $optParams);
|
572 |
+
$data = $this->__call('insert', array($params));
|
573 |
+
if ($this->useObjects()) {
|
574 |
+
return new Google_Operation($data);
|
575 |
+
} else {
|
576 |
+
return $data;
|
577 |
+
}
|
578 |
+
}
|
579 |
+
/**
|
580 |
+
* Returns the specified image resource. (images.get)
|
581 |
+
*
|
582 |
+
* @param string $project Name of the project scoping this request.
|
583 |
+
* @param string $image Name of the image resource to return.
|
584 |
+
* @param array $optParams Optional parameters.
|
585 |
+
* @return Google_Image
|
586 |
+
*/
|
587 |
+
public function get($project, $image, $optParams = array()) {
|
588 |
+
$params = array('project' => $project, 'image' => $image);
|
589 |
+
$params = array_merge($params, $optParams);
|
590 |
+
$data = $this->__call('get', array($params));
|
591 |
+
if ($this->useObjects()) {
|
592 |
+
return new Google_Image($data);
|
593 |
+
} else {
|
594 |
+
return $data;
|
595 |
+
}
|
596 |
+
}
|
597 |
+
/**
|
598 |
+
* Retrieves the list of image resources available to the specified project. (images.list)
|
599 |
+
*
|
600 |
+
* @param string $project Name of the project scoping this request.
|
601 |
+
* @param array $optParams Optional parameters.
|
602 |
+
*
|
603 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
604 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
605 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
606 |
+
* @return Google_ImageList
|
607 |
+
*/
|
608 |
+
public function listImages($project, $optParams = array()) {
|
609 |
+
$params = array('project' => $project);
|
610 |
+
$params = array_merge($params, $optParams);
|
611 |
+
$data = $this->__call('list', array($params));
|
612 |
+
if ($this->useObjects()) {
|
613 |
+
return new Google_ImageList($data);
|
614 |
+
} else {
|
615 |
+
return $data;
|
616 |
+
}
|
617 |
+
}
|
618 |
+
/**
|
619 |
+
* Deletes the specified image resource. (images.delete)
|
620 |
+
*
|
621 |
+
* @param string $project Name of the project scoping this request.
|
622 |
+
* @param string $image Name of the image resource to delete.
|
623 |
+
* @param array $optParams Optional parameters.
|
624 |
+
* @return Google_Operation
|
625 |
+
*/
|
626 |
+
public function delete($project, $image, $optParams = array()) {
|
627 |
+
$params = array('project' => $project, 'image' => $image);
|
628 |
+
$params = array_merge($params, $optParams);
|
629 |
+
$data = $this->__call('delete', array($params));
|
630 |
+
if ($this->useObjects()) {
|
631 |
+
return new Google_Operation($data);
|
632 |
+
} else {
|
633 |
+
return $data;
|
634 |
+
}
|
635 |
+
}
|
636 |
+
}
|
637 |
+
|
638 |
+
/**
|
639 |
+
* The "firewalls" collection of methods.
|
640 |
+
* Typical usage is:
|
641 |
+
* <code>
|
642 |
+
* $computeService = new Google_ComputeService(...);
|
643 |
+
* $firewalls = $computeService->firewalls;
|
644 |
+
* </code>
|
645 |
+
*/
|
646 |
+
class Google_FirewallsServiceResource extends Google_ServiceResource {
|
647 |
+
|
648 |
+
|
649 |
+
/**
|
650 |
+
* Creates a firewall resource in the specified project using the data included in the request.
|
651 |
+
* (firewalls.insert)
|
652 |
+
*
|
653 |
+
* @param string $project Name of the project scoping this request.
|
654 |
+
* @param Google_Firewall $postBody
|
655 |
+
* @param array $optParams Optional parameters.
|
656 |
+
* @return Google_Operation
|
657 |
+
*/
|
658 |
+
public function insert($project, Google_Firewall $postBody, $optParams = array()) {
|
659 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
660 |
+
$params = array_merge($params, $optParams);
|
661 |
+
$data = $this->__call('insert', array($params));
|
662 |
+
if ($this->useObjects()) {
|
663 |
+
return new Google_Operation($data);
|
664 |
+
} else {
|
665 |
+
return $data;
|
666 |
+
}
|
667 |
+
}
|
668 |
+
/**
|
669 |
+
* Returns the specified firewall resource. (firewalls.get)
|
670 |
+
*
|
671 |
+
* @param string $project Name of the project scoping this request.
|
672 |
+
* @param string $firewall Name of the firewall resource to return.
|
673 |
+
* @param array $optParams Optional parameters.
|
674 |
+
* @return Google_Firewall
|
675 |
+
*/
|
676 |
+
public function get($project, $firewall, $optParams = array()) {
|
677 |
+
$params = array('project' => $project, 'firewall' => $firewall);
|
678 |
+
$params = array_merge($params, $optParams);
|
679 |
+
$data = $this->__call('get', array($params));
|
680 |
+
if ($this->useObjects()) {
|
681 |
+
return new Google_Firewall($data);
|
682 |
+
} else {
|
683 |
+
return $data;
|
684 |
+
}
|
685 |
+
}
|
686 |
+
/**
|
687 |
+
* Retrieves the list of firewall resources available to the specified project. (firewalls.list)
|
688 |
+
*
|
689 |
+
* @param string $project Name of the project scoping this request.
|
690 |
+
* @param array $optParams Optional parameters.
|
691 |
+
*
|
692 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
693 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
694 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
695 |
+
* @return Google_FirewallList
|
696 |
+
*/
|
697 |
+
public function listFirewalls($project, $optParams = array()) {
|
698 |
+
$params = array('project' => $project);
|
699 |
+
$params = array_merge($params, $optParams);
|
700 |
+
$data = $this->__call('list', array($params));
|
701 |
+
if ($this->useObjects()) {
|
702 |
+
return new Google_FirewallList($data);
|
703 |
+
} else {
|
704 |
+
return $data;
|
705 |
+
}
|
706 |
+
}
|
707 |
+
/**
|
708 |
+
* Updates the specified firewall resource with the data included in the request. (firewalls.update)
|
709 |
+
*
|
710 |
+
* @param string $project Name of the project scoping this request.
|
711 |
+
* @param string $firewall Name of the firewall resource to update.
|
712 |
+
* @param Google_Firewall $postBody
|
713 |
+
* @param array $optParams Optional parameters.
|
714 |
+
* @return Google_Operation
|
715 |
+
*/
|
716 |
+
public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
|
717 |
+
$params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
|
718 |
+
$params = array_merge($params, $optParams);
|
719 |
+
$data = $this->__call('update', array($params));
|
720 |
+
if ($this->useObjects()) {
|
721 |
+
return new Google_Operation($data);
|
722 |
+
} else {
|
723 |
+
return $data;
|
724 |
+
}
|
725 |
+
}
|
726 |
+
/**
|
727 |
+
* Updates the specified firewall resource with the data included in the request. This method
|
728 |
+
* supports patch semantics. (firewalls.patch)
|
729 |
+
*
|
730 |
+
* @param string $project Name of the project scoping this request.
|
731 |
+
* @param string $firewall Name of the firewall resource to update.
|
732 |
+
* @param Google_Firewall $postBody
|
733 |
+
* @param array $optParams Optional parameters.
|
734 |
+
* @return Google_Operation
|
735 |
+
*/
|
736 |
+
public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
|
737 |
+
$params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
|
738 |
+
$params = array_merge($params, $optParams);
|
739 |
+
$data = $this->__call('patch', array($params));
|
740 |
+
if ($this->useObjects()) {
|
741 |
+
return new Google_Operation($data);
|
742 |
+
} else {
|
743 |
+
return $data;
|
744 |
+
}
|
745 |
+
}
|
746 |
+
/**
|
747 |
+
* Deletes the specified firewall resource. (firewalls.delete)
|
748 |
+
*
|
749 |
+
* @param string $project Name of the project scoping this request.
|
750 |
+
* @param string $firewall Name of the firewall resource to delete.
|
751 |
+
* @param array $optParams Optional parameters.
|
752 |
+
* @return Google_Operation
|
753 |
+
*/
|
754 |
+
public function delete($project, $firewall, $optParams = array()) {
|
755 |
+
$params = array('project' => $project, 'firewall' => $firewall);
|
756 |
+
$params = array_merge($params, $optParams);
|
757 |
+
$data = $this->__call('delete', array($params));
|
758 |
+
if ($this->useObjects()) {
|
759 |
+
return new Google_Operation($data);
|
760 |
+
} else {
|
761 |
+
return $data;
|
762 |
+
}
|
763 |
+
}
|
764 |
+
}
|
765 |
+
|
766 |
+
/**
|
767 |
+
* The "networks" collection of methods.
|
768 |
+
* Typical usage is:
|
769 |
+
* <code>
|
770 |
+
* $computeService = new Google_ComputeService(...);
|
771 |
+
* $networks = $computeService->networks;
|
772 |
+
* </code>
|
773 |
+
*/
|
774 |
+
class Google_NetworksServiceResource extends Google_ServiceResource {
|
775 |
+
|
776 |
+
|
777 |
+
/**
|
778 |
+
* Creates a network resource in the specified project using the data included in the request.
|
779 |
+
* (networks.insert)
|
780 |
+
*
|
781 |
+
* @param string $project Name of the project scoping this request.
|
782 |
+
* @param Google_Network $postBody
|
783 |
+
* @param array $optParams Optional parameters.
|
784 |
+
* @return Google_Operation
|
785 |
+
*/
|
786 |
+
public function insert($project, Google_Network $postBody, $optParams = array()) {
|
787 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
788 |
+
$params = array_merge($params, $optParams);
|
789 |
+
$data = $this->__call('insert', array($params));
|
790 |
+
if ($this->useObjects()) {
|
791 |
+
return new Google_Operation($data);
|
792 |
+
} else {
|
793 |
+
return $data;
|
794 |
+
}
|
795 |
+
}
|
796 |
+
/**
|
797 |
+
* Returns the specified network resource. (networks.get)
|
798 |
+
*
|
799 |
+
* @param string $project Name of the project scoping this request.
|
800 |
+
* @param string $network Name of the network resource to return.
|
801 |
+
* @param array $optParams Optional parameters.
|
802 |
+
* @return Google_Network
|
803 |
+
*/
|
804 |
+
public function get($project, $network, $optParams = array()) {
|
805 |
+
$params = array('project' => $project, 'network' => $network);
|
806 |
+
$params = array_merge($params, $optParams);
|
807 |
+
$data = $this->__call('get', array($params));
|
808 |
+
if ($this->useObjects()) {
|
809 |
+
return new Google_Network($data);
|
810 |
+
} else {
|
811 |
+
return $data;
|
812 |
+
}
|
813 |
+
}
|
814 |
+
/**
|
815 |
+
* Retrieves the list of network resources available to the specified project. (networks.list)
|
816 |
+
*
|
817 |
+
* @param string $project Name of the project scoping this request.
|
818 |
+
* @param array $optParams Optional parameters.
|
819 |
+
*
|
820 |
+
* @opt_param string filter Optional. Filter expression for filtering listed resources.
|
821 |
+
* @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
|
822 |
+
* @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
|
823 |
+
* @return Google_NetworkList
|
824 |
+
*/
|
825 |
+
public function listNetworks($project, $optParams = array()) {
|
826 |
+
$params = array('project' => $project);
|
827 |
+
$params = array_merge($params, $optParams);
|
828 |
+
$data = $this->__call('list', array($params));
|
829 |
+
if ($this->useObjects()) {
|
830 |
+
return new Google_NetworkList($data);
|
831 |
+
} else {
|
832 |
+
return $data;
|
833 |
+
}
|
834 |
+
}
|
835 |
+
/**
|
836 |
+
* Deletes the specified network resource. (networks.delete)
|
837 |
+
*
|
838 |
+
* @param string $project Name of the project scoping this request.
|
839 |
+
* @param string $network Name of the network resource to delete.
|
840 |
+
* @param array $optParams Optional parameters.
|
841 |
+
* @return Google_Operation
|
842 |
+
*/
|
843 |
+
public function delete($project, $network, $optParams = array()) {
|
844 |
+
$params = array('project' => $project, 'network' => $network);
|
845 |
+
$params = array_merge($params, $optParams);
|
846 |
+
$data = $this->__call('delete', array($params));
|
847 |
+
if ($this->useObjects()) {
|
848 |
+
return new Google_Operation($data);
|
849 |
+
} else {
|
850 |
+
return $data;
|
851 |
+
}
|
852 |
+
}
|
853 |
+
}
|
854 |
+
|
855 |
+
/**
|
856 |
+
* The "projects" collection of methods.
|
857 |
+
* Typical usage is:
|
858 |
+
* <code>
|
859 |
+
* $computeService = new Google_ComputeService(...);
|
860 |
+
* $projects = $computeService->projects;
|
861 |
+
* </code>
|
862 |
+
*/
|
863 |
+
class Google_ProjectsServiceResource extends Google_ServiceResource {
|
864 |
+
|
865 |
+
|
866 |
+
/**
|
867 |
+
* Sets metadata common to all instances within the specified project using the data included in the
|
868 |
+
* request. (projects.setCommonInstanceMetadata)
|
869 |
+
*
|
870 |
+
* @param string $project Name of the project scoping this request.
|
871 |
+
* @param Google_Metadata $postBody
|
872 |
+
* @param array $optParams Optional parameters.
|
873 |
+
*/
|
874 |
+
public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
|
875 |
+
$params = array('project' => $project, 'postBody' => $postBody);
|
876 |
+
$params = array_merge($params, $optParams);
|
877 |
+
$data = $this->__call('setCommonInstanceMetadata', array($params));
|
878 |
+
return $data;
|
879 |
+
}
|
880 |
+
/**
|
881 |
+
* Returns the specified project resource. (projects.get)
|
882 |
+
*
|
883 |
+
* @param string $project Name of the project resource to retrieve.
|
884 |
+
* @param array $optParams Optional parameters.
|
885 |
+
* @return Google_Project
|
886 |
+
*/
|
887 |
+
public function get($project, $optParams = array()) {
|
888 |
+
$params = array('project' => $project);
|
889 |
+
$params = array_merge($params, $optParams);
|
890 |
+
$data = $this->__call('get', array($params));
|
891 |
+
if ($this->useObjects()) {
|
892 |
+
return new Google_Project($data);
|
893 |
+
} else {
|
894 |
+
return $data;
|
895 |
+
}
|
896 |
+
}
|
897 |
+
}
|
898 |
+
|
899 |
+
/**
|
900 |
+
* Service definition for Google_Compute (v1beta12).
|
901 |
+
*
|
902 |
+
* <p>
|
903 |
+
* API for the Google Compute Engine service.
|
904 |
+
* </p>
|
905 |
+
*
|
906 |
+
* <p>
|
907 |
+
* For more information about this service, see the
|
908 |
+
* <a href="https://developers.google.com/compute/docs/reference/v1beta12" target="_blank">API Documentation</a>
|
909 |
+
* </p>
|
910 |
+
*
|
911 |
+
* @author Google, Inc.
|
912 |
+
*/
|
913 |
+
class Google_ComputeService extends Google_Service {
|
914 |
+
public $operations;
|
915 |
+
public $kernels;
|
916 |
+
public $disks;
|
917 |
+
public $snapshots;
|
918 |
+
public $zones;
|
919 |
+
public $instances;
|
920 |
+
public $machineTypes;
|
921 |
+
public $images;
|
922 |
+
public $firewalls;
|
923 |
+
public $networks;
|
924 |
+
public $projects;
|
925 |
+
/**
|
926 |
+
* Constructs the internal representation of the Compute service.
|
927 |
+
*
|
928 |
+
* @param Google_Client $client
|
929 |
+
*/
|
930 |
+
public function __construct(Google_Client $client) {
|
931 |
+
$this->servicePath = 'compute/v1beta12/projects/';
|
932 |
+
$this->version = 'v1beta12';
|
933 |
+
$this->serviceName = 'compute';
|
934 |
+
|
935 |
+
$client->addService($this->serviceName, $this->version);
|
936 |
+
$this->operations = new Google_OperationsServiceResource($this, $this->serviceName, 'operations', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "id": "compute.operations.get", "httpMethod": "GET", "path": "{project}/operations/{operation}", "response": {"$ref": "Operation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.operations.list", "httpMethod": "GET", "path": "{project}/operations", "response": {"$ref": "OperationList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "path": "{project}/operations/{operation}", "id": "compute.operations.delete", "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
937 |
+
$this->kernels = new Google_KernelsServiceResource($this, $this->serviceName, 'kernels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.kernels.list", "httpMethod": "GET", "path": "{project}/kernels", "response": {"$ref": "KernelList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "kernel": {"required": true, "type": "string", "location": "path"}}, "id": "compute.kernels.get", "httpMethod": "GET", "path": "{project}/kernels/{kernel}", "response": {"$ref": "Kernel"}}}}', true));
|
938 |
+
$this->disks = new Google_DisksServiceResource($this, $this->serviceName, 'disks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Disk"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/disks", "id": "compute.disks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.get", "httpMethod": "GET", "path": "{project}/disks/{disk}", "response": {"$ref": "Disk"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.disks.list", "httpMethod": "GET", "path": "{project}/disks", "response": {"$ref": "DiskList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.delete", "httpMethod": "DELETE", "path": "{project}/disks/{disk}", "response": {"$ref": "Operation"}}}}', true));
|
939 |
+
$this->snapshots = new Google_SnapshotsServiceResource($this, $this->serviceName, 'snapshots', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Snapshot"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/snapshots", "id": "compute.snapshots.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.get", "httpMethod": "GET", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Snapshot"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.snapshots.list", "httpMethod": "GET", "path": "{project}/snapshots", "response": {"$ref": "SnapshotList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.delete", "httpMethod": "DELETE", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Operation"}}}}', true));
|
940 |
+
$this->zones = new Google_ZonesServiceResource($this, $this->serviceName, 'zones', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.zones.list", "httpMethod": "GET", "path": "{project}/zones", "response": {"$ref": "ZoneList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "zone": {"required": true, "type": "string", "location": "path"}}, "id": "compute.zones.get", "httpMethod": "GET", "path": "{project}/zones/{zone}", "response": {"$ref": "Zone"}}}}', true));
|
941 |
+
$this->instances = new Google_InstancesServiceResource($this, $this->serviceName, 'instances', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Instance"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances", "id": "compute.instances.insert"}, "deleteAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "access_config": {"required": true, "type": "string", "location": "query"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "id": "compute.instances.deleteAccessConfig", "httpMethod": "POST", "path": "{project}/instances/{instance}/delete-access-config", "response": {"$ref": "Operation"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.get", "httpMethod": "GET", "path": "{project}/instances/{instance}", "response": {"$ref": "Instance"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.instances.list", "httpMethod": "GET", "path": "{project}/instances", "response": {"$ref": "InstanceList"}}, "addAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "AccessConfig"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances/{instance}/add-access-config", "id": "compute.instances.addAccessConfig"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.delete", "httpMethod": "DELETE", "path": "{project}/instances/{instance}", "response": {"$ref": "Operation"}}}}', true));
|
942 |
+
$this->machineTypes = new Google_MachineTypesServiceResource($this, $this->serviceName, 'machineTypes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.machineTypes.list", "httpMethod": "GET", "path": "{project}/machine-types", "response": {"$ref": "MachineTypeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "machineType": {"required": true, "type": "string", "location": "path"}}, "id": "compute.machineTypes.get", "httpMethod": "GET", "path": "{project}/machine-types/{machineType}", "response": {"$ref": "MachineType"}}}}', true));
|
943 |
+
$this->images = new Google_ImagesServiceResource($this, $this->serviceName, 'images', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.read_only"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Image"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/images", "id": "compute.images.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.get", "httpMethod": "GET", "path": "{project}/images/{image}", "response": {"$ref": "Image"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.images.list", "httpMethod": "GET", "path": "{project}/images", "response": {"$ref": "ImageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.delete", "httpMethod": "DELETE", "path": "{project}/images/{image}", "response": {"$ref": "Operation"}}}}', true));
|
944 |
+
$this->firewalls = new Google_FirewallsServiceResource($this, $this->serviceName, 'firewalls', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/firewalls", "id": "compute.firewalls.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.get", "httpMethod": "GET", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Firewall"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.firewalls.list", "httpMethod": "GET", "path": "{project}/firewalls", "response": {"$ref": "FirewallList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PUT", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PATCH", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.delete", "httpMethod": "DELETE", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Operation"}}}}', true));
|
945 |
+
$this->networks = new Google_NetworksServiceResource($this, $this->serviceName, 'networks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Network"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/networks", "id": "compute.networks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.get", "httpMethod": "GET", "path": "{project}/networks/{network}", "response": {"$ref": "Network"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.networks.list", "httpMethod": "GET", "path": "{project}/networks", "response": {"$ref": "NetworkList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.delete", "httpMethod": "DELETE", "path": "{project}/networks/{network}", "response": {"$ref": "Operation"}}}}', true));
|
946 |
+
$this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"setCommonInstanceMetadata": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Metadata"}, "httpMethod": "POST", "path": "{project}/set-common-instance-metadata", "id": "compute.projects.setCommonInstanceMetadata"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.projects.get", "httpMethod": "GET", "path": "{project}", "response": {"$ref": "Project"}}}}', true));
|
947 |
+
|
948 |
+
}
|
949 |
+
}
|
950 |
+
|
951 |
+
class Google_AccessConfig extends Google_Model {
|
952 |
+
public $kind;
|
953 |
+
public $type;
|
954 |
+
public $name;
|
955 |
+
public $natIP;
|
956 |
+
public function setKind($kind) {
|
957 |
+
$this->kind = $kind;
|
958 |
+
}
|
959 |
+
public function getKind() {
|
960 |
+
return $this->kind;
|
961 |
+
}
|
962 |
+
public function setType($type) {
|
963 |
+
$this->type = $type;
|
964 |
+
}
|
965 |
+
public function getType() {
|
966 |
+
return $this->type;
|
967 |
+
}
|
968 |
+
public function setName($name) {
|
969 |
+
$this->name = $name;
|
970 |
+
}
|
971 |
+
public function getName() {
|
972 |
+
return $this->name;
|
973 |
+
}
|
974 |
+
public function setNatIP($natIP) {
|
975 |
+
$this->natIP = $natIP;
|
976 |
+
}
|
977 |
+
public function getNatIP() {
|
978 |
+
return $this->natIP;
|
979 |
+
}
|
980 |
+
}
|
981 |
+
|
982 |
+
class Google_AttachedDisk extends Google_Model {
|
983 |
+
public $deviceName;
|
984 |
+
public $kind;
|
985 |
+
public $index;
|
986 |
+
public $source;
|
987 |
+
public $mode;
|
988 |
+
public $deleteOnTerminate;
|
989 |
+
public $type;
|
990 |
+
public function setDeviceName($deviceName) {
|
991 |
+
$this->deviceName = $deviceName;
|
992 |
+
}
|
993 |
+
public function getDeviceName() {
|
994 |
+
return $this->deviceName;
|
995 |
+
}
|
996 |
+
public function setKind($kind) {
|
997 |
+
$this->kind = $kind;
|
998 |
+
}
|
999 |
+
public function getKind() {
|
1000 |
+
return $this->kind;
|
1001 |
+
}
|
1002 |
+
public function setIndex($index) {
|
1003 |
+
$this->index = $index;
|
1004 |
+
}
|
1005 |
+
public function getIndex() {
|
1006 |
+
return $this->index;
|
1007 |
+
}
|
1008 |
+
public function setSource($source) {
|
1009 |
+
$this->source = $source;
|
1010 |
+
}
|
1011 |
+
public function getSource() {
|
1012 |
+
return $this->source;
|
1013 |
+
}
|
1014 |
+
public function setMode($mode) {
|
1015 |
+
$this->mode = $mode;
|
1016 |
+
}
|
1017 |
+
public function getMode() {
|
1018 |
+
return $this->mode;
|
1019 |
+
}
|
1020 |
+
public function setDeleteOnTerminate($deleteOnTerminate) {
|
1021 |
+
$this->deleteOnTerminate = $deleteOnTerminate;
|
1022 |
+
}
|
1023 |
+
public function getDeleteOnTerminate() {
|
1024 |
+
return $this->deleteOnTerminate;
|
1025 |
+
}
|
1026 |
+
public function setType($type) {
|
1027 |
+
$this->type = $type;
|
1028 |
+
}
|
1029 |
+
public function getType() {
|
1030 |
+
return $this->type;
|
1031 |
+
}
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
class Google_Disk extends Google_Model {
|
1035 |
+
public $status;
|
1036 |
+
public $sourceSnapshot;
|
1037 |
+
public $kind;
|
1038 |
+
public $description;
|
1039 |
+
public $sizeGb;
|
1040 |
+
public $id;
|
1041 |
+
public $sourceSnapshotId;
|
1042 |
+
public $zone;
|
1043 |
+
public $creationTimestamp;
|
1044 |
+
public $options;
|
1045 |
+
public $selfLink;
|
1046 |
+
public $name;
|
1047 |
+
public function setStatus($status) {
|
1048 |
+
$this->status = $status;
|
1049 |
+
}
|
1050 |
+
public function getStatus() {
|
1051 |
+
return $this->status;
|
1052 |
+
}
|
1053 |
+
public function setSourceSnapshot($sourceSnapshot) {
|
1054 |
+
$this->sourceSnapshot = $sourceSnapshot;
|
1055 |
+
}
|
1056 |
+
public function getSourceSnapshot() {
|
1057 |
+
return $this->sourceSnapshot;
|
1058 |
+
}
|
1059 |
+
public function setKind($kind) {
|
1060 |
+
$this->kind = $kind;
|
1061 |
+
}
|
1062 |
+
public function getKind() {
|
1063 |
+
return $this->kind;
|
1064 |
+
}
|
1065 |
+
public function setDescription($description) {
|
1066 |
+
$this->description = $description;
|
1067 |
+
}
|
1068 |
+
public function getDescription() {
|
1069 |
+
return $this->description;
|
1070 |
+
}
|
1071 |
+
public function setSizeGb($sizeGb) {
|
1072 |
+
$this->sizeGb = $sizeGb;
|
1073 |
+
}
|
1074 |
+
public function getSizeGb() {
|
1075 |
+
return $this->sizeGb;
|
1076 |
+
}
|
1077 |
+
public function setId($id) {
|
1078 |
+
$this->id = $id;
|
1079 |
+
}
|
1080 |
+
public function getId() {
|
1081 |
+
return $this->id;
|
1082 |
+
}
|
1083 |
+
public function setSourceSnapshotId($sourceSnapshotId) {
|
1084 |
+
$this->sourceSnapshotId = $sourceSnapshotId;
|
1085 |
+
}
|
1086 |
+
public function getSourceSnapshotId() {
|
1087 |
+
return $this->sourceSnapshotId;
|
1088 |
+
}
|
1089 |
+
public function setZone($zone) {
|
1090 |
+
$this->zone = $zone;
|
1091 |
+
}
|
1092 |
+
public function getZone() {
|
1093 |
+
return $this->zone;
|
1094 |
+
}
|
1095 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1096 |
+
$this->creationTimestamp = $creationTimestamp;
|
1097 |
+
}
|
1098 |
+
public function getCreationTimestamp() {
|
1099 |
+
return $this->creationTimestamp;
|
1100 |
+
}
|
1101 |
+
public function setOptions($options) {
|
1102 |
+
$this->options = $options;
|
1103 |
+
}
|
1104 |
+
public function getOptions() {
|
1105 |
+
return $this->options;
|
1106 |
+
}
|
1107 |
+
public function setSelfLink($selfLink) {
|
1108 |
+
$this->selfLink = $selfLink;
|
1109 |
+
}
|
1110 |
+
public function getSelfLink() {
|
1111 |
+
return $this->selfLink;
|
1112 |
+
}
|
1113 |
+
public function setName($name) {
|
1114 |
+
$this->name = $name;
|
1115 |
+
}
|
1116 |
+
public function getName() {
|
1117 |
+
return $this->name;
|
1118 |
+
}
|
1119 |
+
}
|
1120 |
+
|
1121 |
+
class Google_DiskList extends Google_Model {
|
1122 |
+
public $nextPageToken;
|
1123 |
+
protected $__itemsType = 'Google_Disk';
|
1124 |
+
protected $__itemsDataType = 'array';
|
1125 |
+
public $items;
|
1126 |
+
public $kind;
|
1127 |
+
public $id;
|
1128 |
+
public $selfLink;
|
1129 |
+
public function setNextPageToken($nextPageToken) {
|
1130 |
+
$this->nextPageToken = $nextPageToken;
|
1131 |
+
}
|
1132 |
+
public function getNextPageToken() {
|
1133 |
+
return $this->nextPageToken;
|
1134 |
+
}
|
1135 |
+
public function setItems($items) {
|
1136 |
+
$this->assertIsArray($items, 'Google_Disk', __METHOD__);
|
1137 |
+
$this->items = $items;
|
1138 |
+
}
|
1139 |
+
public function getItems() {
|
1140 |
+
return $this->items;
|
1141 |
+
}
|
1142 |
+
public function setKind($kind) {
|
1143 |
+
$this->kind = $kind;
|
1144 |
+
}
|
1145 |
+
public function getKind() {
|
1146 |
+
return $this->kind;
|
1147 |
+
}
|
1148 |
+
public function setId($id) {
|
1149 |
+
$this->id = $id;
|
1150 |
+
}
|
1151 |
+
public function getId() {
|
1152 |
+
return $this->id;
|
1153 |
+
}
|
1154 |
+
public function setSelfLink($selfLink) {
|
1155 |
+
$this->selfLink = $selfLink;
|
1156 |
+
}
|
1157 |
+
public function getSelfLink() {
|
1158 |
+
return $this->selfLink;
|
1159 |
+
}
|
1160 |
+
}
|
1161 |
+
|
1162 |
+
class Google_Firewall extends Google_Model {
|
1163 |
+
public $kind;
|
1164 |
+
public $description;
|
1165 |
+
public $sourceTags;
|
1166 |
+
public $sourceRanges;
|
1167 |
+
public $network;
|
1168 |
+
public $targetTags;
|
1169 |
+
protected $__allowedType = 'Google_FirewallAllowed';
|
1170 |
+
protected $__allowedDataType = 'array';
|
1171 |
+
public $allowed;
|
1172 |
+
public $creationTimestamp;
|
1173 |
+
public $id;
|
1174 |
+
public $selfLink;
|
1175 |
+
public $name;
|
1176 |
+
public function setKind($kind) {
|
1177 |
+
$this->kind = $kind;
|
1178 |
+
}
|
1179 |
+
public function getKind() {
|
1180 |
+
return $this->kind;
|
1181 |
+
}
|
1182 |
+
public function setDescription($description) {
|
1183 |
+
$this->description = $description;
|
1184 |
+
}
|
1185 |
+
public function getDescription() {
|
1186 |
+
return $this->description;
|
1187 |
+
}
|
1188 |
+
public function setSourceTags($sourceTags) {
|
1189 |
+
$this->sourceTags = $sourceTags;
|
1190 |
+
}
|
1191 |
+
public function getSourceTags() {
|
1192 |
+
return $this->sourceTags;
|
1193 |
+
}
|
1194 |
+
public function setSourceRanges($sourceRanges) {
|
1195 |
+
$this->sourceRanges = $sourceRanges;
|
1196 |
+
}
|
1197 |
+
public function getSourceRanges() {
|
1198 |
+
return $this->sourceRanges;
|
1199 |
+
}
|
1200 |
+
public function setNetwork($network) {
|
1201 |
+
$this->network = $network;
|
1202 |
+
}
|
1203 |
+
public function getNetwork() {
|
1204 |
+
return $this->network;
|
1205 |
+
}
|
1206 |
+
public function setTargetTags($targetTags) {
|
1207 |
+
$this->targetTags = $targetTags;
|
1208 |
+
}
|
1209 |
+
public function getTargetTags() {
|
1210 |
+
return $this->targetTags;
|
1211 |
+
}
|
1212 |
+
public function setAllowed($allowed) {
|
1213 |
+
$this->assertIsArray($allowed, 'Google_FirewallAllowed', __METHOD__);
|
1214 |
+
$this->allowed = $allowed;
|
1215 |
+
}
|
1216 |
+
public function getAllowed() {
|
1217 |
+
return $this->allowed;
|
1218 |
+
}
|
1219 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1220 |
+
$this->creationTimestamp = $creationTimestamp;
|
1221 |
+
}
|
1222 |
+
public function getCreationTimestamp() {
|
1223 |
+
return $this->creationTimestamp;
|
1224 |
+
}
|
1225 |
+
public function setId($id) {
|
1226 |
+
$this->id = $id;
|
1227 |
+
}
|
1228 |
+
public function getId() {
|
1229 |
+
return $this->id;
|
1230 |
+
}
|
1231 |
+
public function setSelfLink($selfLink) {
|
1232 |
+
$this->selfLink = $selfLink;
|
1233 |
+
}
|
1234 |
+
public function getSelfLink() {
|
1235 |
+
return $this->selfLink;
|
1236 |
+
}
|
1237 |
+
public function setName($name) {
|
1238 |
+
$this->name = $name;
|
1239 |
+
}
|
1240 |
+
public function getName() {
|
1241 |
+
return $this->name;
|
1242 |
+
}
|
1243 |
+
}
|
1244 |
+
|
1245 |
+
class Google_FirewallAllowed extends Google_Model {
|
1246 |
+
public $IPProtocol;
|
1247 |
+
public $ports;
|
1248 |
+
public function setIPProtocol($IPProtocol) {
|
1249 |
+
$this->IPProtocol = $IPProtocol;
|
1250 |
+
}
|
1251 |
+
public function getIPProtocol() {
|
1252 |
+
return $this->IPProtocol;
|
1253 |
+
}
|
1254 |
+
public function setPorts($ports) {
|
1255 |
+
$this->ports = $ports;
|
1256 |
+
}
|
1257 |
+
public function getPorts() {
|
1258 |
+
return $this->ports;
|
1259 |
+
}
|
1260 |
+
}
|
1261 |
+
|
1262 |
+
class Google_FirewallList extends Google_Model {
|
1263 |
+
public $nextPageToken;
|
1264 |
+
protected $__itemsType = 'Google_Firewall';
|
1265 |
+
protected $__itemsDataType = 'array';
|
1266 |
+
public $items;
|
1267 |
+
public $kind;
|
1268 |
+
public $id;
|
1269 |
+
public $selfLink;
|
1270 |
+
public function setNextPageToken($nextPageToken) {
|
1271 |
+
$this->nextPageToken = $nextPageToken;
|
1272 |
+
}
|
1273 |
+
public function getNextPageToken() {
|
1274 |
+
return $this->nextPageToken;
|
1275 |
+
}
|
1276 |
+
public function setItems($items) {
|
1277 |
+
$this->assertIsArray($items, 'Google_Firewall', __METHOD__);
|
1278 |
+
$this->items = $items;
|
1279 |
+
}
|
1280 |
+
public function getItems() {
|
1281 |
+
return $this->items;
|
1282 |
+
}
|
1283 |
+
public function setKind($kind) {
|
1284 |
+
$this->kind = $kind;
|
1285 |
+
}
|
1286 |
+
public function getKind() {
|
1287 |
+
return $this->kind;
|
1288 |
+
}
|
1289 |
+
public function setId($id) {
|
1290 |
+
$this->id = $id;
|
1291 |
+
}
|
1292 |
+
public function getId() {
|
1293 |
+
return $this->id;
|
1294 |
+
}
|
1295 |
+
public function setSelfLink($selfLink) {
|
1296 |
+
$this->selfLink = $selfLink;
|
1297 |
+
}
|
1298 |
+
public function getSelfLink() {
|
1299 |
+
return $this->selfLink;
|
1300 |
+
}
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
class Google_Image extends Google_Model {
|
1304 |
+
public $kind;
|
1305 |
+
public $description;
|
1306 |
+
protected $__rawDiskType = 'Google_ImageRawDisk';
|
1307 |
+
protected $__rawDiskDataType = '';
|
1308 |
+
public $rawDisk;
|
1309 |
+
public $preferredKernel;
|
1310 |
+
protected $__diskSnapshotType = 'Google_ImageDiskSnapshot';
|
1311 |
+
protected $__diskSnapshotDataType = '';
|
1312 |
+
public $diskSnapshot;
|
1313 |
+
public $sourceType;
|
1314 |
+
public $creationTimestamp;
|
1315 |
+
public $id;
|
1316 |
+
public $selfLink;
|
1317 |
+
public $name;
|
1318 |
+
public function setKind($kind) {
|
1319 |
+
$this->kind = $kind;
|
1320 |
+
}
|
1321 |
+
public function getKind() {
|
1322 |
+
return $this->kind;
|
1323 |
+
}
|
1324 |
+
public function setDescription($description) {
|
1325 |
+
$this->description = $description;
|
1326 |
+
}
|
1327 |
+
public function getDescription() {
|
1328 |
+
return $this->description;
|
1329 |
+
}
|
1330 |
+
public function setRawDisk(Google_ImageRawDisk $rawDisk) {
|
1331 |
+
$this->rawDisk = $rawDisk;
|
1332 |
+
}
|
1333 |
+
public function getRawDisk() {
|
1334 |
+
return $this->rawDisk;
|
1335 |
+
}
|
1336 |
+
public function setPreferredKernel($preferredKernel) {
|
1337 |
+
$this->preferredKernel = $preferredKernel;
|
1338 |
+
}
|
1339 |
+
public function getPreferredKernel() {
|
1340 |
+
return $this->preferredKernel;
|
1341 |
+
}
|
1342 |
+
public function setDiskSnapshot(Google_ImageDiskSnapshot $diskSnapshot) {
|
1343 |
+
$this->diskSnapshot = $diskSnapshot;
|
1344 |
+
}
|
1345 |
+
public function getDiskSnapshot() {
|
1346 |
+
return $this->diskSnapshot;
|
1347 |
+
}
|
1348 |
+
public function setSourceType($sourceType) {
|
1349 |
+
$this->sourceType = $sourceType;
|
1350 |
+
}
|
1351 |
+
public function getSourceType() {
|
1352 |
+
return $this->sourceType;
|
1353 |
+
}
|
1354 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1355 |
+
$this->creationTimestamp = $creationTimestamp;
|
1356 |
+
}
|
1357 |
+
public function getCreationTimestamp() {
|
1358 |
+
return $this->creationTimestamp;
|
1359 |
+
}
|
1360 |
+
public function setId($id) {
|
1361 |
+
$this->id = $id;
|
1362 |
+
}
|
1363 |
+
public function getId() {
|
1364 |
+
return $this->id;
|
1365 |
+
}
|
1366 |
+
public function setSelfLink($selfLink) {
|
1367 |
+
$this->selfLink = $selfLink;
|
1368 |
+
}
|
1369 |
+
public function getSelfLink() {
|
1370 |
+
return $this->selfLink;
|
1371 |
+
}
|
1372 |
+
public function setName($name) {
|
1373 |
+
$this->name = $name;
|
1374 |
+
}
|
1375 |
+
public function getName() {
|
1376 |
+
return $this->name;
|
1377 |
+
}
|
1378 |
+
}
|
1379 |
+
|
1380 |
+
class Google_ImageDiskSnapshot extends Google_Model {
|
1381 |
+
public $source;
|
1382 |
+
public function setSource($source) {
|
1383 |
+
$this->source = $source;
|
1384 |
+
}
|
1385 |
+
public function getSource() {
|
1386 |
+
return $this->source;
|
1387 |
+
}
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
class Google_ImageList extends Google_Model {
|
1391 |
+
public $nextPageToken;
|
1392 |
+
protected $__itemsType = 'Google_Image';
|
1393 |
+
protected $__itemsDataType = 'array';
|
1394 |
+
public $items;
|
1395 |
+
public $kind;
|
1396 |
+
public $id;
|
1397 |
+
public $selfLink;
|
1398 |
+
public function setNextPageToken($nextPageToken) {
|
1399 |
+
$this->nextPageToken = $nextPageToken;
|
1400 |
+
}
|
1401 |
+
public function getNextPageToken() {
|
1402 |
+
return $this->nextPageToken;
|
1403 |
+
}
|
1404 |
+
public function setItems($items) {
|
1405 |
+
$this->assertIsArray($items, 'Google_Image', __METHOD__);
|
1406 |
+
$this->items = $items;
|
1407 |
+
}
|
1408 |
+
public function getItems() {
|
1409 |
+
return $this->items;
|
1410 |
+
}
|
1411 |
+
public function setKind($kind) {
|
1412 |
+
$this->kind = $kind;
|
1413 |
+
}
|
1414 |
+
public function getKind() {
|
1415 |
+
return $this->kind;
|
1416 |
+
}
|
1417 |
+
public function setId($id) {
|
1418 |
+
$this->id = $id;
|
1419 |
+
}
|
1420 |
+
public function getId() {
|
1421 |
+
return $this->id;
|
1422 |
+
}
|
1423 |
+
public function setSelfLink($selfLink) {
|
1424 |
+
$this->selfLink = $selfLink;
|
1425 |
+
}
|
1426 |
+
public function getSelfLink() {
|
1427 |
+
return $this->selfLink;
|
1428 |
+
}
|
1429 |
+
}
|
1430 |
+
|
1431 |
+
class Google_ImageRawDisk extends Google_Model {
|
1432 |
+
public $containerType;
|
1433 |
+
public $source;
|
1434 |
+
public $sha1Checksum;
|
1435 |
+
public function setContainerType($containerType) {
|
1436 |
+
$this->containerType = $containerType;
|
1437 |
+
}
|
1438 |
+
public function getContainerType() {
|
1439 |
+
return $this->containerType;
|
1440 |
+
}
|
1441 |
+
public function setSource($source) {
|
1442 |
+
$this->source = $source;
|
1443 |
+
}
|
1444 |
+
public function getSource() {
|
1445 |
+
return $this->source;
|
1446 |
+
}
|
1447 |
+
public function setSha1Checksum($sha1Checksum) {
|
1448 |
+
$this->sha1Checksum = $sha1Checksum;
|
1449 |
+
}
|
1450 |
+
public function getSha1Checksum() {
|
1451 |
+
return $this->sha1Checksum;
|
1452 |
+
}
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
class Google_Instance extends Google_Model {
|
1456 |
+
public $status;
|
1457 |
+
public $kind;
|
1458 |
+
public $machineType;
|
1459 |
+
public $description;
|
1460 |
+
public $zone;
|
1461 |
+
public $tags;
|
1462 |
+
public $image;
|
1463 |
+
protected $__disksType = 'Google_AttachedDisk';
|
1464 |
+
protected $__disksDataType = 'array';
|
1465 |
+
public $disks;
|
1466 |
+
public $name;
|
1467 |
+
public $statusMessage;
|
1468 |
+
protected $__serviceAccountsType = 'Google_ServiceAccount';
|
1469 |
+
protected $__serviceAccountsDataType = 'array';
|
1470 |
+
public $serviceAccounts;
|
1471 |
+
protected $__networkInterfacesType = 'Google_NetworkInterface';
|
1472 |
+
protected $__networkInterfacesDataType = 'array';
|
1473 |
+
public $networkInterfaces;
|
1474 |
+
public $creationTimestamp;
|
1475 |
+
public $id;
|
1476 |
+
public $selfLink;
|
1477 |
+
protected $__metadataType = 'Google_Metadata';
|
1478 |
+
protected $__metadataDataType = '';
|
1479 |
+
public $metadata;
|
1480 |
+
public function setStatus($status) {
|
1481 |
+
$this->status = $status;
|
1482 |
+
}
|
1483 |
+
public function getStatus() {
|
1484 |
+
return $this->status;
|
1485 |
+
}
|
1486 |
+
public function setKind($kind) {
|
1487 |
+
$this->kind = $kind;
|
1488 |
+
}
|
1489 |
+
public function getKind() {
|
1490 |
+
return $this->kind;
|
1491 |
+
}
|
1492 |
+
public function setMachineType($machineType) {
|
1493 |
+
$this->machineType = $machineType;
|
1494 |
+
}
|
1495 |
+
public function getMachineType() {
|
1496 |
+
return $this->machineType;
|
1497 |
+
}
|
1498 |
+
public function setDescription($description) {
|
1499 |
+
$this->description = $description;
|
1500 |
+
}
|
1501 |
+
public function getDescription() {
|
1502 |
+
return $this->description;
|
1503 |
+
}
|
1504 |
+
public function setZone($zone) {
|
1505 |
+
$this->zone = $zone;
|
1506 |
+
}
|
1507 |
+
public function getZone() {
|
1508 |
+
return $this->zone;
|
1509 |
+
}
|
1510 |
+
public function setTags($tags) {
|
1511 |
+
$this->tags = $tags;
|
1512 |
+
}
|
1513 |
+
public function getTags() {
|
1514 |
+
return $this->tags;
|
1515 |
+
}
|
1516 |
+
public function setImage($image) {
|
1517 |
+
$this->image = $image;
|
1518 |
+
}
|
1519 |
+
public function getImage() {
|
1520 |
+
return $this->image;
|
1521 |
+
}
|
1522 |
+
public function setDisks($disks) {
|
1523 |
+
$this->assertIsArray($disks, 'Google_AttachedDisk', __METHOD__);
|
1524 |
+
$this->disks = $disks;
|
1525 |
+
}
|
1526 |
+
public function getDisks() {
|
1527 |
+
return $this->disks;
|
1528 |
+
}
|
1529 |
+
public function setName($name) {
|
1530 |
+
$this->name = $name;
|
1531 |
+
}
|
1532 |
+
public function getName() {
|
1533 |
+
return $this->name;
|
1534 |
+
}
|
1535 |
+
public function setStatusMessage($statusMessage) {
|
1536 |
+
$this->statusMessage = $statusMessage;
|
1537 |
+
}
|
1538 |
+
public function getStatusMessage() {
|
1539 |
+
return $this->statusMessage;
|
1540 |
+
}
|
1541 |
+
public function setServiceAccounts($serviceAccounts) {
|
1542 |
+
$this->assertIsArray($serviceAccounts, 'Google_ServiceAccount', __METHOD__);
|
1543 |
+
$this->serviceAccounts = $serviceAccounts;
|
1544 |
+
}
|
1545 |
+
public function getServiceAccounts() {
|
1546 |
+
return $this->serviceAccounts;
|
1547 |
+
}
|
1548 |
+
public function setNetworkInterfaces($networkInterfaces) {
|
1549 |
+
$this->assertIsArray($networkInterfaces, 'Google_NetworkInterface', __METHOD__);
|
1550 |
+
$this->networkInterfaces = $networkInterfaces;
|
1551 |
+
}
|
1552 |
+
public function getNetworkInterfaces() {
|
1553 |
+
return $this->networkInterfaces;
|
1554 |
+
}
|
1555 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1556 |
+
$this->creationTimestamp = $creationTimestamp;
|
1557 |
+
}
|
1558 |
+
public function getCreationTimestamp() {
|
1559 |
+
return $this->creationTimestamp;
|
1560 |
+
}
|
1561 |
+
public function setId($id) {
|
1562 |
+
$this->id = $id;
|
1563 |
+
}
|
1564 |
+
public function getId() {
|
1565 |
+
return $this->id;
|
1566 |
+
}
|
1567 |
+
public function setSelfLink($selfLink) {
|
1568 |
+
$this->selfLink = $selfLink;
|
1569 |
+
}
|
1570 |
+
public function getSelfLink() {
|
1571 |
+
return $this->selfLink;
|
1572 |
+
}
|
1573 |
+
public function setMetadata(Google_Metadata $metadata) {
|
1574 |
+
$this->metadata = $metadata;
|
1575 |
+
}
|
1576 |
+
public function getMetadata() {
|
1577 |
+
return $this->metadata;
|
1578 |
+
}
|
1579 |
+
}
|
1580 |
+
|
1581 |
+
class Google_InstanceList extends Google_Model {
|
1582 |
+
public $nextPageToken;
|
1583 |
+
protected $__itemsType = 'Google_Instance';
|
1584 |
+
protected $__itemsDataType = 'array';
|
1585 |
+
public $items;
|
1586 |
+
public $kind;
|
1587 |
+
public $id;
|
1588 |
+
public $selfLink;
|
1589 |
+
public function setNextPageToken($nextPageToken) {
|
1590 |
+
$this->nextPageToken = $nextPageToken;
|
1591 |
+
}
|
1592 |
+
public function getNextPageToken() {
|
1593 |
+
return $this->nextPageToken;
|
1594 |
+
}
|
1595 |
+
public function setItems($items) {
|
1596 |
+
$this->assertIsArray($items, 'Google_Instance', __METHOD__);
|
1597 |
+
$this->items = $items;
|
1598 |
+
}
|
1599 |
+
public function getItems() {
|
1600 |
+
return $this->items;
|
1601 |
+
}
|
1602 |
+
public function setKind($kind) {
|
1603 |
+
$this->kind = $kind;
|
1604 |
+
}
|
1605 |
+
public function getKind() {
|
1606 |
+
return $this->kind;
|
1607 |
+
}
|
1608 |
+
public function setId($id) {
|
1609 |
+
$this->id = $id;
|
1610 |
+
}
|
1611 |
+
public function getId() {
|
1612 |
+
return $this->id;
|
1613 |
+
}
|
1614 |
+
public function setSelfLink($selfLink) {
|
1615 |
+
$this->selfLink = $selfLink;
|
1616 |
+
}
|
1617 |
+
public function getSelfLink() {
|
1618 |
+
return $this->selfLink;
|
1619 |
+
}
|
1620 |
+
}
|
1621 |
+
|
1622 |
+
class Google_Kernel extends Google_Model {
|
1623 |
+
public $kind;
|
1624 |
+
public $description;
|
1625 |
+
public $creationTimestamp;
|
1626 |
+
public $id;
|
1627 |
+
public $selfLink;
|
1628 |
+
public $name;
|
1629 |
+
public function setKind($kind) {
|
1630 |
+
$this->kind = $kind;
|
1631 |
+
}
|
1632 |
+
public function getKind() {
|
1633 |
+
return $this->kind;
|
1634 |
+
}
|
1635 |
+
public function setDescription($description) {
|
1636 |
+
$this->description = $description;
|
1637 |
+
}
|
1638 |
+
public function getDescription() {
|
1639 |
+
return $this->description;
|
1640 |
+
}
|
1641 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1642 |
+
$this->creationTimestamp = $creationTimestamp;
|
1643 |
+
}
|
1644 |
+
public function getCreationTimestamp() {
|
1645 |
+
return $this->creationTimestamp;
|
1646 |
+
}
|
1647 |
+
public function setId($id) {
|
1648 |
+
$this->id = $id;
|
1649 |
+
}
|
1650 |
+
public function getId() {
|
1651 |
+
return $this->id;
|
1652 |
+
}
|
1653 |
+
public function setSelfLink($selfLink) {
|
1654 |
+
$this->selfLink = $selfLink;
|
1655 |
+
}
|
1656 |
+
public function getSelfLink() {
|
1657 |
+
return $this->selfLink;
|
1658 |
+
}
|
1659 |
+
public function setName($name) {
|
1660 |
+
$this->name = $name;
|
1661 |
+
}
|
1662 |
+
public function getName() {
|
1663 |
+
return $this->name;
|
1664 |
+
}
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
class Google_KernelList extends Google_Model {
|
1668 |
+
public $nextPageToken;
|
1669 |
+
protected $__itemsType = 'Google_Kernel';
|
1670 |
+
protected $__itemsDataType = 'array';
|
1671 |
+
public $items;
|
1672 |
+
public $kind;
|
1673 |
+
public $id;
|
1674 |
+
public $selfLink;
|
1675 |
+
public function setNextPageToken($nextPageToken) {
|
1676 |
+
$this->nextPageToken = $nextPageToken;
|
1677 |
+
}
|
1678 |
+
public function getNextPageToken() {
|
1679 |
+
return $this->nextPageToken;
|
1680 |
+
}
|
1681 |
+
public function setItems($items) {
|
1682 |
+
$this->assertIsArray($items, 'Google_Kernel', __METHOD__);
|
1683 |
+
$this->items = $items;
|
1684 |
+
}
|
1685 |
+
public function getItems() {
|
1686 |
+
return $this->items;
|
1687 |
+
}
|
1688 |
+
public function setKind($kind) {
|
1689 |
+
$this->kind = $kind;
|
1690 |
+
}
|
1691 |
+
public function getKind() {
|
1692 |
+
return $this->kind;
|
1693 |
+
}
|
1694 |
+
public function setId($id) {
|
1695 |
+
$this->id = $id;
|
1696 |
+
}
|
1697 |
+
public function getId() {
|
1698 |
+
return $this->id;
|
1699 |
+
}
|
1700 |
+
public function setSelfLink($selfLink) {
|
1701 |
+
$this->selfLink = $selfLink;
|
1702 |
+
}
|
1703 |
+
public function getSelfLink() {
|
1704 |
+
return $this->selfLink;
|
1705 |
+
}
|
1706 |
+
}
|
1707 |
+
|
1708 |
+
class Google_MachineType extends Google_Model {
|
1709 |
+
public $guestCpus;
|
1710 |
+
public $imageSpaceGb;
|
1711 |
+
public $kind;
|
1712 |
+
protected $__ephemeralDisksType = 'Google_MachineTypeEphemeralDisks';
|
1713 |
+
protected $__ephemeralDisksDataType = 'array';
|
1714 |
+
public $ephemeralDisks;
|
1715 |
+
public $maximumPersistentDisksSizeGb;
|
1716 |
+
public $description;
|
1717 |
+
public $maximumPersistentDisks;
|
1718 |
+
public $name;
|
1719 |
+
public $memoryMb;
|
1720 |
+
public $availableZone;
|
1721 |
+
public $creationTimestamp;
|
1722 |
+
public $id;
|
1723 |
+
public $selfLink;
|
1724 |
+
public $hostCpus;
|
1725 |
+
public function setGuestCpus($guestCpus) {
|
1726 |
+
$this->guestCpus = $guestCpus;
|
1727 |
+
}
|
1728 |
+
public function getGuestCpus() {
|
1729 |
+
return $this->guestCpus;
|
1730 |
+
}
|
1731 |
+
public function setImageSpaceGb($imageSpaceGb) {
|
1732 |
+
$this->imageSpaceGb = $imageSpaceGb;
|
1733 |
+
}
|
1734 |
+
public function getImageSpaceGb() {
|
1735 |
+
return $this->imageSpaceGb;
|
1736 |
+
}
|
1737 |
+
public function setKind($kind) {
|
1738 |
+
$this->kind = $kind;
|
1739 |
+
}
|
1740 |
+
public function getKind() {
|
1741 |
+
return $this->kind;
|
1742 |
+
}
|
1743 |
+
public function setEphemeralDisks($ephemeralDisks) {
|
1744 |
+
$this->assertIsArray($ephemeralDisks, 'Google_MachineTypeEphemeralDisks', __METHOD__);
|
1745 |
+
$this->ephemeralDisks = $ephemeralDisks;
|
1746 |
+
}
|
1747 |
+
public function getEphemeralDisks() {
|
1748 |
+
return $this->ephemeralDisks;
|
1749 |
+
}
|
1750 |
+
public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) {
|
1751 |
+
$this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb;
|
1752 |
+
}
|
1753 |
+
public function getMaximumPersistentDisksSizeGb() {
|
1754 |
+
return $this->maximumPersistentDisksSizeGb;
|
1755 |
+
}
|
1756 |
+
public function setDescription($description) {
|
1757 |
+
$this->description = $description;
|
1758 |
+
}
|
1759 |
+
public function getDescription() {
|
1760 |
+
return $this->description;
|
1761 |
+
}
|
1762 |
+
public function setMaximumPersistentDisks($maximumPersistentDisks) {
|
1763 |
+
$this->maximumPersistentDisks = $maximumPersistentDisks;
|
1764 |
+
}
|
1765 |
+
public function getMaximumPersistentDisks() {
|
1766 |
+
return $this->maximumPersistentDisks;
|
1767 |
+
}
|
1768 |
+
public function setName($name) {
|
1769 |
+
$this->name = $name;
|
1770 |
+
}
|
1771 |
+
public function getName() {
|
1772 |
+
return $this->name;
|
1773 |
+
}
|
1774 |
+
public function setMemoryMb($memoryMb) {
|
1775 |
+
$this->memoryMb = $memoryMb;
|
1776 |
+
}
|
1777 |
+
public function getMemoryMb() {
|
1778 |
+
return $this->memoryMb;
|
1779 |
+
}
|
1780 |
+
public function setAvailableZone($availableZone) {
|
1781 |
+
$this->availableZone = $availableZone;
|
1782 |
+
}
|
1783 |
+
public function getAvailableZone() {
|
1784 |
+
return $this->availableZone;
|
1785 |
+
}
|
1786 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1787 |
+
$this->creationTimestamp = $creationTimestamp;
|
1788 |
+
}
|
1789 |
+
public function getCreationTimestamp() {
|
1790 |
+
return $this->creationTimestamp;
|
1791 |
+
}
|
1792 |
+
public function setId($id) {
|
1793 |
+
$this->id = $id;
|
1794 |
+
}
|
1795 |
+
public function getId() {
|
1796 |
+
return $this->id;
|
1797 |
+
}
|
1798 |
+
public function setSelfLink($selfLink) {
|
1799 |
+
$this->selfLink = $selfLink;
|
1800 |
+
}
|
1801 |
+
public function getSelfLink() {
|
1802 |
+
return $this->selfLink;
|
1803 |
+
}
|
1804 |
+
public function setHostCpus($hostCpus) {
|
1805 |
+
$this->hostCpus = $hostCpus;
|
1806 |
+
}
|
1807 |
+
public function getHostCpus() {
|
1808 |
+
return $this->hostCpus;
|
1809 |
+
}
|
1810 |
+
}
|
1811 |
+
|
1812 |
+
class Google_MachineTypeEphemeralDisks extends Google_Model {
|
1813 |
+
public $diskGb;
|
1814 |
+
public function setDiskGb($diskGb) {
|
1815 |
+
$this->diskGb = $diskGb;
|
1816 |
+
}
|
1817 |
+
public function getDiskGb() {
|
1818 |
+
return $this->diskGb;
|
1819 |
+
}
|
1820 |
+
}
|
1821 |
+
|
1822 |
+
class Google_MachineTypeList extends Google_Model {
|
1823 |
+
public $nextPageToken;
|
1824 |
+
protected $__itemsType = 'Google_MachineType';
|
1825 |
+
protected $__itemsDataType = 'array';
|
1826 |
+
public $items;
|
1827 |
+
public $kind;
|
1828 |
+
public $id;
|
1829 |
+
public $selfLink;
|
1830 |
+
public function setNextPageToken($nextPageToken) {
|
1831 |
+
$this->nextPageToken = $nextPageToken;
|
1832 |
+
}
|
1833 |
+
public function getNextPageToken() {
|
1834 |
+
return $this->nextPageToken;
|
1835 |
+
}
|
1836 |
+
public function setItems($items) {
|
1837 |
+
$this->assertIsArray($items, 'Google_MachineType', __METHOD__);
|
1838 |
+
$this->items = $items;
|
1839 |
+
}
|
1840 |
+
public function getItems() {
|
1841 |
+
return $this->items;
|
1842 |
+
}
|
1843 |
+
public function setKind($kind) {
|
1844 |
+
$this->kind = $kind;
|
1845 |
+
}
|
1846 |
+
public function getKind() {
|
1847 |
+
return $this->kind;
|
1848 |
+
}
|
1849 |
+
public function setId($id) {
|
1850 |
+
$this->id = $id;
|
1851 |
+
}
|
1852 |
+
public function getId() {
|
1853 |
+
return $this->id;
|
1854 |
+
}
|
1855 |
+
public function setSelfLink($selfLink) {
|
1856 |
+
$this->selfLink = $selfLink;
|
1857 |
+
}
|
1858 |
+
public function getSelfLink() {
|
1859 |
+
return $this->selfLink;
|
1860 |
+
}
|
1861 |
+
}
|
1862 |
+
|
1863 |
+
class Google_Metadata extends Google_Model {
|
1864 |
+
protected $__itemsType = 'Google_MetadataItems';
|
1865 |
+
protected $__itemsDataType = 'array';
|
1866 |
+
public $items;
|
1867 |
+
public $kind;
|
1868 |
+
public function setItems($items) {
|
1869 |
+
$this->assertIsArray($items, 'Google_MetadataItems', __METHOD__);
|
1870 |
+
$this->items = $items;
|
1871 |
+
}
|
1872 |
+
public function getItems() {
|
1873 |
+
return $this->items;
|
1874 |
+
}
|
1875 |
+
public function setKind($kind) {
|
1876 |
+
$this->kind = $kind;
|
1877 |
+
}
|
1878 |
+
public function getKind() {
|
1879 |
+
return $this->kind;
|
1880 |
+
}
|
1881 |
+
}
|
1882 |
+
|
1883 |
+
class Google_MetadataItems extends Google_Model {
|
1884 |
+
public $value;
|
1885 |
+
public $key;
|
1886 |
+
public function setValue($value) {
|
1887 |
+
$this->value = $value;
|
1888 |
+
}
|
1889 |
+
public function getValue() {
|
1890 |
+
return $this->value;
|
1891 |
+
}
|
1892 |
+
public function setKey($key) {
|
1893 |
+
$this->key = $key;
|
1894 |
+
}
|
1895 |
+
public function getKey() {
|
1896 |
+
return $this->key;
|
1897 |
+
}
|
1898 |
+
}
|
1899 |
+
|
1900 |
+
class Google_Network extends Google_Model {
|
1901 |
+
public $kind;
|
1902 |
+
public $description;
|
1903 |
+
public $IPv4Range;
|
1904 |
+
public $gatewayIPv4;
|
1905 |
+
public $creationTimestamp;
|
1906 |
+
public $id;
|
1907 |
+
public $selfLink;
|
1908 |
+
public $name;
|
1909 |
+
public function setKind($kind) {
|
1910 |
+
$this->kind = $kind;
|
1911 |
+
}
|
1912 |
+
public function getKind() {
|
1913 |
+
return $this->kind;
|
1914 |
+
}
|
1915 |
+
public function setDescription($description) {
|
1916 |
+
$this->description = $description;
|
1917 |
+
}
|
1918 |
+
public function getDescription() {
|
1919 |
+
return $this->description;
|
1920 |
+
}
|
1921 |
+
public function setIPv4Range($IPv4Range) {
|
1922 |
+
$this->IPv4Range = $IPv4Range;
|
1923 |
+
}
|
1924 |
+
public function getIPv4Range() {
|
1925 |
+
return $this->IPv4Range;
|
1926 |
+
}
|
1927 |
+
public function setGatewayIPv4($gatewayIPv4) {
|
1928 |
+
$this->gatewayIPv4 = $gatewayIPv4;
|
1929 |
+
}
|
1930 |
+
public function getGatewayIPv4() {
|
1931 |
+
return $this->gatewayIPv4;
|
1932 |
+
}
|
1933 |
+
public function setCreationTimestamp($creationTimestamp) {
|
1934 |
+
$this->creationTimestamp = $creationTimestamp;
|
1935 |
+
}
|
1936 |
+
public function getCreationTimestamp() {
|
1937 |
+
return $this->creationTimestamp;
|
1938 |
+
}
|
1939 |
+
public function setId($id) {
|
1940 |
+
$this->id = $id;
|
1941 |
+
}
|
1942 |
+
public function getId() {
|
1943 |
+
return $this->id;
|
1944 |
+
}
|
1945 |
+
public function setSelfLink($selfLink) {
|
1946 |
+
$this->selfLink = $selfLink;
|
1947 |
+
}
|
1948 |
+
public function getSelfLink() {
|
1949 |
+
return $this->selfLink;
|
1950 |
+
}
|
1951 |
+
public function setName($name) {
|
1952 |
+
$this->name = $name;
|
1953 |
+
}
|
1954 |
+
public function getName() {
|
1955 |
+
return $this->name;
|
1956 |
+
}
|
1957 |
+
}
|
1958 |
+
|
1959 |
+
class Google_NetworkInterface extends Google_Model {
|
1960 |
+
public $network;
|
1961 |
+
protected $__accessConfigsType = 'Google_AccessConfig';
|
1962 |
+
protected $__accessConfigsDataType = 'array';
|
1963 |
+
public $accessConfigs;
|
1964 |
+
public $networkIP;
|
1965 |
+
public $kind;
|
1966 |
+
public $name;
|
1967 |
+
public function setNetwork($network) {
|
1968 |
+
$this->network = $network;
|
1969 |
+
}
|
1970 |
+
public function getNetwork() {
|
1971 |
+
return $this->network;
|
1972 |
+
}
|
1973 |
+
public function setAccessConfigs($accessConfigs) {
|
1974 |
+
$this->assertIsArray($accessConfigs, 'Google_AccessConfig', __METHOD__);
|
1975 |
+
$this->accessConfigs = $accessConfigs;
|
1976 |
+
}
|
1977 |
+
public function getAccessConfigs() {
|
1978 |
+
return $this->accessConfigs;
|
1979 |
+
}
|
1980 |
+
public function setNetworkIP($networkIP) {
|
1981 |
+
$this->networkIP = $networkIP;
|
1982 |
+
}
|
1983 |
+
public function getNetworkIP() {
|
1984 |
+
return $this->networkIP;
|
1985 |
+
}
|
1986 |
+
public function setKind($kind) {
|
1987 |
+
$this->kind = $kind;
|
1988 |
+
}
|
1989 |
+
public function getKind() {
|
1990 |
+
return $this->kind;
|
1991 |
+
}
|
1992 |
+
public function setName($name) {
|
1993 |
+
$this->name = $name;
|
1994 |
+
}
|
1995 |
+
public function getName() {
|
1996 |
+
return $this->name;
|
1997 |
+
}
|
1998 |
+
}
|
1999 |
+
|
2000 |
+
class Google_NetworkList extends Google_Model {
|
2001 |
+
public $nextPageToken;
|
2002 |
+
protected $__itemsType = 'Google_Network';
|
2003 |
+
protected $__itemsDataType = 'array';
|
2004 |
+
public $items;
|
2005 |
+
public $kind;
|
2006 |
+
public $id;
|
2007 |
+
public $selfLink;
|
2008 |
+
public function setNextPageToken($nextPageToken) {
|
2009 |
+
$this->nextPageToken = $nextPageToken;
|
2010 |
+
}
|
2011 |
+
public function getNextPageToken() {
|
2012 |
+
return $this->nextPageToken;
|
2013 |
+
}
|
2014 |
+
public function setItems($items) {
|
2015 |
+
$this->assertIsArray($items, 'Google_Network', __METHOD__);
|
2016 |
+
$this->items = $items;
|
2017 |
+
}
|
2018 |
+
public function getItems() {
|
2019 |
+
return $this->items;
|
2020 |
+
}
|
2021 |
+
public function setKind($kind) {
|
2022 |
+
$this->kind = $kind;
|
2023 |
+
}
|
2024 |
+
public function getKind() {
|
2025 |
+
return $this->kind;
|
2026 |
+
}
|
2027 |
+
public function setId($id) {
|
2028 |
+
$this->id = $id;
|
2029 |
+
}
|
2030 |
+
public function getId() {
|
2031 |
+
return $this->id;
|
2032 |
+
}
|
2033 |
+
public function setSelfLink($selfLink) {
|
2034 |
+
$this->selfLink = $selfLink;
|
2035 |
+
}
|
2036 |
+
public function getSelfLink() {
|
2037 |
+
return $this->selfLink;
|
2038 |
+
}
|
2039 |
+
}
|
2040 |
+
|
2041 |
+
class Google_Operation extends Google_Model {
|
2042 |
+
public $status;
|
2043 |
+
public $kind;
|
2044 |
+
public $name;
|
2045 |
+
public $startTime;
|
2046 |
+
public $httpErrorStatusCode;
|
2047 |
+
public $user;
|
2048 |
+
protected $__errorType = 'Google_OperationError';
|
2049 |
+
protected $__errorDataType = '';
|
2050 |
+
public $error;
|
2051 |
+
public $targetId;
|
2052 |
+
public $operationType;
|
2053 |
+
public $statusMessage;
|
2054 |
+
public $insertTime;
|
2055 |
+
public $httpErrorMessage;
|
2056 |
+
public $progress;
|
2057 |
+
public $clientOperationId;
|
2058 |
+
public $endTime;
|
2059 |
+
public $creationTimestamp;
|
2060 |
+
public $id;
|
2061 |
+
public $selfLink;
|
2062 |
+
public $targetLink;
|
2063 |
+
public function setStatus($status) {
|
2064 |
+
$this->status = $status;
|
2065 |
+
}
|
2066 |
+
public function getStatus() {
|
2067 |
+
return $this->status;
|
2068 |
+
}
|
2069 |
+
public function setKind($kind) {
|
2070 |
+
$this->kind = $kind;
|
2071 |
+
}
|
2072 |
+
public function getKind() {
|
2073 |
+
return $this->kind;
|
2074 |
+
}
|
2075 |
+
public function setName($name) {
|
2076 |
+
$this->name = $name;
|
2077 |
+
}
|
2078 |
+
public function getName() {
|
2079 |
+
return $this->name;
|
2080 |
+
}
|
2081 |
+
public function setStartTime($startTime) {
|
2082 |
+
$this->startTime = $startTime;
|
2083 |
+
}
|
2084 |
+
public function getStartTime() {
|
2085 |
+
return $this->startTime;
|
2086 |
+
}
|
2087 |
+
public function setHttpErrorStatusCode($httpErrorStatusCode) {
|
2088 |
+
$this->httpErrorStatusCode = $httpErrorStatusCode;
|
2089 |
+
}
|
2090 |
+
public function getHttpErrorStatusCode() {
|
2091 |
+
return $this->httpErrorStatusCode;
|
2092 |
+
}
|
2093 |
+
public function setUser($user) {
|
2094 |
+
$this->user = $user;
|
2095 |
+
}
|
2096 |
+
public function getUser() {
|
2097 |
+
return $this->user;
|
2098 |
+
}
|
2099 |
+
public function setError(Google_OperationError $error) {
|
2100 |
+
$this->error = $error;
|
2101 |
+
}
|
2102 |
+
public function getError() {
|
2103 |
+
return $this->error;
|
2104 |
+
}
|
2105 |
+
public function setTargetId($targetId) {
|
2106 |
+
$this->targetId = $targetId;
|
2107 |
+
}
|
2108 |
+
public function getTargetId() {
|
2109 |
+
return $this->targetId;
|
2110 |
+
}
|
2111 |
+
public function setOperationType($operationType) {
|
2112 |
+
$this->operationType = $operationType;
|
2113 |
+
}
|
2114 |
+
public function getOperationType() {
|
2115 |
+
return $this->operationType;
|
2116 |
+
}
|
2117 |
+
public function setStatusMessage($statusMessage) {
|
2118 |
+
$this->statusMessage = $statusMessage;
|
2119 |
+
}
|
2120 |
+
public function getStatusMessage() {
|
2121 |
+
return $this->statusMessage;
|
2122 |
+
}
|
2123 |
+
public function setInsertTime($insertTime) {
|
2124 |
+
$this->insertTime = $insertTime;
|
2125 |
+
}
|
2126 |
+
public function getInsertTime() {
|
2127 |
+
return $this->insertTime;
|
2128 |
+
}
|
2129 |
+
public function setHttpErrorMessage($httpErrorMessage) {
|
2130 |
+
$this->httpErrorMessage = $httpErrorMessage;
|
2131 |
+
}
|
2132 |
+
public function getHttpErrorMessage() {
|
2133 |
+
return $this->httpErrorMessage;
|
2134 |
+
}
|
2135 |
+
public function setProgress($progress) {
|
2136 |
+
$this->progress = $progress;
|
2137 |
+
}
|
2138 |
+
public function getProgress() {
|
2139 |
+
return $this->progress;
|
2140 |
+
}
|
2141 |
+
public function setClientOperationId($clientOperationId) {
|
2142 |
+
$this->clientOperationId = $clientOperationId;
|
2143 |
+
}
|
2144 |
+
public function getClientOperationId() {
|
2145 |
+
return $this->clientOperationId;
|
2146 |
+
}
|
2147 |
+
public function setEndTime($endTime) {
|
2148 |
+
$this->endTime = $endTime;
|
2149 |
+
}
|
2150 |
+
public function getEndTime() {
|
2151 |
+
return $this->endTime;
|
2152 |
+
}
|
2153 |
+
public function setCreationTimestamp($creationTimestamp) {
|
2154 |
+
$this->creationTimestamp = $creationTimestamp;
|
2155 |
+
}
|
2156 |
+
public function getCreationTimestamp() {
|
2157 |
+
return $this->creationTimestamp;
|
2158 |
+
}
|
2159 |
+
public function setId($id) {
|
2160 |
+
$this->id = $id;
|
2161 |
+
}
|
2162 |
+
public function getId() {
|
2163 |
+
return $this->id;
|
2164 |
+
}
|
2165 |
+
public function setSelfLink($selfLink) {
|
2166 |
+
$this->selfLink = $selfLink;
|
2167 |
+
}
|
2168 |
+
public function getSelfLink() {
|
2169 |
+
return $this->selfLink;
|
2170 |
+
}
|
2171 |
+
public function setTargetLink($targetLink) {
|
2172 |
+
$this->targetLink = $targetLink;
|
2173 |
+
}
|
2174 |
+
public function getTargetLink() {
|
2175 |
+
return $this->targetLink;
|
2176 |
+
}
|
2177 |
+
}
|
2178 |
+
|
2179 |
+
class Google_OperationError extends Google_Model {
|
2180 |
+
protected $__errorsType = 'Google_OperationErrorErrors';
|
2181 |
+
protected $__errorsDataType = 'array';
|
2182 |
+
public $errors;
|
2183 |
+
public function setErrors($errors) {
|
2184 |
+
$this->assertIsArray($errors, 'Google_OperationErrorErrors', __METHOD__);
|
2185 |
+
$this->errors = $errors;
|
2186 |
+
}
|
2187 |
+
public function getErrors() {
|
2188 |
+
return $this->errors;
|
2189 |
+
}
|
2190 |
+
}
|
2191 |
+
|
2192 |
+
class Google_OperationErrorErrors extends Google_Model {
|
2193 |
+
public $message;
|
2194 |
+
public $code;
|
2195 |
+
public $location;
|
2196 |
+
public function setMessage($message) {
|
2197 |
+
$this->message = $message;
|
2198 |
+
}
|
2199 |
+
public function getMessage() {
|
2200 |
+
return $this->message;
|
2201 |
+
}
|
2202 |
+
public function setCode($code) {
|
2203 |
+
$this->code = $code;
|
2204 |
+
}
|
2205 |
+
public function getCode() {
|
2206 |
+
return $this->code;
|
2207 |
+
}
|
2208 |
+
public function setLocation($location) {
|
2209 |
+
$this->location = $location;
|
2210 |
+
}
|
2211 |
+
public function getLocation() {
|
2212 |
+
return $this->location;
|
2213 |
+
}
|
2214 |
+
}
|
2215 |
+
|
2216 |
+
class Google_OperationList extends Google_Model {
|
2217 |
+
public $nextPageToken;
|
2218 |
+
protected $__itemsType = 'Google_Operation';
|
2219 |
+
protected $__itemsDataType = 'array';
|
2220 |
+
public $items;
|
2221 |
+
public $kind;
|
2222 |
+
public $id;
|
2223 |
+
public $selfLink;
|
2224 |
+
public function setNextPageToken($nextPageToken) {
|
2225 |
+
$this->nextPageToken = $nextPageToken;
|
2226 |
+
}
|
2227 |
+
public function getNextPageToken() {
|
2228 |
+
return $this->nextPageToken;
|
2229 |
+
}
|
2230 |
+
public function setItems($items) {
|
2231 |
+
$this->assertIsArray($items, 'Google_Operation', __METHOD__);
|
2232 |
+
$this->items = $items;
|
2233 |
+
}
|
2234 |
+
public function getItems() {
|
2235 |
+
return $this->items;
|
2236 |
+
}
|
2237 |
+
public function setKind($kind) {
|
2238 |
+
$this->kind = $kind;
|
2239 |
+
}
|
2240 |
+
public function getKind() {
|
2241 |
+
return $this->kind;
|
2242 |
+
}
|
2243 |
+
public function setId($id) {
|
2244 |
+
$this->id = $id;
|
2245 |
+
}
|
2246 |
+
public function getId() {
|
2247 |
+
return $this->id;
|
2248 |
+
}
|
2249 |
+
public function setSelfLink($selfLink) {
|
2250 |
+
$this->selfLink = $selfLink;
|
2251 |
+
}
|
2252 |
+
public function getSelfLink() {
|
2253 |
+
return $this->selfLink;
|
2254 |
+
}
|
2255 |
+
}
|
2256 |
+
|
2257 |
+
class Google_Project extends Google_Model {
|
2258 |
+
public $kind;
|
2259 |
+
public $description;
|
2260 |
+
protected $__commonInstanceMetadataType = 'Google_Metadata';
|
2261 |
+
protected $__commonInstanceMetadataDataType = '';
|
2262 |
+
public $commonInstanceMetadata;
|
2263 |
+
public $externalIpAddresses;
|
2264 |
+
protected $__quotasType = 'Google_ProjectQuotas';
|
2265 |
+
protected $__quotasDataType = 'array';
|
2266 |
+
public $quotas;
|
2267 |
+
public $creationTimestamp;
|
2268 |
+
public $id;
|
2269 |
+
public $selfLink;
|
2270 |
+
public $name;
|
2271 |
+
public function setKind($kind) {
|
2272 |
+
$this->kind = $kind;
|
2273 |
+
}
|
2274 |
+
public function getKind() {
|
2275 |
+
return $this->kind;
|
2276 |
+
}
|
2277 |
+
public function setDescription($description) {
|
2278 |
+
$this->description = $description;
|
2279 |
+
}
|
2280 |
+
public function getDescription() {
|
2281 |
+
return $this->description;
|
2282 |
+
}
|
2283 |
+
public function setCommonInstanceMetadata(Google_Metadata $commonInstanceMetadata) {
|
2284 |
+
$this->commonInstanceMetadata = $commonInstanceMetadata;
|
2285 |
+
}
|
2286 |
+
public function getCommonInstanceMetadata() {
|
2287 |
+
return $this->commonInstanceMetadata;
|
2288 |
+
}
|
2289 |
+
public function setExternalIpAddresses($externalIpAddresses) {
|
2290 |
+
$this->externalIpAddresses = $externalIpAddresses;
|
2291 |
+
}
|
2292 |
+
public function getExternalIpAddresses() {
|
2293 |
+
return $this->externalIpAddresses;
|
2294 |
+
}
|
2295 |
+
public function setQuotas($quotas) {
|
2296 |
+
$this->assertIsArray($quotas, 'Google_ProjectQuotas', __METHOD__);
|
2297 |
+
$this->quotas = $quotas;
|
2298 |
+
}
|
2299 |
+
public function getQuotas() {
|
2300 |
+
return $this->quotas;
|
2301 |
+
}
|
2302 |
+
public function setCreationTimestamp($creationTimestamp) {
|
2303 |
+
$this->creationTimestamp = $creationTimestamp;
|
2304 |
+
}
|
2305 |
+
public function getCreationTimestamp() {
|
2306 |
+
return $this->creationTimestamp;
|
2307 |
+
}
|
2308 |
+
public function setId($id) {
|
2309 |
+
$this->id = $id;
|
2310 |
+
}
|
2311 |
+
public function getId() {
|
2312 |
+
return $this->id;
|
2313 |
+
}
|
2314 |
+
public function setSelfLink($selfLink) {
|
2315 |
+
$this->selfLink = $selfLink;
|
2316 |
+
}
|
2317 |
+
public function getSelfLink() {
|
2318 |
+
return $this->selfLink;
|
2319 |
+
}
|
2320 |
+
public function setName($name) {
|
2321 |
+
$this->name = $name;
|
2322 |
+
}
|
2323 |
+
public function getName() {
|
2324 |
+
return $this->name;
|
2325 |
+
}
|
2326 |
+
}
|
2327 |
+
|
2328 |
+
class Google_ProjectQuotas extends Google_Model {
|
2329 |
+
public $usage;
|
2330 |
+
public $metric;
|
2331 |
+
public $limit;
|
2332 |
+
public function setUsage($usage) {
|
2333 |
+
$this->usage = $usage;
|
2334 |
+
}
|
2335 |
+
public function getUsage() {
|
2336 |
+
return $this->usage;
|
2337 |
+
}
|
2338 |
+
public function setMetric($metric) {
|
2339 |
+
$this->metric = $metric;
|
2340 |
+
}
|
2341 |
+
public function getMetric() {
|
2342 |
+
return $this->metric;
|
2343 |
+
}
|
2344 |
+
public function setLimit($limit) {
|
2345 |
+
$this->limit = $limit;
|
2346 |
+
}
|
2347 |
+
public function getLimit() {
|
2348 |
+
return $this->limit;
|
2349 |
+
}
|
2350 |
+
}
|
2351 |
+
|
2352 |
+
class Google_ServiceAccount extends Google_Model {
|
2353 |
+
public $scopes;
|
2354 |
+
public $kind;
|
2355 |
+
public $email;
|
2356 |
+
public function setScopes($scopes) {
|
2357 |
+
$this->scopes = $scopes;
|
2358 |
+
}
|
2359 |
+
public function getScopes() {
|
2360 |
+
return $this->scopes;
|
2361 |
+
}
|
2362 |
+
public function setKind($kind) {
|
2363 |
+
$this->kind = $kind;
|
2364 |
+
}
|
2365 |
+
public function getKind() {
|
2366 |
+
return $this->kind;
|
2367 |
+
}
|
2368 |
+
public function setEmail($email) {
|
2369 |
+
$this->email = $email;
|
2370 |
+
}
|
2371 |
+
public function getEmail() {
|
2372 |
+
return $this->email;
|
2373 |
+
}
|
2374 |
+
}
|
2375 |
+
|
2376 |
+
class Google_Snapshot extends Google_Model {
|
2377 |
+
public $status;
|
2378 |
+
public $kind;
|
2379 |
+
public $description;
|
2380 |
+
public $sourceDisk;
|
2381 |
+
public $sourceDiskId;
|
2382 |
+
public $diskSizeGb;
|
2383 |
+
public $creationTimestamp;
|
2384 |
+
public $id;
|
2385 |
+
public $selfLink;
|
2386 |
+
public $name;
|
2387 |
+
public function setStatus($status) {
|
2388 |
+
$this->status = $status;
|
2389 |
+
}
|
2390 |
+
public function getStatus() {
|
2391 |
+
return $this->status;
|
2392 |
+
}
|
2393 |
+
public function setKind($kind) {
|
2394 |
+
$this->kind = $kind;
|
2395 |
+
}
|
2396 |
+
public function getKind() {
|
2397 |
+
return $this->kind;
|
2398 |
+
}
|
2399 |
+
public function setDescription($description) {
|
2400 |
+
$this->description = $description;
|
2401 |
+
}
|
2402 |
+
public function getDescription() {
|
2403 |
+
return $this->description;
|
2404 |
+
}
|
2405 |
+
public function setSourceDisk($sourceDisk) {
|
2406 |
+
$this->sourceDisk = $sourceDisk;
|
2407 |
+
}
|
2408 |
+
public function getSourceDisk() {
|
2409 |
+
return $this->sourceDisk;
|
2410 |
+
}
|
2411 |
+
public function setSourceDiskId($sourceDiskId) {
|
2412 |
+
$this->sourceDiskId = $sourceDiskId;
|
2413 |
+
}
|
2414 |
+
public function getSourceDiskId() {
|
2415 |
+
return $this->sourceDiskId;
|
2416 |
+
}
|
2417 |
+
public function setDiskSizeGb($diskSizeGb) {
|
2418 |
+
$this->diskSizeGb = $diskSizeGb;
|
2419 |
+
}
|
2420 |
+
public function getDiskSizeGb() {
|
2421 |
+
return $this->diskSizeGb;
|
2422 |
+
}
|
2423 |
+
public function setCreationTimestamp($creationTimestamp) {
|
2424 |
+
$this->creationTimestamp = $creationTimestamp;
|
2425 |
+
}
|
2426 |
+
public function getCreationTimestamp() {
|
2427 |
+
return $this->creationTimestamp;
|
2428 |
+
}
|
2429 |
+
public function setId($id) {
|
2430 |
+
$this->id = $id;
|
2431 |
+
}
|
2432 |
+
public function getId() {
|
2433 |
+
return $this->id;
|
2434 |
+
}
|
2435 |
+
public function setSelfLink($selfLink) {
|
2436 |
+
$this->selfLink = $selfLink;
|
2437 |
+
}
|
2438 |
+
public function getSelfLink() {
|
2439 |
+
return $this->selfLink;
|
2440 |
+
}
|
2441 |
+
public function setName($name) {
|
2442 |
+
$this->name = $name;
|
2443 |
+
}
|
2444 |
+
public function getName() {
|
2445 |
+
return $this->name;
|
2446 |
+
}
|
2447 |
+
}
|
2448 |
+
|
2449 |
+
class Google_SnapshotList extends Google_Model {
|
2450 |
+
public $nextPageToken;
|
2451 |
+
protected $__itemsType = 'Google_Snapshot';
|
2452 |
+
protected $__itemsDataType = 'array';
|
2453 |
+
public $items;
|
2454 |
+
public $kind;
|
2455 |
+
public $id;
|
2456 |
+
public $selfLink;
|
2457 |
+
public function setNextPageToken($nextPageToken) {
|
2458 |
+
$this->nextPageToken = $nextPageToken;
|
2459 |
+
}
|
2460 |
+
public function getNextPageToken() {
|
2461 |
+
return $this->nextPageToken;
|
2462 |
+
}
|
2463 |
+
public function setItems($items) {
|
2464 |
+
$this->assertIsArray($items, 'Google_Snapshot', __METHOD__);
|
2465 |
+
$this->items = $items;
|
2466 |
+
}
|
2467 |
+
public function getItems() {
|
2468 |
+
return $this->items;
|
2469 |
+
}
|
2470 |
+
public function setKind($kind) {
|
2471 |
+
$this->kind = $kind;
|
2472 |
+
}
|
2473 |
+
public function getKind() {
|
2474 |
+
return $this->kind;
|
2475 |
+
}
|
2476 |
+
public function setId($id) {
|
2477 |
+
$this->id = $id;
|
2478 |
+
}
|
2479 |
+
public function getId() {
|
2480 |
+
return $this->id;
|
2481 |
+
}
|
2482 |
+
public function setSelfLink($selfLink) {
|
2483 |
+
$this->selfLink = $selfLink;
|
2484 |
+
}
|
2485 |
+
public function getSelfLink() {
|
2486 |
+
return $this->selfLink;
|
2487 |
+
}
|
2488 |
+
}
|
2489 |
+
|
2490 |
+
class Google_Zone extends Google_Model {
|
2491 |
+
public $status;
|
2492 |
+
public $kind;
|
2493 |
+
public $availableMachineType;
|
2494 |
+
public $description;
|
2495 |
+
protected $__maintenanceWindowsType = 'Google_ZoneMaintenanceWindows';
|
2496 |
+
protected $__maintenanceWindowsDataType = 'array';
|
2497 |
+
public $maintenanceWindows;
|
2498 |
+
public $creationTimestamp;
|
2499 |
+
public $id;
|
2500 |
+
public $selfLink;
|
2501 |
+
public $name;
|
2502 |
+
public function setStatus($status) {
|
2503 |
+
$this->status = $status;
|
2504 |
+
}
|
2505 |
+
public function getStatus() {
|
2506 |
+
return $this->status;
|
2507 |
+
}
|
2508 |
+
public function setKind($kind) {
|
2509 |
+
$this->kind = $kind;
|
2510 |
+
}
|
2511 |
+
public function getKind() {
|
2512 |
+
return $this->kind;
|
2513 |
+
}
|
2514 |
+
public function setAvailableMachineType($availableMachineType) {
|
2515 |
+
$this->availableMachineType = $availableMachineType;
|
2516 |
+
}
|
2517 |
+
public function getAvailableMachineType() {
|
2518 |
+
return $this->availableMachineType;
|
2519 |
+
}
|
2520 |
+
public function setDescription($description) {
|
2521 |
+
$this->description = $description;
|
2522 |
+
}
|
2523 |
+
public function getDescription() {
|
2524 |
+
return $this->description;
|
2525 |
+
}
|
2526 |
+
public function setMaintenanceWindows($maintenanceWindows) {
|
2527 |
+
$this->assertIsArray($maintenanceWindows, 'Google_ZoneMaintenanceWindows', __METHOD__);
|
2528 |
+
$this->maintenanceWindows = $maintenanceWindows;
|
2529 |
+
}
|
2530 |
+
public function getMaintenanceWindows() {
|
2531 |
+
return $this->maintenanceWindows;
|
2532 |
+
}
|
2533 |
+
public function setCreationTimestamp($creationTimestamp) {
|
2534 |
+
$this->creationTimestamp = $creationTimestamp;
|
2535 |
+
}
|
2536 |
+
public function getCreationTimestamp() {
|
2537 |
+
return $this->creationTimestamp;
|
2538 |
+
}
|
2539 |
+
public function setId($id) {
|
2540 |
+
$this->id = $id;
|
2541 |
+
}
|
2542 |
+
public function getId() {
|
2543 |
+
return $this->id;
|
2544 |
+
}
|
2545 |
+
public function setSelfLink($selfLink) {
|
2546 |
+
$this->selfLink = $selfLink;
|
2547 |
+
}
|
2548 |
+
public function getSelfLink() {
|
2549 |
+
return $this->selfLink;
|
2550 |
+
}
|
2551 |
+
public function setName($name) {
|
2552 |
+
$this->name = $name;
|
2553 |
+
}
|
2554 |
+
public function getName() {
|
2555 |
+
return $this->name;
|
2556 |
+
}
|
2557 |
+
}
|
2558 |
+
|
2559 |
+
class Google_ZoneList extends Google_Model {
|
2560 |
+
public $nextPageToken;
|
2561 |
+
protected $__itemsType = 'Google_Zone';
|
2562 |
+
protected $__itemsDataType = 'array';
|
2563 |
+
public $items;
|
2564 |
+
public $kind;
|
2565 |
+
public $id;
|
2566 |
+
public $selfLink;
|
2567 |
+
public function setNextPageToken($nextPageToken) {
|
2568 |
+
$this->nextPageToken = $nextPageToken;
|
2569 |
+
}
|
2570 |
+
public function getNextPageToken() {
|
2571 |
+
return $this->nextPageToken;
|
2572 |
+
}
|
2573 |
+
public function setItems($items) {
|
2574 |
+
$this->assertIsArray($items, 'Google_Zone', __METHOD__);
|
2575 |
+
$this->items = $items;
|
2576 |
+
}
|
2577 |
+
public function getItems() {
|
2578 |
+
return $this->items;
|
2579 |
+
}
|
2580 |
+
public function setKind($kind) {
|
2581 |
+
$this->kind = $kind;
|
2582 |
+
}
|
2583 |
+
public function getKind() {
|
2584 |
+
return $this->kind;
|
2585 |
+
}
|
2586 |
+
public function setId($id) {
|
2587 |
+
$this->id = $id;
|
2588 |
+
}
|
2589 |
+
public function getId() {
|
2590 |
+
return $this->id;
|
2591 |
+
}
|
2592 |
+
public function setSelfLink($selfLink) {
|
2593 |
+
$this->selfLink = $selfLink;
|
2594 |
+
}
|
2595 |
+
public function getSelfLink() {
|
2596 |
+
return $this->selfLink;
|
2597 |
+
}
|
2598 |
+
}
|
2599 |
+
|
2600 |
+
class Google_ZoneMaintenanceWindows extends Google_Model {
|
2601 |
+
public $endTime;
|
2602 |
+
public $beginTime;
|
2603 |
+
public $name;
|
2604 |
+
public $description;
|
2605 |
+
public function setEndTime($endTime) {
|
2606 |
+
$this->endTime = $endTime;
|
2607 |
+
}
|
2608 |
+
public function getEndTime() {
|
2609 |
+
return $this->endTime;
|
2610 |
+
}
|
2611 |
+
public function setBeginTime($beginTime) {
|
2612 |
+
$this->beginTime = $beginTime;
|
2613 |
+
}
|
2614 |
+
public function getBeginTime() {
|
2615 |
+
return $this->beginTime;
|
2616 |
+
}
|
2617 |
+
public function setName($name) {
|
2618 |
+
$this->name = $name;
|
2619 |
+
}
|
2620 |
+
public function getName() {
|
2621 |
+
return $this->name;
|
2622 |
+
}
|
2623 |
+
public function setDescription($description) {
|
2624 |
+
$this->description = $description;
|
2625 |
+
}
|
2626 |
+
public function getDescription() {
|
2627 |
+
return $this->description;
|
2628 |
+
}
|
2629 |
+
}
|
lib/SocialLogin/contrib/Google_CustomsearchService.php
ADDED
@@ -0,0 +1,836 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "cse" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $customsearchService = new Google_CustomsearchService(...);
|
22 |
+
* $cse = $customsearchService->cse;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_CseServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Returns metadata about the search performed, metadata about the custom search engine used for the
|
30 |
+
* search, and the search results. (cse.list)
|
31 |
+
*
|
32 |
+
* @param string $q Query
|
33 |
+
* @param array $optParams Optional parameters.
|
34 |
+
*
|
35 |
+
* @opt_param string sort The sort expression to apply to the results
|
36 |
+
* @opt_param string orTerms Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms
|
37 |
+
* @opt_param string highRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
38 |
+
* @opt_param string num Number of search results to return
|
39 |
+
* @opt_param string cr Country restrict(s).
|
40 |
+
* @opt_param string imgType Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
|
41 |
+
* @opt_param string gl Geolocation of end user.
|
42 |
+
* @opt_param string relatedSite Specifies that all search results should be pages that are related to the specified URL
|
43 |
+
* @opt_param string searchType Specifies the search type: image.
|
44 |
+
* @opt_param string fileType Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
|
45 |
+
* @opt_param string start The index of the first result to return
|
46 |
+
* @opt_param string imgDominantColor Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.
|
47 |
+
* @opt_param string lr The language restriction for the search results
|
48 |
+
* @opt_param string siteSearch Specifies all search results should be pages from a given site
|
49 |
+
* @opt_param string cref The URL of a linked custom search engine
|
50 |
+
* @opt_param string dateRestrict Specifies all search results are from a time period
|
51 |
+
* @opt_param string safe Search safety level
|
52 |
+
* @opt_param string c2coff Turns off the translation between zh-CN and zh-TW.
|
53 |
+
* @opt_param string googlehost The local Google domain to use to perform the search.
|
54 |
+
* @opt_param string hq Appends the extra query terms to the query.
|
55 |
+
* @opt_param string exactTerms Identifies a phrase that all documents in the search results must contain
|
56 |
+
* @opt_param string hl Sets the user interface language.
|
57 |
+
* @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
58 |
+
* @opt_param string imgSize Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
|
59 |
+
* @opt_param string imgColorType Returns black and white, grayscale, or color images: mono, gray, and color.
|
60 |
+
* @opt_param string rights Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
|
61 |
+
* @opt_param string excludeTerms Identifies a word or phrase that should not appear in any documents in the search results
|
62 |
+
* @opt_param string filter Controls turning on or off the duplicate content filter.
|
63 |
+
* @opt_param string linkSite Specifies that all search results should contain a link to a particular URL
|
64 |
+
* @opt_param string cx The custom search engine ID to scope this search query
|
65 |
+
* @opt_param string siteSearchFilter Controls whether to include or exclude results from the site named in the as_sitesearch parameter
|
66 |
+
* @return Google_Search
|
67 |
+
*/
|
68 |
+
public function listCse($q, $optParams = array()) {
|
69 |
+
$params = array('q' => $q);
|
70 |
+
$params = array_merge($params, $optParams);
|
71 |
+
$data = $this->__call('list', array($params));
|
72 |
+
if ($this->useObjects()) {
|
73 |
+
return new Google_Search($data);
|
74 |
+
} else {
|
75 |
+
return $data;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Service definition for Google_Customsearch (v1).
|
82 |
+
*
|
83 |
+
* <p>
|
84 |
+
* Lets you search over a website or collection of websites
|
85 |
+
* </p>
|
86 |
+
*
|
87 |
+
* <p>
|
88 |
+
* For more information about this service, see the
|
89 |
+
* <a href="http://code.google.com/apis/customsearch/v1/using_rest.html" target="_blank">API Documentation</a>
|
90 |
+
* </p>
|
91 |
+
*
|
92 |
+
* @author Google, Inc.
|
93 |
+
*/
|
94 |
+
class Google_CustomsearchService extends Google_Service {
|
95 |
+
public $cse;
|
96 |
+
/**
|
97 |
+
* Constructs the internal representation of the Customsearch service.
|
98 |
+
*
|
99 |
+
* @param Google_Client $client
|
100 |
+
*/
|
101 |
+
public function __construct(Google_Client $client) {
|
102 |
+
$this->servicePath = 'customsearch/';
|
103 |
+
$this->version = 'v1';
|
104 |
+
$this->serviceName = 'customsearch';
|
105 |
+
|
106 |
+
$client->addService($this->serviceName, $this->version);
|
107 |
+
$this->cse = new Google_CseServiceResource($this, $this->serviceName, 'cse', json_decode('{"methods": {"list": {"httpMethod": "GET", "response": {"$ref": "Search"}, "id": "search.cse.list", "parameters": {"sort": {"type": "string", "location": "query"}, "orTerms": {"type": "string", "location": "query"}, "highRange": {"type": "string", "location": "query"}, "num": {"default": "10", "type": "integer", "location": "query", "format": "uint32"}, "cr": {"type": "string", "location": "query"}, "imgType": {"enum": ["clipart", "face", "lineart", "news", "photo"], "type": "string", "location": "query"}, "gl": {"type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "relatedSite": {"type": "string", "location": "query"}, "searchType": {"enum": ["image"], "type": "string", "location": "query"}, "fileType": {"type": "string", "location": "query"}, "start": {"type": "integer", "location": "query", "format": "uint32"}, "imgDominantColor": {"enum": ["black", "blue", "brown", "gray", "green", "pink", "purple", "teal", "white", "yellow"], "type": "string", "location": "query"}, "lr": {"enum": ["lang_ar", "lang_bg", "lang_ca", "lang_cs", "lang_da", "lang_de", "lang_el", "lang_en", "lang_es", "lang_et", "lang_fi", "lang_fr", "lang_hr", "lang_hu", "lang_id", "lang_is", "lang_it", "lang_iw", "lang_ja", "lang_ko", "lang_lt", "lang_lv", "lang_nl", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru", "lang_sk", "lang_sl", "lang_sr", "lang_sv", "lang_tr", "lang_zh-CN", "lang_zh-TW"], "type": "string", "location": "query"}, "siteSearch": {"type": "string", "location": "query"}, "cref": {"type": "string", "location": "query"}, "dateRestrict": {"type": "string", "location": "query"}, "safe": {"default": "off", "enum": ["high", "medium", "off"], "type": "string", "location": "query"}, "c2coff": {"type": "string", "location": "query"}, "googlehost": {"type": "string", "location": "query"}, "hq": {"type": "string", "location": "query"}, "exactTerms": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lowRange": {"type": "string", "location": "query"}, "imgSize": {"enum": ["huge", "icon", "large", "medium", "small", "xlarge", "xxlarge"], "type": "string", "location": "query"}, "imgColorType": {"enum": ["color", "gray", "mono"], "type": "string", "location": "query"}, "rights": {"type": "string", "location": "query"}, "excludeTerms": {"type": "string", "location": "query"}, "filter": {"enum": ["0", "1"], "type": "string", "location": "query"}, "linkSite": {"type": "string", "location": "query"}, "cx": {"type": "string", "location": "query"}, "siteSearchFilter": {"enum": ["e", "i"], "type": "string", "location": "query"}}, "path": "v1"}}}', true));
|
108 |
+
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
class Google_Context extends Google_Model {
|
113 |
+
protected $__facetsType = 'Google_ContextFacets';
|
114 |
+
protected $__facetsDataType = 'array';
|
115 |
+
public $facets;
|
116 |
+
public $title;
|
117 |
+
public function setFacets(/* array(Google_ContextFacets) */ $facets) {
|
118 |
+
$this->assertIsArray($facets, 'Google_ContextFacets', __METHOD__);
|
119 |
+
$this->facets = $facets;
|
120 |
+
}
|
121 |
+
public function getFacets() {
|
122 |
+
return $this->facets;
|
123 |
+
}
|
124 |
+
public function setTitle($title) {
|
125 |
+
$this->title = $title;
|
126 |
+
}
|
127 |
+
public function getTitle() {
|
128 |
+
return $this->title;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
+
class Google_ContextFacets extends Google_Model {
|
133 |
+
public $anchor;
|
134 |
+
public $label;
|
135 |
+
public function setAnchor($anchor) {
|
136 |
+
$this->anchor = $anchor;
|
137 |
+
}
|
138 |
+
public function getAnchor() {
|
139 |
+
return $this->anchor;
|
140 |
+
}
|
141 |
+
public function setLabel($label) {
|
142 |
+
$this->label = $label;
|
143 |
+
}
|
144 |
+
public function getLabel() {
|
145 |
+
return $this->label;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
class Google_Promotion extends Google_Model {
|
150 |
+
public $title;
|
151 |
+
public $displayLink;
|
152 |
+
public $htmlTitle;
|
153 |
+
public $link;
|
154 |
+
protected $__bodyLinesType = 'Google_PromotionBodyLines';
|
155 |
+
protected $__bodyLinesDataType = 'array';
|
156 |
+
public $bodyLines;
|
157 |
+
protected $__imageType = 'Google_PromotionImage';
|
158 |
+
protected $__imageDataType = '';
|
159 |
+
public $image;
|
160 |
+
public function setTitle($title) {
|
161 |
+
$this->title = $title;
|
162 |
+
}
|
163 |
+
public function getTitle() {
|
164 |
+
return $this->title;
|
165 |
+
}
|
166 |
+
public function setDisplayLink($displayLink) {
|
167 |
+
$this->displayLink = $displayLink;
|
168 |
+
}
|
169 |
+
public function getDisplayLink() {
|
170 |
+
return $this->displayLink;
|
171 |
+
}
|
172 |
+
public function setHtmlTitle($htmlTitle) {
|
173 |
+
$this->htmlTitle = $htmlTitle;
|
174 |
+
}
|
175 |
+
public function getHtmlTitle() {
|
176 |
+
return $this->htmlTitle;
|
177 |
+
}
|
178 |
+
public function setLink($link) {
|
179 |
+
$this->link = $link;
|
180 |
+
}
|
181 |
+
public function getLink() {
|
182 |
+
return $this->link;
|
183 |
+
}
|
184 |
+
public function setBodyLines(/* array(Google_PromotionBodyLines) */ $bodyLines) {
|
185 |
+
$this->assertIsArray($bodyLines, 'Google_PromotionBodyLines', __METHOD__);
|
186 |
+
$this->bodyLines = $bodyLines;
|
187 |
+
}
|
188 |
+
public function getBodyLines() {
|
189 |
+
return $this->bodyLines;
|
190 |
+
}
|
191 |
+
public function setImage(Google_PromotionImage $image) {
|
192 |
+
$this->image = $image;
|
193 |
+
}
|
194 |
+
public function getImage() {
|
195 |
+
return $this->image;
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
class Google_PromotionBodyLines extends Google_Model {
|
200 |
+
public $url;
|
201 |
+
public $htmlTitle;
|
202 |
+
public $link;
|
203 |
+
public $title;
|
204 |
+
public function setUrl($url) {
|
205 |
+
$this->url = $url;
|
206 |
+
}
|
207 |
+
public function getUrl() {
|
208 |
+
return $this->url;
|
209 |
+
}
|
210 |
+
public function setHtmlTitle($htmlTitle) {
|
211 |
+
$this->htmlTitle = $htmlTitle;
|
212 |
+
}
|
213 |
+
public function getHtmlTitle() {
|
214 |
+
return $this->htmlTitle;
|
215 |
+
}
|
216 |
+
public function setLink($link) {
|
217 |
+
$this->link = $link;
|
218 |
+
}
|
219 |
+
public function getLink() {
|
220 |
+
return $this->link;
|
221 |
+
}
|
222 |
+
public function setTitle($title) {
|
223 |
+
$this->title = $title;
|
224 |
+
}
|
225 |
+
public function getTitle() {
|
226 |
+
return $this->title;
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
class Google_PromotionImage extends Google_Model {
|
231 |
+
public $source;
|
232 |
+
public $width;
|
233 |
+
public $height;
|
234 |
+
public function setSource($source) {
|
235 |
+
$this->source = $source;
|
236 |
+
}
|
237 |
+
public function getSource() {
|
238 |
+
return $this->source;
|
239 |
+
}
|
240 |
+
public function setWidth($width) {
|
241 |
+
$this->width = $width;
|
242 |
+
}
|
243 |
+
public function getWidth() {
|
244 |
+
return $this->width;
|
245 |
+
}
|
246 |
+
public function setHeight($height) {
|
247 |
+
$this->height = $height;
|
248 |
+
}
|
249 |
+
public function getHeight() {
|
250 |
+
return $this->height;
|
251 |
+
}
|
252 |
+
}
|
253 |
+
|
254 |
+
class Google_Query extends Google_Model {
|
255 |
+
public $sort;
|
256 |
+
public $inputEncoding;
|
257 |
+
public $orTerms;
|
258 |
+
public $highRange;
|
259 |
+
public $cx;
|
260 |
+
public $startPage;
|
261 |
+
public $disableCnTwTranslation;
|
262 |
+
public $cr;
|
263 |
+
public $imgType;
|
264 |
+
public $gl;
|
265 |
+
public $relatedSite;
|
266 |
+
public $searchType;
|
267 |
+
public $title;
|
268 |
+
public $googleHost;
|
269 |
+
public $fileType;
|
270 |
+
public $imgDominantColor;
|
271 |
+
public $siteSearch;
|
272 |
+
public $cref;
|
273 |
+
public $dateRestrict;
|
274 |
+
public $safe;
|
275 |
+
public $outputEncoding;
|
276 |
+
public $hq;
|
277 |
+
public $searchTerms;
|
278 |
+
public $exactTerms;
|
279 |
+
public $language;
|
280 |
+
public $hl;
|
281 |
+
public $totalResults;
|
282 |
+
public $lowRange;
|
283 |
+
public $count;
|
284 |
+
public $imgSize;
|
285 |
+
public $imgColorType;
|
286 |
+
public $rights;
|
287 |
+
public $startIndex;
|
288 |
+
public $excludeTerms;
|
289 |
+
public $filter;
|
290 |
+
public $linkSite;
|
291 |
+
public $siteSearchFilter;
|
292 |
+
public function setSort($sort) {
|
293 |
+
$this->sort = $sort;
|
294 |
+
}
|
295 |
+
public function getSort() {
|
296 |
+
return $this->sort;
|
297 |
+
}
|
298 |
+
public function setInputEncoding($inputEncoding) {
|
299 |
+
$this->inputEncoding = $inputEncoding;
|
300 |
+
}
|
301 |
+
public function getInputEncoding() {
|
302 |
+
return $this->inputEncoding;
|
303 |
+
}
|
304 |
+
public function setOrTerms($orTerms) {
|
305 |
+
$this->orTerms = $orTerms;
|
306 |
+
}
|
307 |
+
public function getOrTerms() {
|
308 |
+
return $this->orTerms;
|
309 |
+
}
|
310 |
+
public function setHighRange($highRange) {
|
311 |
+
$this->highRange = $highRange;
|
312 |
+
}
|
313 |
+
public function getHighRange() {
|
314 |
+
return $this->highRange;
|
315 |
+
}
|
316 |
+
public function setCx($cx) {
|
317 |
+
$this->cx = $cx;
|
318 |
+
}
|
319 |
+
public function getCx() {
|
320 |
+
return $this->cx;
|
321 |
+
}
|
322 |
+
public function setStartPage($startPage) {
|
323 |
+
$this->startPage = $startPage;
|
324 |
+
}
|
325 |
+
public function getStartPage() {
|
326 |
+
return $this->startPage;
|
327 |
+
}
|
328 |
+
public function setDisableCnTwTranslation($disableCnTwTranslation) {
|
329 |
+
$this->disableCnTwTranslation = $disableCnTwTranslation;
|
330 |
+
}
|
331 |
+
public function getDisableCnTwTranslation() {
|
332 |
+
return $this->disableCnTwTranslation;
|
333 |
+
}
|
334 |
+
public function setCr($cr) {
|
335 |
+
$this->cr = $cr;
|
336 |
+
}
|
337 |
+
public function getCr() {
|
338 |
+
return $this->cr;
|
339 |
+
}
|
340 |
+
public function setImgType($imgType) {
|
341 |
+
$this->imgType = $imgType;
|
342 |
+
}
|
343 |
+
public function getImgType() {
|
344 |
+
return $this->imgType;
|
345 |
+
}
|
346 |
+
public function setGl($gl) {
|
347 |
+
$this->gl = $gl;
|
348 |
+
}
|
349 |
+
public function getGl() {
|
350 |
+
return $this->gl;
|
351 |
+
}
|
352 |
+
public function setRelatedSite($relatedSite) {
|
353 |
+
$this->relatedSite = $relatedSite;
|
354 |
+
}
|
355 |
+
public function getRelatedSite() {
|
356 |
+
return $this->relatedSite;
|
357 |
+
}
|
358 |
+
public function setSearchType($searchType) {
|
359 |
+
$this->searchType = $searchType;
|
360 |
+
}
|
361 |
+
public function getSearchType() {
|
362 |
+
return $this->searchType;
|
363 |
+
}
|
364 |
+
public function setTitle($title) {
|
365 |
+
$this->title = $title;
|
366 |
+
}
|
367 |
+
public function getTitle() {
|
368 |
+
return $this->title;
|
369 |
+
}
|
370 |
+
public function setGoogleHost($googleHost) {
|
371 |
+
$this->googleHost = $googleHost;
|
372 |
+
}
|
373 |
+
public function getGoogleHost() {
|
374 |
+
return $this->googleHost;
|
375 |
+
}
|
376 |
+
public function setFileType($fileType) {
|
377 |
+
$this->fileType = $fileType;
|
378 |
+
}
|
379 |
+
public function getFileType() {
|
380 |
+
return $this->fileType;
|
381 |
+
}
|
382 |
+
public function setImgDominantColor($imgDominantColor) {
|
383 |
+
$this->imgDominantColor = $imgDominantColor;
|
384 |
+
}
|
385 |
+
public function getImgDominantColor() {
|
386 |
+
return $this->imgDominantColor;
|
387 |
+
}
|
388 |
+
public function setSiteSearch($siteSearch) {
|
389 |
+
$this->siteSearch = $siteSearch;
|
390 |
+
}
|
391 |
+
public function getSiteSearch() {
|
392 |
+
return $this->siteSearch;
|
393 |
+
}
|
394 |
+
public function setCref($cref) {
|
395 |
+
$this->cref = $cref;
|
396 |
+
}
|
397 |
+
public function getCref() {
|
398 |
+
return $this->cref;
|
399 |
+
}
|
400 |
+
public function setDateRestrict($dateRestrict) {
|
401 |
+
$this->dateRestrict = $dateRestrict;
|
402 |
+
}
|
403 |
+
public function getDateRestrict() {
|
404 |
+
return $this->dateRestrict;
|
405 |
+
}
|
406 |
+
public function setSafe($safe) {
|
407 |
+
$this->safe = $safe;
|
408 |
+
}
|
409 |
+
public function getSafe() {
|
410 |
+
return $this->safe;
|
411 |
+
}
|
412 |
+
public function setOutputEncoding($outputEncoding) {
|
413 |
+
$this->outputEncoding = $outputEncoding;
|
414 |
+
}
|
415 |
+
public function getOutputEncoding() {
|
416 |
+
return $this->outputEncoding;
|
417 |
+
}
|
418 |
+
public function setHq($hq) {
|
419 |
+
$this->hq = $hq;
|
420 |
+
}
|
421 |
+
public function getHq() {
|
422 |
+
return $this->hq;
|
423 |
+
}
|
424 |
+
public function setSearchTerms($searchTerms) {
|
425 |
+
$this->searchTerms = $searchTerms;
|
426 |
+
}
|
427 |
+
public function getSearchTerms() {
|
428 |
+
return $this->searchTerms;
|
429 |
+
}
|
430 |
+
public function setExactTerms($exactTerms) {
|
431 |
+
$this->exactTerms = $exactTerms;
|
432 |
+
}
|
433 |
+
public function getExactTerms() {
|
434 |
+
return $this->exactTerms;
|
435 |
+
}
|
436 |
+
public function setLanguage($language) {
|
437 |
+
$this->language = $language;
|
438 |
+
}
|
439 |
+
public function getLanguage() {
|
440 |
+
return $this->language;
|
441 |
+
}
|
442 |
+
public function setHl($hl) {
|
443 |
+
$this->hl = $hl;
|
444 |
+
}
|
445 |
+
public function getHl() {
|
446 |
+
return $this->hl;
|
447 |
+
}
|
448 |
+
public function setTotalResults($totalResults) {
|
449 |
+
$this->totalResults = $totalResults;
|
450 |
+
}
|
451 |
+
public function getTotalResults() {
|
452 |
+
return $this->totalResults;
|
453 |
+
}
|
454 |
+
public function setLowRange($lowRange) {
|
455 |
+
$this->lowRange = $lowRange;
|
456 |
+
}
|
457 |
+
public function getLowRange() {
|
458 |
+
return $this->lowRange;
|
459 |
+
}
|
460 |
+
public function setCount($count) {
|
461 |
+
$this->count = $count;
|
462 |
+
}
|
463 |
+
public function getCount() {
|
464 |
+
return $this->count;
|
465 |
+
}
|
466 |
+
public function setImgSize($imgSize) {
|
467 |
+
$this->imgSize = $imgSize;
|
468 |
+
}
|
469 |
+
public function getImgSize() {
|
470 |
+
return $this->imgSize;
|
471 |
+
}
|
472 |
+
public function setImgColorType($imgColorType) {
|
473 |
+
$this->imgColorType = $imgColorType;
|
474 |
+
}
|
475 |
+
public function getImgColorType() {
|
476 |
+
return $this->imgColorType;
|
477 |
+
}
|
478 |
+
public function setRights($rights) {
|
479 |
+
$this->rights = $rights;
|
480 |
+
}
|
481 |
+
public function getRights() {
|
482 |
+
return $this->rights;
|
483 |
+
}
|
484 |
+
public function setStartIndex($startIndex) {
|
485 |
+
$this->startIndex = $startIndex;
|
486 |
+
}
|
487 |
+
public function getStartIndex() {
|
488 |
+
return $this->startIndex;
|
489 |
+
}
|
490 |
+
public function setExcludeTerms($excludeTerms) {
|
491 |
+
$this->excludeTerms = $excludeTerms;
|
492 |
+
}
|
493 |
+
public function getExcludeTerms() {
|
494 |
+
return $this->excludeTerms;
|
495 |
+
}
|
496 |
+
public function setFilter($filter) {
|
497 |
+
$this->filter = $filter;
|
498 |
+
}
|
499 |
+
public function getFilter() {
|
500 |
+
return $this->filter;
|
501 |
+
}
|
502 |
+
public function setLinkSite($linkSite) {
|
503 |
+
$this->linkSite = $linkSite;
|
504 |
+
}
|
505 |
+
public function getLinkSite() {
|
506 |
+
return $this->linkSite;
|
507 |
+
}
|
508 |
+
public function setSiteSearchFilter($siteSearchFilter) {
|
509 |
+
$this->siteSearchFilter = $siteSearchFilter;
|
510 |
+
}
|
511 |
+
public function getSiteSearchFilter() {
|
512 |
+
return $this->siteSearchFilter;
|
513 |
+
}
|
514 |
+
}
|
515 |
+
|
516 |
+
class Google_Result extends Google_Model {
|
517 |
+
public $snippet;
|
518 |
+
public $kind;
|
519 |
+
protected $__labelsType = 'Google_ResultLabels';
|
520 |
+
protected $__labelsDataType = 'array';
|
521 |
+
public $labels;
|
522 |
+
public $title;
|
523 |
+
public $displayLink;
|
524 |
+
public $cacheId;
|
525 |
+
public $formattedUrl;
|
526 |
+
public $htmlFormattedUrl;
|
527 |
+
public $pagemap;
|
528 |
+
public $htmlTitle;
|
529 |
+
public $htmlSnippet;
|
530 |
+
public $link;
|
531 |
+
protected $__imageType = 'Google_ResultImage';
|
532 |
+
protected $__imageDataType = '';
|
533 |
+
public $image;
|
534 |
+
public $mime;
|
535 |
+
public $fileFormat;
|
536 |
+
public function setSnippet($snippet) {
|
537 |
+
$this->snippet = $snippet;
|
538 |
+
}
|
539 |
+
public function getSnippet() {
|
540 |
+
return $this->snippet;
|
541 |
+
}
|
542 |
+
public function setKind($kind) {
|
543 |
+
$this->kind = $kind;
|
544 |
+
}
|
545 |
+
public function getKind() {
|
546 |
+
return $this->kind;
|
547 |
+
}
|
548 |
+
public function setLabels(/* array(Google_ResultLabels) */ $labels) {
|
549 |
+
$this->assertIsArray($labels, 'Google_ResultLabels', __METHOD__);
|
550 |
+
$this->labels = $labels;
|
551 |
+
}
|
552 |
+
public function getLabels() {
|
553 |
+
return $this->labels;
|
554 |
+
}
|
555 |
+
public function setTitle($title) {
|
556 |
+
$this->title = $title;
|
557 |
+
}
|
558 |
+
public function getTitle() {
|
559 |
+
return $this->title;
|
560 |
+
}
|
561 |
+
public function setDisplayLink($displayLink) {
|
562 |
+
$this->displayLink = $displayLink;
|
563 |
+
}
|
564 |
+
public function getDisplayLink() {
|
565 |
+
return $this->displayLink;
|
566 |
+
}
|
567 |
+
public function setCacheId($cacheId) {
|
568 |
+
$this->cacheId = $cacheId;
|
569 |
+
}
|
570 |
+
public function getCacheId() {
|
571 |
+
return $this->cacheId;
|
572 |
+
}
|
573 |
+
public function setFormattedUrl($formattedUrl) {
|
574 |
+
$this->formattedUrl = $formattedUrl;
|
575 |
+
}
|
576 |
+
public function getFormattedUrl() {
|
577 |
+
return $this->formattedUrl;
|
578 |
+
}
|
579 |
+
public function setHtmlFormattedUrl($htmlFormattedUrl) {
|
580 |
+
$this->htmlFormattedUrl = $htmlFormattedUrl;
|
581 |
+
}
|
582 |
+
public function getHtmlFormattedUrl() {
|
583 |
+
return $this->htmlFormattedUrl;
|
584 |
+
}
|
585 |
+
public function setPagemap($pagemap) {
|
586 |
+
$this->pagemap = $pagemap;
|
587 |
+
}
|
588 |
+
public function getPagemap() {
|
589 |
+
return $this->pagemap;
|
590 |
+
}
|
591 |
+
public function setHtmlTitle($htmlTitle) {
|
592 |
+
$this->htmlTitle = $htmlTitle;
|
593 |
+
}
|
594 |
+
public function getHtmlTitle() {
|
595 |
+
return $this->htmlTitle;
|
596 |
+
}
|
597 |
+
public function setHtmlSnippet($htmlSnippet) {
|
598 |
+
$this->htmlSnippet = $htmlSnippet;
|
599 |
+
}
|
600 |
+
public function getHtmlSnippet() {
|
601 |
+
return $this->htmlSnippet;
|
602 |
+
}
|
603 |
+
public function setLink($link) {
|
604 |
+
$this->link = $link;
|
605 |
+
}
|
606 |
+
public function getLink() {
|
607 |
+
return $this->link;
|
608 |
+
}
|
609 |
+
public function setImage(Google_ResultImage $image) {
|
610 |
+
$this->image = $image;
|
611 |
+
}
|
612 |
+
public function getImage() {
|
613 |
+
return $this->image;
|
614 |
+
}
|
615 |
+
public function setMime($mime) {
|
616 |
+
$this->mime = $mime;
|
617 |
+
}
|
618 |
+
public function getMime() {
|
619 |
+
return $this->mime;
|
620 |
+
}
|
621 |
+
public function setFileFormat($fileFormat) {
|
622 |
+
$this->fileFormat = $fileFormat;
|
623 |
+
}
|
624 |
+
public function getFileFormat() {
|
625 |
+
return $this->fileFormat;
|
626 |
+
}
|
627 |
+
}
|
628 |
+
|
629 |
+
class Google_ResultImage extends Google_Model {
|
630 |
+
public $thumbnailWidth;
|
631 |
+
public $byteSize;
|
632 |
+
public $height;
|
633 |
+
public $width;
|
634 |
+
public $contextLink;
|
635 |
+
public $thumbnailLink;
|
636 |
+
public $thumbnailHeight;
|
637 |
+
public function setThumbnailWidth($thumbnailWidth) {
|
638 |
+
$this->thumbnailWidth = $thumbnailWidth;
|
639 |
+
}
|
640 |
+
public function getThumbnailWidth() {
|
641 |
+
return $this->thumbnailWidth;
|
642 |
+
}
|
643 |
+
public function setByteSize($byteSize) {
|
644 |
+
$this->byteSize = $byteSize;
|
645 |
+
}
|
646 |
+
public function getByteSize() {
|
647 |
+
return $this->byteSize;
|
648 |
+
}
|
649 |
+
public function setHeight($height) {
|
650 |
+
$this->height = $height;
|
651 |
+
}
|
652 |
+
public function getHeight() {
|
653 |
+
return $this->height;
|
654 |
+
}
|
655 |
+
public function setWidth($width) {
|
656 |
+
$this->width = $width;
|
657 |
+
}
|
658 |
+
public function getWidth() {
|
659 |
+
return $this->width;
|
660 |
+
}
|
661 |
+
public function setContextLink($contextLink) {
|
662 |
+
$this->contextLink = $contextLink;
|
663 |
+
}
|
664 |
+
public function getContextLink() {
|
665 |
+
return $this->contextLink;
|
666 |
+
}
|
667 |
+
public function setThumbnailLink($thumbnailLink) {
|
668 |
+
$this->thumbnailLink = $thumbnailLink;
|
669 |
+
}
|
670 |
+
public function getThumbnailLink() {
|
671 |
+
return $this->thumbnailLink;
|
672 |
+
}
|
673 |
+
public function setThumbnailHeight($thumbnailHeight) {
|
674 |
+
$this->thumbnailHeight = $thumbnailHeight;
|
675 |
+
}
|
676 |
+
public function getThumbnailHeight() {
|
677 |
+
return $this->thumbnailHeight;
|
678 |
+
}
|
679 |
+
}
|
680 |
+
|
681 |
+
class Google_ResultLabels extends Google_Model {
|
682 |
+
public $displayName;
|
683 |
+
public $name;
|
684 |
+
public function setDisplayName($displayName) {
|
685 |
+
$this->displayName = $displayName;
|
686 |
+
}
|
687 |
+
public function getDisplayName() {
|
688 |
+
return $this->displayName;
|
689 |
+
}
|
690 |
+
public function setName($name) {
|
691 |
+
$this->name = $name;
|
692 |
+
}
|
693 |
+
public function getName() {
|
694 |
+
return $this->name;
|
695 |
+
}
|
696 |
+
}
|
697 |
+
|
698 |
+
class Google_Search extends Google_Model {
|
699 |
+
protected $__promotionsType = 'Google_Promotion';
|
700 |
+
protected $__promotionsDataType = 'array';
|
701 |
+
public $promotions;
|
702 |
+
public $kind;
|
703 |
+
protected $__urlType = 'Google_SearchUrl';
|
704 |
+
protected $__urlDataType = '';
|
705 |
+
public $url;
|
706 |
+
protected $__itemsType = 'Google_Result';
|
707 |
+
protected $__itemsDataType = 'array';
|
708 |
+
public $items;
|
709 |
+
protected $__contextType = 'Google_Context';
|
710 |
+
protected $__contextDataType = '';
|
711 |
+
public $context;
|
712 |
+
protected $__queriesType = 'Google_Query';
|
713 |
+
protected $__queriesDataType = 'map';
|
714 |
+
public $queries;
|
715 |
+
protected $__spellingType = 'Google_SearchSpelling';
|
716 |
+
protected $__spellingDataType = '';
|
717 |
+
public $spelling;
|
718 |
+
protected $__searchInformationType = 'Google_SearchSearchInformation';
|
719 |
+
protected $__searchInformationDataType = '';
|
720 |
+
public $searchInformation;
|
721 |
+
public function setPromotions(/* array(Google_Promotion) */ $promotions) {
|
722 |
+
$this->assertIsArray($promotions, 'Google_Promotion', __METHOD__);
|
723 |
+
$this->promotions = $promotions;
|
724 |
+
}
|
725 |
+
public function getPromotions() {
|
726 |
+
return $this->promotions;
|
727 |
+
}
|
728 |
+
public function setKind($kind) {
|
729 |
+
$this->kind = $kind;
|
730 |
+
}
|
731 |
+
public function getKind() {
|
732 |
+
return $this->kind;
|
733 |
+
}
|
734 |
+
public function setUrl(Google_SearchUrl $url) {
|
735 |
+
$this->url = $url;
|
736 |
+
}
|
737 |
+
public function getUrl() {
|
738 |
+
return $this->url;
|
739 |
+
}
|
740 |
+
public function setItems(/* array(Google_Result) */ $items) {
|
741 |
+
$this->assertIsArray($items, 'Google_Result', __METHOD__);
|
742 |
+
$this->items = $items;
|
743 |
+
}
|
744 |
+
public function getItems() {
|
745 |
+
return $this->items;
|
746 |
+
}
|
747 |
+
public function setContext(Google_Context $context) {
|
748 |
+
$this->context = $context;
|
749 |
+
}
|
750 |
+
public function getContext() {
|
751 |
+
return $this->context;
|
752 |
+
}
|
753 |
+
public function setQueries(Google_Query $queries) {
|
754 |
+
$this->queries = $queries;
|
755 |
+
}
|
756 |
+
public function getQueries() {
|
757 |
+
return $this->queries;
|
758 |
+
}
|
759 |
+
public function setSpelling(Google_SearchSpelling $spelling) {
|
760 |
+
$this->spelling = $spelling;
|
761 |
+
}
|
762 |
+
public function getSpelling() {
|
763 |
+
return $this->spelling;
|
764 |
+
}
|
765 |
+
public function setSearchInformation(Google_SearchSearchInformation $searchInformation) {
|
766 |
+
$this->searchInformation = $searchInformation;
|
767 |
+
}
|
768 |
+
public function getSearchInformation() {
|
769 |
+
return $this->searchInformation;
|
770 |
+
}
|
771 |
+
}
|
772 |
+
|
773 |
+
class Google_SearchSearchInformation extends Google_Model {
|
774 |
+
public $formattedSearchTime;
|
775 |
+
public $formattedTotalResults;
|
776 |
+
public $totalResults;
|
777 |
+
public $searchTime;
|
778 |
+
public function setFormattedSearchTime($formattedSearchTime) {
|
779 |
+
$this->formattedSearchTime = $formattedSearchTime;
|
780 |
+
}
|
781 |
+
public function getFormattedSearchTime() {
|
782 |
+
return $this->formattedSearchTime;
|
783 |
+
}
|
784 |
+
public function setFormattedTotalResults($formattedTotalResults) {
|
785 |
+
$this->formattedTotalResults = $formattedTotalResults;
|
786 |
+
}
|
787 |
+
public function getFormattedTotalResults() {
|
788 |
+
return $this->formattedTotalResults;
|
789 |
+
}
|
790 |
+
public function setTotalResults($totalResults) {
|
791 |
+
$this->totalResults = $totalResults;
|
792 |
+
}
|
793 |
+
public function getTotalResults() {
|
794 |
+
return $this->totalResults;
|
795 |
+
}
|
796 |
+
public function setSearchTime($searchTime) {
|
797 |
+
$this->searchTime = $searchTime;
|
798 |
+
}
|
799 |
+
public function getSearchTime() {
|
800 |
+
return $this->searchTime;
|
801 |
+
}
|
802 |
+
}
|
803 |
+
|
804 |
+
class Google_SearchSpelling extends Google_Model {
|
805 |
+
public $correctedQuery;
|
806 |
+
public $htmlCorrectedQuery;
|
807 |
+
public function setCorrectedQuery($correctedQuery) {
|
808 |
+
$this->correctedQuery = $correctedQuery;
|
809 |
+
}
|
810 |
+
public function getCorrectedQuery() {
|
811 |
+
return $this->correctedQuery;
|
812 |
+
}
|
813 |
+
public function setHtmlCorrectedQuery($htmlCorrectedQuery) {
|
814 |
+
$this->htmlCorrectedQuery = $htmlCorrectedQuery;
|
815 |
+
}
|
816 |
+
public function getHtmlCorrectedQuery() {
|
817 |
+
return $this->htmlCorrectedQuery;
|
818 |
+
}
|
819 |
+
}
|
820 |
+
|
821 |
+
class Google_SearchUrl extends Google_Model {
|
822 |
+
public $type;
|
823 |
+
public $template;
|
824 |
+
public function setType($type) {
|
825 |
+
$this->type = $type;
|
826 |
+
}
|
827 |
+
public function getType() {
|
828 |
+
return $this->type;
|
829 |
+
}
|
830 |
+
public function setTemplate($template) {
|
831 |
+
$this->template = $template;
|
832 |
+
}
|
833 |
+
public function getTemplate() {
|
834 |
+
return $this->template;
|
835 |
+
}
|
836 |
+
}
|
lib/SocialLogin/contrib/Google_DriveService.php
ADDED
@@ -0,0 +1,2157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "files" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $driveService = new Google_DriveService(...);
|
22 |
+
* $files = $driveService->files;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_FilesServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Insert a new file. (files.insert)
|
30 |
+
*
|
31 |
+
* @param Google_DriveFile $postBody
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
*
|
34 |
+
* @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
|
35 |
+
* @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
|
36 |
+
* @opt_param string sourceLanguage The language of the original file to be translated.
|
37 |
+
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
|
38 |
+
* @opt_param bool pinned Whether to pin the head revision of the uploaded file.
|
39 |
+
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
|
40 |
+
* @opt_param string timedTextTrackName The timed text track name.
|
41 |
+
* @opt_param string timedTextLanguage The language of the timed text.
|
42 |
+
* @return Google_DriveFile
|
43 |
+
*/
|
44 |
+
public function insert(Google_DriveFile $postBody, $optParams = array()) {
|
45 |
+
$params = array('postBody' => $postBody);
|
46 |
+
$params = array_merge($params, $optParams);
|
47 |
+
$data = $this->__call('insert', array($params));
|
48 |
+
if ($this->useObjects()) {
|
49 |
+
return new Google_DriveFile($data);
|
50 |
+
} else {
|
51 |
+
return $data;
|
52 |
+
}
|
53 |
+
}
|
54 |
+
/**
|
55 |
+
* Restores a file from the trash. (files.untrash)
|
56 |
+
*
|
57 |
+
* @param string $fileId The ID of the file to untrash.
|
58 |
+
* @param array $optParams Optional parameters.
|
59 |
+
* @return Google_DriveFile
|
60 |
+
*/
|
61 |
+
public function untrash($fileId, $optParams = array()) {
|
62 |
+
$params = array('fileId' => $fileId);
|
63 |
+
$params = array_merge($params, $optParams);
|
64 |
+
$data = $this->__call('untrash', array($params));
|
65 |
+
if ($this->useObjects()) {
|
66 |
+
return new Google_DriveFile($data);
|
67 |
+
} else {
|
68 |
+
return $data;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
/**
|
72 |
+
* Moves a file to the trash. (files.trash)
|
73 |
+
*
|
74 |
+
* @param string $fileId The ID of the file to trash.
|
75 |
+
* @param array $optParams Optional parameters.
|
76 |
+
* @return Google_DriveFile
|
77 |
+
*/
|
78 |
+
public function trash($fileId, $optParams = array()) {
|
79 |
+
$params = array('fileId' => $fileId);
|
80 |
+
$params = array_merge($params, $optParams);
|
81 |
+
$data = $this->__call('trash', array($params));
|
82 |
+
if ($this->useObjects()) {
|
83 |
+
return new Google_DriveFile($data);
|
84 |
+
} else {
|
85 |
+
return $data;
|
86 |
+
}
|
87 |
+
}
|
88 |
+
/**
|
89 |
+
* Gets a file's metadata by ID. (files.get)
|
90 |
+
*
|
91 |
+
* @param string $fileId The ID for the file in question.
|
92 |
+
* @param array $optParams Optional parameters.
|
93 |
+
*
|
94 |
+
* @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
|
95 |
+
* @opt_param string projection This parameter is deprecated and has no function.
|
96 |
+
* @return Google_DriveFile
|
97 |
+
*/
|
98 |
+
public function get($fileId, $optParams = array()) {
|
99 |
+
$params = array('fileId' => $fileId);
|
100 |
+
$params = array_merge($params, $optParams);
|
101 |
+
$data = $this->__call('get', array($params));
|
102 |
+
if ($this->useObjects()) {
|
103 |
+
return new Google_DriveFile($data);
|
104 |
+
} else {
|
105 |
+
return $data;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
/**
|
109 |
+
* Lists the user's files. (files.list)
|
110 |
+
*
|
111 |
+
* @param array $optParams Optional parameters.
|
112 |
+
*
|
113 |
+
* @opt_param string q Query string for searching files.
|
114 |
+
* @opt_param string pageToken Page token for files.
|
115 |
+
* @opt_param string projection This parameter is deprecated and has no function.
|
116 |
+
* @opt_param int maxResults Maximum number of files to return.
|
117 |
+
* @return Google_FileList
|
118 |
+
*/
|
119 |
+
public function listFiles($optParams = array()) {
|
120 |
+
$params = array();
|
121 |
+
$params = array_merge($params, $optParams);
|
122 |
+
$data = $this->__call('list', array($params));
|
123 |
+
if ($this->useObjects()) {
|
124 |
+
return new Google_FileList($data);
|
125 |
+
} else {
|
126 |
+
return $data;
|
127 |
+
}
|
128 |
+
}
|
129 |
+
/**
|
130 |
+
* Updates file metadata and/or content (files.update)
|
131 |
+
*
|
132 |
+
* @param string $fileId The ID of the file to update.
|
133 |
+
* @param Google_DriveFile $postBody
|
134 |
+
* @param array $optParams Optional parameters.
|
135 |
+
*
|
136 |
+
* @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
|
137 |
+
* @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
|
138 |
+
* @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
|
139 |
+
* @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
|
140 |
+
* @opt_param string sourceLanguage The language of the original file to be translated.
|
141 |
+
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
|
142 |
+
* @opt_param bool pinned Whether to pin the new revision.
|
143 |
+
* @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
|
144 |
+
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
|
145 |
+
* @opt_param string timedTextLanguage The language of the timed text.
|
146 |
+
* @opt_param string timedTextTrackName The timed text track name.
|
147 |
+
* @return Google_DriveFile
|
148 |
+
*/
|
149 |
+
public function update($fileId, Google_DriveFile $postBody, $optParams = array()) {
|
150 |
+
$params = array('fileId' => $fileId, 'postBody' => $postBody);
|
151 |
+
$params = array_merge($params, $optParams);
|
152 |
+
$data = $this->__call('update', array($params));
|
153 |
+
if ($this->useObjects()) {
|
154 |
+
return new Google_DriveFile($data);
|
155 |
+
} else {
|
156 |
+
return $data;
|
157 |
+
}
|
158 |
+
}
|
159 |
+
/**
|
160 |
+
* Updates file metadata and/or content. This method supports patch semantics. (files.patch)
|
161 |
+
*
|
162 |
+
* @param string $fileId The ID of the file to update.
|
163 |
+
* @param Google_DriveFile $postBody
|
164 |
+
* @param array $optParams Optional parameters.
|
165 |
+
*
|
166 |
+
* @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
|
167 |
+
* @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
|
168 |
+
* @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
|
169 |
+
* @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
|
170 |
+
* @opt_param string sourceLanguage The language of the original file to be translated.
|
171 |
+
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
|
172 |
+
* @opt_param bool pinned Whether to pin the new revision.
|
173 |
+
* @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
|
174 |
+
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
|
175 |
+
* @opt_param string timedTextLanguage The language of the timed text.
|
176 |
+
* @opt_param string timedTextTrackName The timed text track name.
|
177 |
+
* @return Google_DriveFile
|
178 |
+
*/
|
179 |
+
public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) {
|
180 |
+
$params = array('fileId' => $fileId, 'postBody' => $postBody);
|
181 |
+
$params = array_merge($params, $optParams);
|
182 |
+
$data = $this->__call('patch', array($params));
|
183 |
+
if ($this->useObjects()) {
|
184 |
+
return new Google_DriveFile($data);
|
185 |
+
} else {
|
186 |
+
return $data;
|
187 |
+
}
|
188 |
+
}
|
189 |
+
/**
|
190 |
+
* Set the file's updated time to the current server time. (files.touch)
|
191 |
+
*
|
192 |
+
* @param string $fileId The ID of the file to update.
|
193 |
+
* @param array $optParams Optional parameters.
|
194 |
+
* @return Google_DriveFile
|
195 |
+
*/
|
196 |
+
public function touch($fileId, $optParams = array()) {
|
197 |
+
$params = array('fileId' => $fileId);
|
198 |
+
$params = array_merge($params, $optParams);
|
199 |
+
$data = $this->__call('touch', array($params));
|
200 |
+
if ($this->useObjects()) {
|
201 |
+
return new Google_DriveFile($data);
|
202 |
+
} else {
|
203 |
+
return $data;
|
204 |
+
}
|
205 |
+
}
|
206 |
+
/**
|
207 |
+
* Creates a copy of the specified file. (files.copy)
|
208 |
+
*
|
209 |
+
* @param string $fileId The ID of the file to copy.
|
210 |
+
* @param Google_DriveFile $postBody
|
211 |
+
* @param array $optParams Optional parameters.
|
212 |
+
*
|
213 |
+
* @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
|
214 |
+
* @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
|
215 |
+
* @opt_param string sourceLanguage The language of the original file to be translated.
|
216 |
+
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
|
217 |
+
* @opt_param bool pinned Whether to pin the head revision of the new copy.
|
218 |
+
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
|
219 |
+
* @opt_param string timedTextLanguage The language of the timed text.
|
220 |
+
* @opt_param string timedTextTrackName The timed text track name.
|
221 |
+
* @return Google_DriveFile
|
222 |
+
*/
|
223 |
+
public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
|
224 |
+
$params = array('fileId' => $fileId, 'postBody' => $postBody);
|
225 |
+
$params = array_merge($params, $optParams);
|
226 |
+
$data = $this->__call('copy', array($params));
|
227 |
+
if ($this->useObjects()) {
|
228 |
+
return new Google_DriveFile($data);
|
229 |
+
} else {
|
230 |
+
return $data;
|
231 |
+
}
|
232 |
+
}
|
233 |
+
/**
|
234 |
+
* Permanently deletes a file by ID. Skips the trash. (files.delete)
|
235 |
+
*
|
236 |
+
* @param string $fileId The ID of the file to delete.
|
237 |
+
* @param array $optParams Optional parameters.
|
238 |
+
*/
|
239 |
+
public function delete($fileId, $optParams = array()) {
|
240 |
+
$params = array('fileId' => $fileId);
|
241 |
+
$params = array_merge($params, $optParams);
|
242 |
+
$data = $this->__call('delete', array($params));
|
243 |
+
return $data;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
/**
|
248 |
+
* The "about" collection of methods.
|
249 |
+
* Typical usage is:
|
250 |
+
* <code>
|
251 |
+
* $driveService = new Google_DriveService(...);
|
252 |
+
* $about = $driveService->about;
|
253 |
+
* </code>
|
254 |
+
*/
|
255 |
+
class Google_AboutServiceResource extends Google_ServiceResource {
|
256 |
+
|
257 |
+
|
258 |
+
/**
|
259 |
+
* Gets the information about the current user along with Drive API settings (about.get)
|
260 |
+
*
|
261 |
+
* @param array $optParams Optional parameters.
|
262 |
+
*
|
263 |
+
* @opt_param bool includeSubscribed Whether to include subscribed items when calculating the number of remaining change IDs
|
264 |
+
* @opt_param string maxChangeIdCount Maximum number of remaining change IDs to count
|
265 |
+
* @opt_param string startChangeId Change ID to start counting from when calculating number of remaining change IDs
|
266 |
+
* @return Google_About
|
267 |
+
*/
|
268 |
+
public function get($optParams = array()) {
|
269 |
+
$params = array();
|
270 |
+
$params = array_merge($params, $optParams);
|
271 |
+
$data = $this->__call('get', array($params));
|
272 |
+
if ($this->useObjects()) {
|
273 |
+
return new Google_About($data);
|
274 |
+
} else {
|
275 |
+
return $data;
|
276 |
+
}
|
277 |
+
}
|
278 |
+
}
|
279 |
+
|
280 |
+
/**
|
281 |
+
* The "apps" collection of methods.
|
282 |
+
* Typical usage is:
|
283 |
+
* <code>
|
284 |
+
* $driveService = new Google_DriveService(...);
|
285 |
+
* $apps = $driveService->apps;
|
286 |
+
* </code>
|
287 |
+
*/
|
288 |
+
class Google_AppsServiceResource extends Google_ServiceResource {
|
289 |
+
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Lists a user's apps. (apps.list)
|
293 |
+
*
|
294 |
+
* @param array $optParams Optional parameters.
|
295 |
+
* @return Google_AppList
|
296 |
+
*/
|
297 |
+
public function listApps($optParams = array()) {
|
298 |
+
$params = array();
|
299 |
+
$params = array_merge($params, $optParams);
|
300 |
+
$data = $this->__call('list', array($params));
|
301 |
+
if ($this->useObjects()) {
|
302 |
+
return new Google_AppList($data);
|
303 |
+
} else {
|
304 |
+
return $data;
|
305 |
+
}
|
306 |
+
}
|
307 |
+
/**
|
308 |
+
* Gets a specific app. (apps.get)
|
309 |
+
*
|
310 |
+
* @param string $appId The ID of the app.
|
311 |
+
* @param array $optParams Optional parameters.
|
312 |
+
* @return Google_App
|
313 |
+
*/
|
314 |
+
public function get($appId, $optParams = array()) {
|
315 |
+
$params = array('appId' => $appId);
|
316 |
+
$params = array_merge($params, $optParams);
|
317 |
+
$data = $this->__call('get', array($params));
|
318 |
+
if ($this->useObjects()) {
|
319 |
+
return new Google_App($data);
|
320 |
+
} else {
|
321 |
+
return $data;
|
322 |
+
}
|
323 |
+
}
|
324 |
+
}
|
325 |
+
|
326 |
+
/**
|
327 |
+
* The "parents" collection of methods.
|
328 |
+
* Typical usage is:
|
329 |
+
* <code>
|
330 |
+
* $driveService = new Google_DriveService(...);
|
331 |
+
* $parents = $driveService->parents;
|
332 |
+
* </code>
|
333 |
+
*/
|
334 |
+
class Google_ParentsServiceResource extends Google_ServiceResource {
|
335 |
+
|
336 |
+
|
337 |
+
/**
|
338 |
+
* Adds a parent folder for a file. (parents.insert)
|
339 |
+
*
|
340 |
+
* @param string $fileId The ID of the file.
|
341 |
+
* @param Google_ParentReference $postBody
|
342 |
+
* @param array $optParams Optional parameters.
|
343 |
+
* @return Google_ParentReference
|
344 |
+
*/
|
345 |
+
public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) {
|
346 |
+
$params = array('fileId' => $fileId, 'postBody' => $postBody);
|
347 |
+
$params = array_merge($params, $optParams);
|
348 |
+
$data = $this->__call('insert', array($params));
|
349 |
+
if ($this->useObjects()) {
|
350 |
+
return new Google_ParentReference($data);
|
351 |
+
} else {
|
352 |
+
return $data;
|
353 |
+
}
|
354 |
+
}
|
355 |
+
/**
|
356 |
+
* Gets a specific parent reference. (parents.get)
|
357 |
+
*
|
358 |
+
* @param string $fileId The ID of the file.
|
359 |
+
* @param string $parentId The ID of the parent.
|
360 |
+
* @param array $optParams Optional parameters.
|
361 |
+
* @return Google_ParentReference
|
362 |
+
*/
|
363 |
+
public function get($fileId, $parentId, $optParams = array()) {
|
364 |
+
$params = array('fileId' => $fileId, 'parentId' => $parentId);
|
365 |
+
$params = array_merge($params, $optParams);
|
366 |
+
$data = $this->__call('get', array($params));
|
367 |
+
if ($this->useObjects()) {
|
368 |
+
return new Google_ParentReference($data);
|
369 |
+
} else {
|
370 |
+
return $data;
|
371 |
+
}
|
372 |
+
}
|
373 |
+
/**
|
374 |
+
* Lists a file's parents. (parents.list)
|
375 |
+
*
|
376 |
+
* @param string $fileId The ID of the file.
|
377 |
+
* @param array $optParams Optional parameters.
|
378 |
+
* @return Google_ParentList
|
379 |
+
*/
|
380 |
+
public function listParents($fileId, $optParams = array()) {
|
381 |
+
$params = array('fileId' => $fileId);
|
382 |
+
$params = array_merge($params, $optParams);
|
383 |
+
$data = $this->__call('list', array($params));
|
384 |
+
if ($this->useObjects()) {
|
385 |
+
return new Google_ParentList($data);
|
386 |
+
} else {
|
387 |
+
return $data;
|
388 |
+
}
|
389 |
+
}
|
390 |
+
/**
|
391 |
+
* Removes a parent from a file. (parents.delete)
|
392 |
+
*
|
393 |
+
* @param string $fileId The ID of the file.
|
394 |
+
* @param string $parentId The ID of the parent.
|
395 |
+
* @param array $optParams Optional parameters.
|
396 |
+
*/
|
397 |
+
public function delete($fileId, $parentId, $optParams = array()) {
|
398 |
+
$params = array('fileId' => $fileId, 'parentId' => $parentId);
|
399 |
+
$params = array_merge($params, $optParams);
|
400 |
+
$data = $this->__call('delete', array($params));
|
401 |
+
return $data;
|
402 |
+
}
|
403 |
+
}
|
404 |
+
|
405 |
+
/**
|
406 |
+
* The "revisions" collection of methods.
|
407 |
+
* Typical usage is:
|
408 |
+
* <code>
|
409 |
+
* $driveService = new Google_DriveService(...);
|
410 |
+
* $revisions = $driveService->revisions;
|
411 |
+
* </code>
|
412 |
+
*/
|
413 |
+
class Google_RevisionsServiceResource extends Google_ServiceResource {
|
414 |
+
|
415 |
+
|
416 |
+
/**
|
417 |
+
* Updates a revision. This method supports patch semantics. (revisions.patch)
|
418 |
+
*
|
419 |
+
* @param string $fileId The ID for the file.
|
420 |
+
* @param string $revisionId The ID for the revision.
|
421 |
+
* @param Google_Revision $postBody
|
422 |
+
* @param array $optParams Optional parameters.
|
423 |
+
* @return Google_Revision
|
424 |
+
*/
|
425 |
+
public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
|
426 |
+
$params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
|
427 |
+
$params = array_merge($params, $optParams);
|
428 |
+
$data = $this->__call('patch', array($params));
|
429 |
+
if ($this->useObjects()) {
|
430 |
+
return new Google_Revision($data);
|
431 |
+
} else {
|
432 |
+
return $data;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
/**
|
436 |
+
* Gets a specific revision. (revisions.get)
|
437 |
+
*
|
438 |
+
* @param string $fileId The ID of the file.
|
439 |
+
* @param string $revisionId The ID of the revision.
|
440 |
+
* @param array $optParams Optional parameters.
|
441 |
+
* @return Google_Revision
|
442 |
+
*/
|
443 |
+
public function get($fileId, $revisionId, $optParams = array()) {
|
444 |
+
$params = array('fileId' => $fileId, 'revisionId' => $revisionId);
|
445 |
+
$params = array_merge($params, $optParams);
|
446 |
+
$data = $this->__call('get', array($params));
|
447 |
+
if ($this->useObjects()) {
|
448 |
+
return new Google_Revision($data);
|
449 |
+
} else {
|
450 |
+
return $data;
|
451 |
+
}
|
452 |
+
}
|
453 |
+
/**
|
454 |
+
* Lists a file's revisions. (revisions.list)
|
455 |
+
*
|
456 |
+
* @param string $fileId The ID of the file.
|
457 |
+
* @param array $optParams Optional parameters.
|
458 |
+
* @return Google_RevisionList
|
459 |
+
*/
|
460 |
+
public function listRevisions($fileId, $optParams = array()) {
|
461 |
+
$params = array('fileId' => $fileId);
|
462 |
+
$params = array_merge($params, $optParams);
|
463 |
+
$data = $this->__call('list', array($params));
|
464 |
+
if ($this->useObjects()) {
|
465 |
+
return new Google_RevisionList($data);
|
466 |
+
} else {
|
467 |
+
return $data;
|
468 |
+
}
|
469 |
+
}
|
470 |
+
/**
|
471 |
+
* Updates a revision. (revisions.update)
|
472 |
+
*
|
473 |
+
* @param string $fileId The ID for the file.
|
474 |
+
* @param string $revisionId The ID for the revision.
|
475 |
+
* @param Google_Revision $postBody
|
476 |
+
* @param array $optParams Optional parameters.
|
477 |
+
* @return Google_Revision
|
478 |
+
*/
|
479 |
+
public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
|
480 |
+
$params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
|
481 |
+
$params = array_merge($params, $optParams);
|
482 |
+
$data = $this->__call('update', array($params));
|
483 |
+
if ($this->useObjects()) {
|
484 |
+
return new Google_Revision($data);
|
485 |
+
} else {
|
486 |
+
return $data;
|
487 |
+
}
|
488 |
+
}
|
489 |
+
/**
|
490 |
+
* Removes a revision. (revisions.delete)
|
491 |
+
*
|
492 |
+
* @param string $fileId The ID of the file.
|
493 |
+
* @param string $revisionId The ID of the revision.
|
494 |
+
* @param array $optParams Optional parameters.
|
495 |
+
*/
|
496 |
+
public function delete($fileId, $revisionId, $optParams = array()) {
|
497 |
+
$params = array('fileId' => $fileId, 'revisionId' => $revisionId);
|
498 |
+
$params = array_merge($params, $optParams);
|
499 |
+
$data = $this->__call('delete', array($params));
|
500 |
+
return $data;
|
501 |
+
}
|
502 |
+
}
|
503 |
+
|
504 |
+
/**
|
505 |
+
* The "changes" collection of methods.
|
506 |
+
* Typical usage is:
|
507 |
+
* <code>
|
508 |
+
* $driveService = new Google_DriveService(...);
|
509 |
+
* $changes = $driveService->changes;
|
510 |
+
* </code>
|
511 |
+
*/
|
512 |
+
class Google_ChangesServiceResource extends Google_ServiceResource {
|
513 |
+
|
514 |
+
|
515 |
+
/**
|
516 |
+
* Lists the changes for a user. (changes.list)
|
517 |
+
*
|
518 |
+
* @param array $optParams Optional parameters.
|
519 |
+
*
|
520 |
+
* @opt_param bool includeSubscribed Whether to include subscribed items.
|
521 |
+
* @opt_param string startChangeId Change ID to start listing changes from.
|
522 |
+
* @opt_param bool includeDeleted Whether to include deleted items.
|
523 |
+
* @opt_param int maxResults Maximum number of changes to return.
|
524 |
+
* @opt_param string pageToken Page token for changes.
|
525 |
+
* @return Google_ChangeList
|
526 |
+
*/
|
527 |
+
public function listChanges($optParams = array()) {
|
528 |
+
$params = array();
|
529 |
+
$params = array_merge($params, $optParams);
|
530 |
+
$data = $this->__call('list', array($params));
|
531 |
+
if ($this->useObjects()) {
|
532 |
+
return new Google_ChangeList($data);
|
533 |
+
} else {
|
534 |
+
return $data;
|
535 |
+
}
|
536 |
+
}
|
537 |
+
/**
|
538 |
+
* Gets a specific change. (changes.get)
|
539 |
+
*
|
540 |
+
* @param string $changeId The ID of the change.
|
541 |
+
* @param array $optParams Optional parameters.
|
542 |
+
* @return Google_Change
|
543 |
+
*/
|
544 |
+
public function get($changeId, $optParams = array()) {
|
545 |
+
$params = array('changeId' => $changeId);
|
546 |
+
$params = array_merge($params, $optParams);
|
547 |
+
$data = $this->__call('get', array($params));
|
548 |
+
if ($this->useObjects()) {
|
549 |
+
return new Google_Change($data);
|
550 |
+
} else {
|
551 |
+
return $data;
|
552 |
+
}
|
553 |
+
}
|
554 |
+
}
|
555 |
+
|
556 |
+
/**
|
557 |
+
* The "children" collection of methods.
|
558 |
+
* Typical usage is:
|
559 |
+
* <code>
|
560 |
+
* $driveService = new Google_DriveService(...);
|
561 |
+
* $children = $driveService->children;
|
562 |
+
* </code>
|
563 |
+
*/
|
564 |
+
class Google_ChildrenServiceResource extends Google_ServiceResource {
|
565 |
+
|
566 |
+
|
567 |
+
/**
|
568 |
+
* Inserts a file into a folder. (children.insert)
|
569 |
+
*
|
570 |
+
* @param string $folderId The ID of the folder.
|
571 |
+
* @param Google_ChildReference $postBody
|
572 |
+
* @param array $optParams Optional parameters.
|
573 |
+
* @return Google_ChildReference
|
574 |
+
*/
|
575 |
+
public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
|
576 |
+
$params = array('folderId' => $folderId, 'postBody' => $postBody);
|
577 |
+
$params = array_merge($params, $optParams);
|
578 |
+
$data = $this->__call('insert', array($params));
|
579 |
+
if ($this->useObjects()) {
|
580 |
+
return new Google_ChildReference($data);
|
581 |
+
} else {
|
582 |
+
return $data;
|
583 |
+
}
|
584 |
+
}
|
585 |
+
/**
|
586 |
+
* Gets a specific child reference. (children.get)
|
587 |
+
*
|
588 |
+
* @param string $folderId The ID of the folder.
|
589 |
+
* @param string $childId The ID of the child.
|
590 |
+
* @param array $optParams Optional parameters.
|
591 |
+
* @return Google_ChildReference
|
592 |
+
*/
|
593 |
+
public function get($folderId, $childId, $optParams = array()) {
|
594 |
+
$params = array('folderId' => $folderId, 'childId' => $childId);
|
595 |
+
$params = array_merge($params, $optParams);
|
596 |
+
$data = $this->__call('get', array($params));
|
597 |
+
if ($this->useObjects()) {
|
598 |
+
return new Google_ChildReference($data);
|
599 |
+
} else {
|
600 |
+
return $data;
|
601 |
+
}
|
602 |
+
}
|
603 |
+
/**
|
604 |
+
* Lists a folder's children. (children.list)
|
605 |
+
*
|
606 |
+
* @param string $folderId The ID of the folder.
|
607 |
+
* @param array $optParams Optional parameters.
|
608 |
+
*
|
609 |
+
* @opt_param string q Query string for searching children.
|
610 |
+
* @opt_param string pageToken Page token for children.
|
611 |
+
* @opt_param int maxResults Maximum number of children to return.
|
612 |
+
* @return Google_ChildList
|
613 |
+
*/
|
614 |
+
public function listChildren($folderId, $optParams = array()) {
|
615 |
+
$params = array('folderId' => $folderId);
|
616 |
+
$params = array_merge($params, $optParams);
|
617 |
+
$data = $this->__call('list', array($params));
|
618 |
+
if ($this->useObjects()) {
|
619 |
+
return new Google_ChildList($data);
|
620 |
+
} else {
|
621 |
+
return $data;
|
622 |
+
}
|
623 |
+
}
|
624 |
+
/**
|
625 |
+
* Removes a child from a folder. (children.delete)
|
626 |
+
*
|
627 |
+
* @param string $folderId The ID of the folder.
|
628 |
+
* @param string $childId The ID of the child.
|
629 |
+
* @param array $optParams Optional parameters.
|
630 |
+
*/
|
631 |
+
public function delete($folderId, $childId, $optParams = array()) {
|
632 |
+
$params = array('folderId' => $folderId, 'childId' => $childId);
|
633 |
+
$params = array_merge($params, $optParams);
|
634 |
+
$data = $this->__call('delete', array($params));
|
635 |
+
return $data;
|
636 |
+
}
|
637 |
+
}
|
638 |
+
|
639 |
+
/**
|
640 |
+
* The "permissions" collection of methods.
|
641 |
+
* Typical usage is:
|
642 |
+
* <code>
|
643 |
+
* $driveService = new Google_DriveService(...);
|
644 |
+
* $permissions = $driveService->permissions;
|
645 |
+
* </code>
|
646 |
+
*/
|
647 |
+
class Google_PermissionsServiceResource extends Google_ServiceResource {
|
648 |
+
|
649 |
+
|
650 |
+
/**
|
651 |
+
* Inserts a permission for a file. (permissions.insert)
|
652 |
+
*
|
653 |
+
* @param string $fileId The ID for the file.
|
654 |
+
* @param Google_Permission $postBody
|
655 |
+
* @param array $optParams Optional parameters.
|
656 |
+
*
|
657 |
+
* @opt_param bool sendNotificationEmails Whether to send notification emails.
|
658 |
+
* @return Google_Permission
|
659 |
+
*/
|
660 |
+
public function insert($fileId, Google_Permission $postBody, $optParams = array()) {
|
661 |
+
$params = array('fileId' => $fileId, 'postBody' => $postBody);
|
662 |
+
$params = array_merge($params, $optParams);
|
663 |
+
$data = $this->__call('insert', array($params));
|
664 |
+
if ($this->useObjects()) {
|
665 |
+
return new Google_Permission($data);
|
666 |
+
} else {
|
667 |
+
return $data;
|
668 |
+
}
|
669 |
+
}
|
670 |
+
/**
|
671 |
+
* Gets a permission by ID. (permissions.get)
|
672 |
+
*
|
673 |
+
* @param string $fileId The ID for the file.
|
674 |
+
* @param string $permissionId The ID for the permission.
|
675 |
+
* @param array $optParams Optional parameters.
|
676 |
+
* @return Google_Permission
|
677 |
+
*/
|
678 |
+
public function get($fileId, $permissionId, $optParams = array()) {
|
679 |
+
$params = array('fileId' => $fileId, 'permissionId' => $permissionId);
|
680 |
+
$params = array_merge($params, $optParams);
|
681 |
+
$data = $this->__call('get', array($params));
|
682 |
+
if ($this->useObjects()) {
|
683 |
+
return new Google_Permission($data);
|
684 |
+
} else {
|
685 |
+
return $data;
|
686 |
+
}
|
687 |
+
}
|
688 |
+
/**
|
689 |
+
* Lists a file's permissions. (permissions.list)
|
690 |
+
*
|
691 |
+
* @param string $fileId The ID for the file.
|
692 |
+
* @param array $optParams Optional parameters.
|
693 |
+
* @return Google_PermissionList
|
694 |
+
*/
|
695 |
+
public function listPermissions($fileId, $optParams = array()) {
|
696 |
+
$params = array('fileId' => $fileId);
|
697 |
+
$params = array_merge($params, $optParams);
|
698 |
+
$data = $this->__call('list', array($params));
|
699 |
+
if ($this->useObjects()) {
|
700 |
+
return new Google_PermissionList($data);
|
701 |
+
} else {
|
702 |
+
return $data;
|
703 |
+
}
|
704 |
+
}
|
705 |
+
/**
|
706 |
+
* Updates a permission. (permissions.update)
|
707 |
+
*
|
708 |
+
* @param string $fileId The ID for the file.
|
709 |
+
* @param string $permissionId The ID for the permission.
|
710 |
+
* @param Google_Permission $postBody
|
711 |
+
* @param array $optParams Optional parameters.
|
712 |
+
* @return Google_Permission
|
713 |
+
*/
|
714 |
+
public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
|
715 |
+
$params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
|
716 |
+
$params = array_merge($params, $optParams);
|
717 |
+
$data = $this->__call('update', array($params));
|
718 |
+
if ($this->useObjects()) {
|
719 |
+
return new Google_Permission($data);
|
720 |
+
} else {
|
721 |
+
return $data;
|
722 |
+
}
|
723 |
+
}
|
724 |
+
/**
|
725 |
+
* Updates a permission. This method supports patch semantics. (permissions.patch)
|
726 |
+
*
|
727 |
+
* @param string $fileId The ID for the file.
|
728 |
+
* @param string $permissionId The ID for the permission.
|
729 |
+
* @param Google_Permission $postBody
|
730 |
+
* @param array $optParams Optional parameters.
|
731 |
+
* @return Google_Permission
|
732 |
+
*/
|
733 |
+
public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
|
734 |
+
$params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
|
735 |
+
$params = array_merge($params, $optParams);
|
736 |
+
$data = $this->__call('patch', array($params));
|
737 |
+
if ($this->useObjects()) {
|
738 |
+
return new Google_Permission($data);
|
739 |
+
} else {
|
740 |
+
return $data;
|
741 |
+
}
|
742 |
+
}
|
743 |
+
/**
|
744 |
+
* Deletes a permission from a file. (permissions.delete)
|
745 |
+
*
|
746 |
+
* @param string $fileId The ID for the file.
|
747 |
+
* @param string $permissionId The ID for the permission.
|
748 |
+
* @param array $optParams Optional parameters.
|
749 |
+
*/
|
750 |
+
public function delete($fileId, $permissionId, $optParams = array()) {
|
751 |
+
$params = array('fileId' => $fileId, 'permissionId' => $permissionId);
|
752 |
+
$params = array_merge($params, $optParams);
|
753 |
+
$data = $this->__call('delete', array($params));
|
754 |
+
return $data;
|
755 |
+
}
|
756 |
+
}
|
757 |
+
|
758 |
+
/**
|
759 |
+
* Service definition for Google_Drive (v2).
|
760 |
+
*
|
761 |
+
* <p>
|
762 |
+
* The API to interact with Drive.
|
763 |
+
* </p>
|
764 |
+
*
|
765 |
+
* <p>
|
766 |
+
* For more information about this service, see the
|
767 |
+
* <a href="https://developers.google.com/drive/" target="_blank">API Documentation</a>
|
768 |
+
* </p>
|
769 |
+
*
|
770 |
+
* @author Google, Inc.
|
771 |
+
*/
|
772 |
+
class Google_DriveService extends Google_Service {
|
773 |
+
public $files;
|
774 |
+
public $about;
|
775 |
+
public $apps;
|
776 |
+
public $parents;
|
777 |
+
public $revisions;
|
778 |
+
public $changes;
|
779 |
+
public $children;
|
780 |
+
public $permissions;
|
781 |
+
/**
|
782 |
+
* Constructs the internal representation of the Drive service.
|
783 |
+
*
|
784 |
+
* @param Google_Client $client
|
785 |
+
*/
|
786 |
+
public function __construct(Google_Client $client) {
|
787 |
+
$this->servicePath = 'drive/v2/';
|
788 |
+
$this->version = 'v2';
|
789 |
+
$this->serviceName = 'drive';
|
790 |
+
|
791 |
+
$client->addService($this->serviceName, $this->version);
|
792 |
+
$this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files", "id": "drive.files.insert"}, "untrash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.untrash", "httpMethod": "POST", "path": "files/{fileId}/untrash", "response": {"$ref": "File"}}, "trash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.trash", "httpMethod": "POST", "path": "files/{fileId}/trash", "response": {"$ref": "File"}}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"updateViewedDate": {"default": "false", "type": "boolean", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.get", "httpMethod": "GET", "path": "files/{fileId}", "response": {"$ref": "File"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "FileList"}, "httpMethod": "GET", "path": "files", "id": "drive.files.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files/{fileId}", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files/{fileId}", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "PUT", "path": "files/{fileId}", "id": "drive.files.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "PATCH", "path": "files/{fileId}", "id": "drive.files.patch"}, "touch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.touch", "httpMethod": "POST", "path": "files/{fileId}/touch", "response": {"$ref": "File"}}, "copy": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files/{fileId}/copy", "id": "drive.files.copy"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}", "id": "drive.files.delete", "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
793 |
+
$this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "maxChangeIdCount": {"default": "1", "type": "string", "location": "query", "format": "int64"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "About"}, "httpMethod": "GET", "path": "about", "id": "drive.about.get"}}}', true));
|
794 |
+
$this->apps = new Google_AppsServiceResource($this, $this->serviceName, 'apps', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "path": "apps", "response": {"$ref": "AppList"}, "id": "drive.apps.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "parameters": {"appId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.apps.get", "httpMethod": "GET", "path": "apps/{appId}", "response": {"$ref": "App"}}}}', true));
|
795 |
+
$this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "httpMethod": "POST", "path": "files/{fileId}/parents", "id": "drive.parents.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.get", "httpMethod": "GET", "path": "files/{fileId}/parents/{parentId}", "response": {"$ref": "ParentReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.list", "httpMethod": "GET", "path": "files/{fileId}/parents", "response": {"$ref": "ParentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/parents/{parentId}", "id": "drive.parents.delete", "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
796 |
+
$this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PATCH", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.patch"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.get", "httpMethod": "GET", "path": "files/{fileId}/revisions/{revisionId}", "response": {"$ref": "Revision"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.list", "httpMethod": "GET", "path": "files/{fileId}/revisions", "response": {"$ref": "RevisionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PUT", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.delete", "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
797 |
+
$this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}, "includeDeleted": {"default": "true", "type": "boolean", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ChangeList"}, "httpMethod": "GET", "path": "changes", "id": "drive.changes.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"changeId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.changes.get", "httpMethod": "GET", "path": "changes/{changeId}", "response": {"$ref": "Change"}}}}', true));
|
798 |
+
$this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "httpMethod": "POST", "path": "files/{folderId}/children", "id": "drive.children.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.children.get", "httpMethod": "GET", "path": "files/{folderId}/children/{childId}", "response": {"$ref": "ChildReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "folderId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "id": "drive.children.list", "httpMethod": "GET", "path": "files/{folderId}/children", "response": {"$ref": "ChildList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{folderId}/children/{childId}", "id": "drive.children.delete", "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
799 |
+
$this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"sendNotificationEmails": {"default": "true", "type": "boolean", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "POST", "path": "files/{fileId}/permissions", "id": "drive.permissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.get", "httpMethod": "GET", "path": "files/{fileId}/permissions/{permissionId}", "response": {"$ref": "Permission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.list", "httpMethod": "GET", "path": "files/{fileId}/permissions", "response": {"$ref": "PermissionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PUT", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PATCH", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.delete", "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
800 |
+
|
801 |
+
}
|
802 |
+
}
|
803 |
+
|
804 |
+
class Google_About extends Google_Model {
|
805 |
+
public $kind;
|
806 |
+
protected $__featuresType = 'Google_AboutFeatures';
|
807 |
+
protected $__featuresDataType = 'array';
|
808 |
+
public $features;
|
809 |
+
public $quotaBytesUsed;
|
810 |
+
public $permissionId;
|
811 |
+
protected $__maxUploadSizesType = 'Google_AboutMaxUploadSizes';
|
812 |
+
protected $__maxUploadSizesDataType = 'array';
|
813 |
+
public $maxUploadSizes;
|
814 |
+
public $name;
|
815 |
+
public $remainingChangeIds;
|
816 |
+
protected $__additionalRoleInfoType = 'Google_AboutAdditionalRoleInfo';
|
817 |
+
protected $__additionalRoleInfoDataType = 'array';
|
818 |
+
public $additionalRoleInfo;
|
819 |
+
public $etag;
|
820 |
+
protected $__importFormatsType = 'Google_AboutImportFormats';
|
821 |
+
protected $__importFormatsDataType = 'array';
|
822 |
+
public $importFormats;
|
823 |
+
public $quotaBytesTotal;
|
824 |
+
public $rootFolderId;
|
825 |
+
public $largestChangeId;
|
826 |
+
public $quotaBytesUsedInTrash;
|
827 |
+
protected $__exportFormatsType = 'Google_AboutExportFormats';
|
828 |
+
protected $__exportFormatsDataType = 'array';
|
829 |
+
public $exportFormats;
|
830 |
+
public $domainSharingPolicy;
|
831 |
+
public $selfLink;
|
832 |
+
public $isCurrentAppInstalled;
|
833 |
+
public function setKind($kind) {
|
834 |
+
$this->kind = $kind;
|
835 |
+
}
|
836 |
+
public function getKind() {
|
837 |
+
return $this->kind;
|
838 |
+
}
|
839 |
+
public function setFeatures(/* array(Google_AboutFeatures) */ $features) {
|
840 |
+
$this->assertIsArray($features, 'Google_AboutFeatures', __METHOD__);
|
841 |
+
$this->features = $features;
|
842 |
+
}
|
843 |
+
public function getFeatures() {
|
844 |
+
return $this->features;
|
845 |
+
}
|
846 |
+
public function setQuotaBytesUsed($quotaBytesUsed) {
|
847 |
+
$this->quotaBytesUsed = $quotaBytesUsed;
|
848 |
+
}
|
849 |
+
public function getQuotaBytesUsed() {
|
850 |
+
return $this->quotaBytesUsed;
|
851 |
+
}
|
852 |
+
public function setPermissionId($permissionId) {
|
853 |
+
$this->permissionId = $permissionId;
|
854 |
+
}
|
855 |
+
public function getPermissionId() {
|
856 |
+
return $this->permissionId;
|
857 |
+
}
|
858 |
+
public function setMaxUploadSizes(/* array(Google_AboutMaxUploadSizes) */ $maxUploadSizes) {
|
859 |
+
$this->assertIsArray($maxUploadSizes, 'Google_AboutMaxUploadSizes', __METHOD__);
|
860 |
+
$this->maxUploadSizes = $maxUploadSizes;
|
861 |
+
}
|
862 |
+
public function getMaxUploadSizes() {
|
863 |
+
return $this->maxUploadSizes;
|
864 |
+
}
|
865 |
+
public function setName($name) {
|
866 |
+
$this->name = $name;
|
867 |
+
}
|
868 |
+
public function getName() {
|
869 |
+
return $this->name;
|
870 |
+
}
|
871 |
+
public function setRemainingChangeIds($remainingChangeIds) {
|
872 |
+
$this->remainingChangeIds = $remainingChangeIds;
|
873 |
+
}
|
874 |
+
public function getRemainingChangeIds() {
|
875 |
+
return $this->remainingChangeIds;
|
876 |
+
}
|
877 |
+
public function setAdditionalRoleInfo(/* array(Google_AboutAdditionalRoleInfo) */ $additionalRoleInfo) {
|
878 |
+
$this->assertIsArray($additionalRoleInfo, 'Google_AboutAdditionalRoleInfo', __METHOD__);
|
879 |
+
$this->additionalRoleInfo = $additionalRoleInfo;
|
880 |
+
}
|
881 |
+
public function getAdditionalRoleInfo() {
|
882 |
+
return $this->additionalRoleInfo;
|
883 |
+
}
|
884 |
+
public function setEtag($etag) {
|
885 |
+
$this->etag = $etag;
|
886 |
+
}
|
887 |
+
public function getEtag() {
|
888 |
+
return $this->etag;
|
889 |
+
}
|
890 |
+
public function setImportFormats(/* array(Google_AboutImportFormats) */ $importFormats) {
|
891 |
+
$this->assertIsArray($importFormats, 'Google_AboutImportFormats', __METHOD__);
|
892 |
+
$this->importFormats = $importFormats;
|
893 |
+
}
|
894 |
+
public function getImportFormats() {
|
895 |
+
return $this->importFormats;
|
896 |
+
}
|
897 |
+
public function setQuotaBytesTotal($quotaBytesTotal) {
|
898 |
+
$this->quotaBytesTotal = $quotaBytesTotal;
|
899 |
+
}
|
900 |
+
public function getQuotaBytesTotal() {
|
901 |
+
return $this->quotaBytesTotal;
|
902 |
+
}
|
903 |
+
public function setRootFolderId($rootFolderId) {
|
904 |
+
$this->rootFolderId = $rootFolderId;
|
905 |
+
}
|
906 |
+
public function getRootFolderId() {
|
907 |
+
return $this->rootFolderId;
|
908 |
+
}
|
909 |
+
public function setLargestChangeId($largestChangeId) {
|
910 |
+
$this->largestChangeId = $largestChangeId;
|
911 |
+
}
|
912 |
+
public function getLargestChangeId() {
|
913 |
+
return $this->largestChangeId;
|
914 |
+
}
|
915 |
+
public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) {
|
916 |
+
$this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
|
917 |
+
}
|
918 |
+
public function getQuotaBytesUsedInTrash() {
|
919 |
+
return $this->quotaBytesUsedInTrash;
|
920 |
+
}
|
921 |
+
public function setExportFormats(/* array(Google_AboutExportFormats) */ $exportFormats) {
|
922 |
+
$this->assertIsArray($exportFormats, 'Google_AboutExportFormats', __METHOD__);
|
923 |
+
$this->exportFormats = $exportFormats;
|
924 |
+
}
|
925 |
+
public function getExportFormats() {
|
926 |
+
return $this->exportFormats;
|
927 |
+
}
|
928 |
+
public function setDomainSharingPolicy($domainSharingPolicy) {
|
929 |
+
$this->domainSharingPolicy = $domainSharingPolicy;
|
930 |
+
}
|
931 |
+
public function getDomainSharingPolicy() {
|
932 |
+
return $this->domainSharingPolicy;
|
933 |
+
}
|
934 |
+
public function setSelfLink($selfLink) {
|
935 |
+
$this->selfLink = $selfLink;
|
936 |
+
}
|
937 |
+
public function getSelfLink() {
|
938 |
+
return $this->selfLink;
|
939 |
+
}
|
940 |
+
public function setIsCurrentAppInstalled($isCurrentAppInstalled) {
|
941 |
+
$this->isCurrentAppInstalled = $isCurrentAppInstalled;
|
942 |
+
}
|
943 |
+
public function getIsCurrentAppInstalled() {
|
944 |
+
return $this->isCurrentAppInstalled;
|
945 |
+
}
|
946 |
+
}
|
947 |
+
|
948 |
+
class Google_AboutAdditionalRoleInfo extends Google_Model {
|
949 |
+
protected $__roleSetsType = 'Google_AboutAdditionalRoleInfoRoleSets';
|
950 |
+
protected $__roleSetsDataType = 'array';
|
951 |
+
public $roleSets;
|
952 |
+
public $type;
|
953 |
+
public function setRoleSets(/* array(Google_AboutAdditionalRoleInfoRoleSets) */ $roleSets) {
|
954 |
+
$this->assertIsArray($roleSets, 'Google_AboutAdditionalRoleInfoRoleSets', __METHOD__);
|
955 |
+
$this->roleSets = $roleSets;
|
956 |
+
}
|
957 |
+
public function getRoleSets() {
|
958 |
+
return $this->roleSets;
|
959 |
+
}
|
960 |
+
public function setType($type) {
|
961 |
+
$this->type = $type;
|
962 |
+
}
|
963 |
+
public function getType() {
|
964 |
+
return $this->type;
|
965 |
+
}
|
966 |
+
}
|
967 |
+
|
968 |
+
class Google_AboutAdditionalRoleInfoRoleSets extends Google_Model {
|
969 |
+
public $primaryRole;
|
970 |
+
public $additionalRoles;
|
971 |
+
public function setPrimaryRole($primaryRole) {
|
972 |
+
$this->primaryRole = $primaryRole;
|
973 |
+
}
|
974 |
+
public function getPrimaryRole() {
|
975 |
+
return $this->primaryRole;
|
976 |
+
}
|
977 |
+
public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
|
978 |
+
$this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
|
979 |
+
$this->additionalRoles = $additionalRoles;
|
980 |
+
}
|
981 |
+
public function getAdditionalRoles() {
|
982 |
+
return $this->additionalRoles;
|
983 |
+
}
|
984 |
+
}
|
985 |
+
|
986 |
+
class Google_AboutExportFormats extends Google_Model {
|
987 |
+
public $source;
|
988 |
+
public $targets;
|
989 |
+
public function setSource($source) {
|
990 |
+
$this->source = $source;
|
991 |
+
}
|
992 |
+
public function getSource() {
|
993 |
+
return $this->source;
|
994 |
+
}
|
995 |
+
public function setTargets(/* array(Google_string) */ $targets) {
|
996 |
+
$this->assertIsArray($targets, 'Google_string', __METHOD__);
|
997 |
+
$this->targets = $targets;
|
998 |
+
}
|
999 |
+
public function getTargets() {
|
1000 |
+
return $this->targets;
|
1001 |
+
}
|
1002 |
+
}
|
1003 |
+
|
1004 |
+
class Google_AboutFeatures extends Google_Model {
|
1005 |
+
public $featureName;
|
1006 |
+
public $featureRate;
|
1007 |
+
public function setFeatureName($featureName) {
|
1008 |
+
$this->featureName = $featureName;
|
1009 |
+
}
|
1010 |
+
public function getFeatureName() {
|
1011 |
+
return $this->featureName;
|
1012 |
+
}
|
1013 |
+
public function setFeatureRate($featureRate) {
|
1014 |
+
$this->featureRate = $featureRate;
|
1015 |
+
}
|
1016 |
+
public function getFeatureRate() {
|
1017 |
+
return $this->featureRate;
|
1018 |
+
}
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
class Google_AboutImportFormats extends Google_Model {
|
1022 |
+
public $source;
|
1023 |
+
public $targets;
|
1024 |
+
public function setSource($source) {
|
1025 |
+
$this->source = $source;
|
1026 |
+
}
|
1027 |
+
public function getSource() {
|
1028 |
+
return $this->source;
|
1029 |
+
}
|
1030 |
+
public function setTargets(/* array(Google_string) */ $targets) {
|
1031 |
+
$this->assertIsArray($targets, 'Google_string', __METHOD__);
|
1032 |
+
$this->targets = $targets;
|
1033 |
+
}
|
1034 |
+
public function getTargets() {
|
1035 |
+
return $this->targets;
|
1036 |
+
}
|
1037 |
+
}
|
1038 |
+
|
1039 |
+
class Google_AboutMaxUploadSizes extends Google_Model {
|
1040 |
+
public $type;
|
1041 |
+
public $size;
|
1042 |
+
public function setType($type) {
|
1043 |
+
$this->type = $type;
|
1044 |
+
}
|
1045 |
+
public function getType() {
|
1046 |
+
return $this->type;
|
1047 |
+
}
|
1048 |
+
public function setSize($size) {
|
1049 |
+
$this->size = $size;
|
1050 |
+
}
|
1051 |
+
public function getSize() {
|
1052 |
+
return $this->size;
|
1053 |
+
}
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
class Google_App extends Google_Model {
|
1057 |
+
public $kind;
|
1058 |
+
public $primaryFileExtensions;
|
1059 |
+
public $useByDefault;
|
1060 |
+
public $name;
|
1061 |
+
protected $__iconsType = 'Google_AppIcons';
|
1062 |
+
protected $__iconsDataType = 'array';
|
1063 |
+
public $icons;
|
1064 |
+
public $secondaryFileExtensions;
|
1065 |
+
public $installed;
|
1066 |
+
public $productUrl;
|
1067 |
+
public $secondaryMimeTypes;
|
1068 |
+
public $authorized;
|
1069 |
+
public $supportsCreate;
|
1070 |
+
public $supportsImport;
|
1071 |
+
public $primaryMimeTypes;
|
1072 |
+
public $id;
|
1073 |
+
public $objectType;
|
1074 |
+
public function setKind($kind) {
|
1075 |
+
$this->kind = $kind;
|
1076 |
+
}
|
1077 |
+
public function getKind() {
|
1078 |
+
return $this->kind;
|
1079 |
+
}
|
1080 |
+
public function setPrimaryFileExtensions(/* array(Google_string) */ $primaryFileExtensions) {
|
1081 |
+
$this->assertIsArray($primaryFileExtensions, 'Google_string', __METHOD__);
|
1082 |
+
$this->primaryFileExtensions = $primaryFileExtensions;
|
1083 |
+
}
|
1084 |
+
public function getPrimaryFileExtensions() {
|
1085 |
+
return $this->primaryFileExtensions;
|
1086 |
+
}
|
1087 |
+
public function setUseByDefault($useByDefault) {
|
1088 |
+
$this->useByDefault = $useByDefault;
|
1089 |
+
}
|
1090 |
+
public function getUseByDefault() {
|
1091 |
+
return $this->useByDefault;
|
1092 |
+
}
|
1093 |
+
public function setName($name) {
|
1094 |
+
$this->name = $name;
|
1095 |
+
}
|
1096 |
+
public function getName() {
|
1097 |
+
return $this->name;
|
1098 |
+
}
|
1099 |
+
public function setIcons(/* array(Google_AppIcons) */ $icons) {
|
1100 |
+
$this->assertIsArray($icons, 'Google_AppIcons', __METHOD__);
|
1101 |
+
$this->icons = $icons;
|
1102 |
+
}
|
1103 |
+
public function getIcons() {
|
1104 |
+
return $this->icons;
|
1105 |
+
}
|
1106 |
+
public function setSecondaryFileExtensions(/* array(Google_string) */ $secondaryFileExtensions) {
|
1107 |
+
$this->assertIsArray($secondaryFileExtensions, 'Google_string', __METHOD__);
|
1108 |
+
$this->secondaryFileExtensions = $secondaryFileExtensions;
|
1109 |
+
}
|
1110 |
+
public function getSecondaryFileExtensions() {
|
1111 |
+
return $this->secondaryFileExtensions;
|
1112 |
+
}
|
1113 |
+
public function setInstalled($installed) {
|
1114 |
+
$this->installed = $installed;
|
1115 |
+
}
|
1116 |
+
public function getInstalled() {
|
1117 |
+
return $this->installed;
|
1118 |
+
}
|
1119 |
+
public function setProductUrl($productUrl) {
|
1120 |
+
$this->productUrl = $productUrl;
|
1121 |
+
}
|
1122 |
+
public function getProductUrl() {
|
1123 |
+
return $this->productUrl;
|
1124 |
+
}
|
1125 |
+
public function setSecondaryMimeTypes(/* array(Google_string) */ $secondaryMimeTypes) {
|
1126 |
+
$this->assertIsArray($secondaryMimeTypes, 'Google_string', __METHOD__);
|
1127 |
+
$this->secondaryMimeTypes = $secondaryMimeTypes;
|
1128 |
+
}
|
1129 |
+
public function getSecondaryMimeTypes() {
|
1130 |
+
return $this->secondaryMimeTypes;
|
1131 |
+
}
|
1132 |
+
public function setAuthorized($authorized) {
|
1133 |
+
$this->authorized = $authorized;
|
1134 |
+
}
|
1135 |
+
public function getAuthorized() {
|
1136 |
+
return $this->authorized;
|
1137 |
+
}
|
1138 |
+
public function setSupportsCreate($supportsCreate) {
|
1139 |
+
$this->supportsCreate = $supportsCreate;
|
1140 |
+
}
|
1141 |
+
public function getSupportsCreate() {
|
1142 |
+
return $this->supportsCreate;
|
1143 |
+
}
|
1144 |
+
public function setSupportsImport($supportsImport) {
|
1145 |
+
$this->supportsImport = $supportsImport;
|
1146 |
+
}
|
1147 |
+
public function getSupportsImport() {
|
1148 |
+
return $this->supportsImport;
|
1149 |
+
}
|
1150 |
+
public function setPrimaryMimeTypes(/* array(Google_string) */ $primaryMimeTypes) {
|
1151 |
+
$this->assertIsArray($primaryMimeTypes, 'Google_string', __METHOD__);
|
1152 |
+
$this->primaryMimeTypes = $primaryMimeTypes;
|
1153 |
+
}
|
1154 |
+
public function getPrimaryMimeTypes() {
|
1155 |
+
return $this->primaryMimeTypes;
|
1156 |
+
}
|
1157 |
+
public function setId($id) {
|
1158 |
+
$this->id = $id;
|
1159 |
+
}
|
1160 |
+
public function getId() {
|
1161 |
+
return $this->id;
|
1162 |
+
}
|
1163 |
+
public function setObjectType($objectType) {
|
1164 |
+
$this->objectType = $objectType;
|
1165 |
+
}
|
1166 |
+
public function getObjectType() {
|
1167 |
+
return $this->objectType;
|
1168 |
+
}
|
1169 |
+
}
|
1170 |
+
|
1171 |
+
class Google_AppIcons extends Google_Model {
|
1172 |
+
public $category;
|
1173 |
+
public $iconUrl;
|
1174 |
+
public $size;
|
1175 |
+
public function setCategory($category) {
|
1176 |
+
$this->category = $category;
|
1177 |
+
}
|
1178 |
+
public function getCategory() {
|
1179 |
+
return $this->category;
|
1180 |
+
}
|
1181 |
+
public function setIconUrl($iconUrl) {
|
1182 |
+
$this->iconUrl = $iconUrl;
|
1183 |
+
}
|
1184 |
+
public function getIconUrl() {
|
1185 |
+
return $this->iconUrl;
|
1186 |
+
}
|
1187 |
+
public function setSize($size) {
|
1188 |
+
$this->size = $size;
|
1189 |
+
}
|
1190 |
+
public function getSize() {
|
1191 |
+
return $this->size;
|
1192 |
+
}
|
1193 |
+
}
|
1194 |
+
|
1195 |
+
class Google_AppList extends Google_Model {
|
1196 |
+
protected $__itemsType = 'Google_App';
|
1197 |
+
protected $__itemsDataType = 'array';
|
1198 |
+
public $items;
|
1199 |
+
public $kind;
|
1200 |
+
public $etag;
|
1201 |
+
public $selfLink;
|
1202 |
+
public function setItems(/* array(Google_App) */ $items) {
|
1203 |
+
$this->assertIsArray($items, 'Google_App', __METHOD__);
|
1204 |
+
$this->items = $items;
|
1205 |
+
}
|
1206 |
+
public function getItems() {
|
1207 |
+
return $this->items;
|
1208 |
+
}
|
1209 |
+
public function setKind($kind) {
|
1210 |
+
$this->kind = $kind;
|
1211 |
+
}
|
1212 |
+
public function getKind() {
|
1213 |
+
return $this->kind;
|
1214 |
+
}
|
1215 |
+
public function setEtag($etag) {
|
1216 |
+
$this->etag = $etag;
|
1217 |
+
}
|
1218 |
+
public function getEtag() {
|
1219 |
+
return $this->etag;
|
1220 |
+
}
|
1221 |
+
public function setSelfLink($selfLink) {
|
1222 |
+
$this->selfLink = $selfLink;
|
1223 |
+
}
|
1224 |
+
public function getSelfLink() {
|
1225 |
+
return $this->selfLink;
|
1226 |
+
}
|
1227 |
+
}
|
1228 |
+
|
1229 |
+
class Google_Change extends Google_Model {
|
1230 |
+
public $kind;
|
1231 |
+
public $deleted;
|
1232 |
+
protected $__fileType = 'Google_DriveFile';
|
1233 |
+
protected $__fileDataType = '';
|
1234 |
+
public $file;
|
1235 |
+
public $id;
|
1236 |
+
public $selfLink;
|
1237 |
+
public $fileId;
|
1238 |
+
public function setKind($kind) {
|
1239 |
+
$this->kind = $kind;
|
1240 |
+
}
|
1241 |
+
public function getKind() {
|
1242 |
+
return $this->kind;
|
1243 |
+
}
|
1244 |
+
public function setDeleted($deleted) {
|
1245 |
+
$this->deleted = $deleted;
|
1246 |
+
}
|
1247 |
+
public function getDeleted() {
|
1248 |
+
return $this->deleted;
|
1249 |
+
}
|
1250 |
+
public function setFile(Google_DriveFile $file) {
|
1251 |
+
$this->file = $file;
|
1252 |
+
}
|
1253 |
+
public function getFile() {
|
1254 |
+
return $this->file;
|
1255 |
+
}
|
1256 |
+
public function setId($id) {
|
1257 |
+
$this->id = $id;
|
1258 |
+
}
|
1259 |
+
public function getId() {
|
1260 |
+
return $this->id;
|
1261 |
+
}
|
1262 |
+
public function setSelfLink($selfLink) {
|
1263 |
+
$this->selfLink = $selfLink;
|
1264 |
+
}
|
1265 |
+
public function getSelfLink() {
|
1266 |
+
return $this->selfLink;
|
1267 |
+
}
|
1268 |
+
public function setFileId($fileId) {
|
1269 |
+
$this->fileId = $fileId;
|
1270 |
+
}
|
1271 |
+
public function getFileId() {
|
1272 |
+
return $this->fileId;
|
1273 |
+
}
|
1274 |
+
}
|
1275 |
+
|
1276 |
+
class Google_ChangeList extends Google_Model {
|
1277 |
+
public $nextPageToken;
|
1278 |
+
public $kind;
|
1279 |
+
protected $__itemsType = 'Google_Change';
|
1280 |
+
protected $__itemsDataType = 'array';
|
1281 |
+
public $items;
|
1282 |
+
public $nextLink;
|
1283 |
+
public $etag;
|
1284 |
+
public $largestChangeId;
|
1285 |
+
public $selfLink;
|
1286 |
+
public function setNextPageToken($nextPageToken) {
|
1287 |
+
$this->nextPageToken = $nextPageToken;
|
1288 |
+
}
|
1289 |
+
public function getNextPageToken() {
|
1290 |
+
return $this->nextPageToken;
|
1291 |
+
}
|
1292 |
+
public function setKind($kind) {
|
1293 |
+
$this->kind = $kind;
|
1294 |
+
}
|
1295 |
+
public function getKind() {
|
1296 |
+
return $this->kind;
|
1297 |
+
}
|
1298 |
+
public function setItems(/* array(Google_Change) */ $items) {
|
1299 |
+
$this->assertIsArray($items, 'Google_Change', __METHOD__);
|
1300 |
+
$this->items = $items;
|
1301 |
+
}
|
1302 |
+
public function getItems() {
|
1303 |
+
return $this->items;
|
1304 |
+
}
|
1305 |
+
public function setNextLink($nextLink) {
|
1306 |
+
$this->nextLink = $nextLink;
|
1307 |
+
}
|
1308 |
+
public function getNextLink() {
|
1309 |
+
return $this->nextLink;
|
1310 |
+
}
|
1311 |
+
public function setEtag($etag) {
|
1312 |
+
$this->etag = $etag;
|
1313 |
+
}
|
1314 |
+
public function getEtag() {
|
1315 |
+
return $this->etag;
|
1316 |
+
}
|
1317 |
+
public function setLargestChangeId($largestChangeId) {
|
1318 |
+
$this->largestChangeId = $largestChangeId;
|
1319 |
+
}
|
1320 |
+
public function getLargestChangeId() {
|
1321 |
+
return $this->largestChangeId;
|
1322 |
+
}
|
1323 |
+
public function setSelfLink($selfLink) {
|
1324 |
+
$this->selfLink = $selfLink;
|
1325 |
+
}
|
1326 |
+
public function getSelfLink() {
|
1327 |
+
return $this->selfLink;
|
1328 |
+
}
|
1329 |
+
}
|
1330 |
+
|
1331 |
+
class Google_ChildList extends Google_Model {
|
1332 |
+
public $nextPageToken;
|
1333 |
+
public $kind;
|
1334 |
+
protected $__itemsType = 'Google_ChildReference';
|
1335 |
+
protected $__itemsDataType = 'array';
|
1336 |
+
public $items;
|
1337 |
+
public $nextLink;
|
1338 |
+
public $etag;
|
1339 |
+
public $selfLink;
|
1340 |
+
public function setNextPageToken($nextPageToken) {
|
1341 |
+
$this->nextPageToken = $nextPageToken;
|
1342 |
+
}
|
1343 |
+
public function getNextPageToken() {
|
1344 |
+
return $this->nextPageToken;
|
1345 |
+
}
|
1346 |
+
public function setKind($kind) {
|
1347 |
+
$this->kind = $kind;
|
1348 |
+
}
|
1349 |
+
public function getKind() {
|
1350 |
+
return $this->kind;
|
1351 |
+
}
|
1352 |
+
public function setItems(/* array(Google_ChildReference) */ $items) {
|
1353 |
+
$this->assertIsArray($items, 'Google_ChildReference', __METHOD__);
|
1354 |
+
$this->items = $items;
|
1355 |
+
}
|
1356 |
+
public function getItems() {
|
1357 |
+
return $this->items;
|
1358 |
+
}
|
1359 |
+
public function setNextLink($nextLink) {
|
1360 |
+
$this->nextLink = $nextLink;
|
1361 |
+
}
|
1362 |
+
public function getNextLink() {
|
1363 |
+
return $this->nextLink;
|
1364 |
+
}
|
1365 |
+
public function setEtag($etag) {
|
1366 |
+
$this->etag = $etag;
|
1367 |
+
}
|
1368 |
+
public function getEtag() {
|
1369 |
+
return $this->etag;
|
1370 |
+
}
|
1371 |
+
public function setSelfLink($selfLink) {
|
1372 |
+
$this->selfLink = $selfLink;
|
1373 |
+
}
|
1374 |
+
public function getSelfLink() {
|
1375 |
+
return $this->selfLink;
|
1376 |
+
}
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
class Google_ChildReference extends Google_Model {
|
1380 |
+
public $kind;
|
1381 |
+
public $childLink;
|
1382 |
+
public $id;
|
1383 |
+
public $selfLink;
|
1384 |
+
public function setKind($kind) {
|
1385 |
+
$this->kind = $kind;
|
1386 |
+
}
|
1387 |
+
public function getKind() {
|
1388 |
+
return $this->kind;
|
1389 |
+
}
|
1390 |
+
public function setChildLink($childLink) {
|
1391 |
+
$this->childLink = $childLink;
|
1392 |
+
}
|
1393 |
+
public function getChildLink() {
|
1394 |
+
return $this->childLink;
|
1395 |
+
}
|
1396 |
+
public function setId($id) {
|
1397 |
+
$this->id = $id;
|
1398 |
+
}
|
1399 |
+
public function getId() {
|
1400 |
+
return $this->id;
|
1401 |
+
}
|
1402 |
+
public function setSelfLink($selfLink) {
|
1403 |
+
$this->selfLink = $selfLink;
|
1404 |
+
}
|
1405 |
+
public function getSelfLink() {
|
1406 |
+
return $this->selfLink;
|
1407 |
+
}
|
1408 |
+
}
|
1409 |
+
|
1410 |
+
class Google_DriveFile extends Google_Model {
|
1411 |
+
public $mimeType;
|
1412 |
+
public $thumbnailLink;
|
1413 |
+
protected $__labelsType = 'Google_DriveFileLabels';
|
1414 |
+
protected $__labelsDataType = '';
|
1415 |
+
public $labels;
|
1416 |
+
protected $__indexableTextType = 'Google_DriveFileIndexableText';
|
1417 |
+
protected $__indexableTextDataType = '';
|
1418 |
+
public $indexableText;
|
1419 |
+
public $explicitlyTrashed;
|
1420 |
+
public $etag;
|
1421 |
+
public $lastModifyingUserName;
|
1422 |
+
public $writersCanShare;
|
1423 |
+
public $id;
|
1424 |
+
public $title;
|
1425 |
+
public $ownerNames;
|
1426 |
+
public $sharedWithMeDate;
|
1427 |
+
public $lastViewedByMeDate;
|
1428 |
+
protected $__parentsType = 'Google_ParentReference';
|
1429 |
+
protected $__parentsDataType = 'array';
|
1430 |
+
public $parents;
|
1431 |
+
public $exportLinks;
|
1432 |
+
public $originalFilename;
|
1433 |
+
public $description;
|
1434 |
+
public $webContentLink;
|
1435 |
+
public $editable;
|
1436 |
+
public $kind;
|
1437 |
+
public $quotaBytesUsed;
|
1438 |
+
public $fileSize;
|
1439 |
+
public $createdDate;
|
1440 |
+
public $md5Checksum;
|
1441 |
+
protected $__imageMediaMetadataType = 'Google_DriveFileImageMediaMetadata';
|
1442 |
+
protected $__imageMediaMetadataDataType = '';
|
1443 |
+
public $imageMediaMetadata;
|
1444 |
+
public $embedLink;
|
1445 |
+
public $alternateLink;
|
1446 |
+
public $modifiedByMeDate;
|
1447 |
+
public $downloadUrl;
|
1448 |
+
protected $__userPermissionType = 'Google_Permission';
|
1449 |
+
protected $__userPermissionDataType = '';
|
1450 |
+
public $userPermission;
|
1451 |
+
public $fileExtension;
|
1452 |
+
public $selfLink;
|
1453 |
+
public $modifiedDate;
|
1454 |
+
public function setMimeType($mimeType) {
|
1455 |
+
$this->mimeType = $mimeType;
|
1456 |
+
}
|
1457 |
+
public function getMimeType() {
|
1458 |
+
return $this->mimeType;
|
1459 |
+
}
|
1460 |
+
public function setThumbnailLink($thumbnailLink) {
|
1461 |
+
$this->thumbnailLink = $thumbnailLink;
|
1462 |
+
}
|
1463 |
+
public function getThumbnailLink() {
|
1464 |
+
return $this->thumbnailLink;
|
1465 |
+
}
|
1466 |
+
public function setLabels(Google_DriveFileLabels $labels) {
|
1467 |
+
$this->labels = $labels;
|
1468 |
+
}
|
1469 |
+
public function getLabels() {
|
1470 |
+
return $this->labels;
|
1471 |
+
}
|
1472 |
+
public function setIndexableText(Google_DriveFileIndexableText $indexableText) {
|
1473 |
+
$this->indexableText = $indexableText;
|
1474 |
+
}
|
1475 |
+
public function getIndexableText() {
|
1476 |
+
return $this->indexableText;
|
1477 |
+
}
|
1478 |
+
public function setExplicitlyTrashed($explicitlyTrashed) {
|
1479 |
+
$this->explicitlyTrashed = $explicitlyTrashed;
|
1480 |
+
}
|
1481 |
+
public function getExplicitlyTrashed() {
|
1482 |
+
return $this->explicitlyTrashed;
|
1483 |
+
}
|
1484 |
+
public function setEtag($etag) {
|
1485 |
+
$this->etag = $etag;
|
1486 |
+
}
|
1487 |
+
public function getEtag() {
|
1488 |
+
return $this->etag;
|
1489 |
+
}
|
1490 |
+
public function setLastModifyingUserName($lastModifyingUserName) {
|
1491 |
+
$this->lastModifyingUserName = $lastModifyingUserName;
|
1492 |
+
}
|
1493 |
+
public function getLastModifyingUserName() {
|
1494 |
+
return $this->lastModifyingUserName;
|
1495 |
+
}
|
1496 |
+
public function setWritersCanShare($writersCanShare) {
|
1497 |
+
$this->writersCanShare = $writersCanShare;
|
1498 |
+
}
|
1499 |
+
public function getWritersCanShare() {
|
1500 |
+
return $this->writersCanShare;
|
1501 |
+
}
|
1502 |
+
public function setId($id) {
|
1503 |
+
$this->id = $id;
|
1504 |
+
}
|
1505 |
+
public function getId() {
|
1506 |
+
return $this->id;
|
1507 |
+
}
|
1508 |
+
public function setTitle($title) {
|
1509 |
+
$this->title = $title;
|
1510 |
+
}
|
1511 |
+
public function getTitle() {
|
1512 |
+
return $this->title;
|
1513 |
+
}
|
1514 |
+
public function setOwnerNames(/* array(Google_string) */ $ownerNames) {
|
1515 |
+
$this->assertIsArray($ownerNames, 'Google_string', __METHOD__);
|
1516 |
+
$this->ownerNames = $ownerNames;
|
1517 |
+
}
|
1518 |
+
public function getOwnerNames() {
|
1519 |
+
return $this->ownerNames;
|
1520 |
+
}
|
1521 |
+
public function setSharedWithMeDate($sharedWithMeDate) {
|
1522 |
+
$this->sharedWithMeDate = $sharedWithMeDate;
|
1523 |
+
}
|
1524 |
+
public function getSharedWithMeDate() {
|
1525 |
+
return $this->sharedWithMeDate;
|
1526 |
+
}
|
1527 |
+
public function setLastViewedByMeDate($lastViewedByMeDate) {
|
1528 |
+
$this->lastViewedByMeDate = $lastViewedByMeDate;
|
1529 |
+
}
|
1530 |
+
public function getLastViewedByMeDate() {
|
1531 |
+
return $this->lastViewedByMeDate;
|
1532 |
+
}
|
1533 |
+
public function setParents(/* array(Google_ParentReference) */ $parents) {
|
1534 |
+
$this->assertIsArray($parents, 'Google_ParentReference', __METHOD__);
|
1535 |
+
$this->parents = $parents;
|
1536 |
+
}
|
1537 |
+
public function getParents() {
|
1538 |
+
return $this->parents;
|
1539 |
+
}
|
1540 |
+
public function setExportLinks($exportLinks) {
|
1541 |
+
$this->exportLinks = $exportLinks;
|
1542 |
+
}
|
1543 |
+
public function getExportLinks() {
|
1544 |
+
return $this->exportLinks;
|
1545 |
+
}
|
1546 |
+
public function setOriginalFilename($originalFilename) {
|
1547 |
+
$this->originalFilename = $originalFilename;
|
1548 |
+
}
|
1549 |
+
public function getOriginalFilename() {
|
1550 |
+
return $this->originalFilename;
|
1551 |
+
}
|
1552 |
+
public function setDescription($description) {
|
1553 |
+
$this->description = $description;
|
1554 |
+
}
|
1555 |
+
public function getDescription() {
|
1556 |
+
return $this->description;
|
1557 |
+
}
|
1558 |
+
public function setWebContentLink($webContentLink) {
|
1559 |
+
$this->webContentLink = $webContentLink;
|
1560 |
+
}
|
1561 |
+
public function getWebContentLink() {
|
1562 |
+
return $this->webContentLink;
|
1563 |
+
}
|
1564 |
+
public function setEditable($editable) {
|
1565 |
+
$this->editable = $editable;
|
1566 |
+
}
|
1567 |
+
public function getEditable() {
|
1568 |
+
return $this->editable;
|
1569 |
+
}
|
1570 |
+
public function setKind($kind) {
|
1571 |
+
$this->kind = $kind;
|
1572 |
+
}
|
1573 |
+
public function getKind() {
|
1574 |
+
return $this->kind;
|
1575 |
+
}
|
1576 |
+
public function setQuotaBytesUsed($quotaBytesUsed) {
|
1577 |
+
$this->quotaBytesUsed = $quotaBytesUsed;
|
1578 |
+
}
|
1579 |
+
public function getQuotaBytesUsed() {
|
1580 |
+
return $this->quotaBytesUsed;
|
1581 |
+
}
|
1582 |
+
public function setFileSize($fileSize) {
|
1583 |
+
$this->fileSize = $fileSize;
|
1584 |
+
}
|
1585 |
+
public function getFileSize() {
|
1586 |
+
return $this->fileSize;
|
1587 |
+
}
|
1588 |
+
public function setCreatedDate($createdDate) {
|
1589 |
+
$this->createdDate = $createdDate;
|
1590 |
+
}
|
1591 |
+
public function getCreatedDate() {
|
1592 |
+
return $this->createdDate;
|
1593 |
+
}
|
1594 |
+
public function setMd5Checksum($md5Checksum) {
|
1595 |
+
$this->md5Checksum = $md5Checksum;
|
1596 |
+
}
|
1597 |
+
public function getMd5Checksum() {
|
1598 |
+
return $this->md5Checksum;
|
1599 |
+
}
|
1600 |
+
public function setImageMediaMetadata(Google_DriveFileImageMediaMetadata $imageMediaMetadata) {
|
1601 |
+
$this->imageMediaMetadata = $imageMediaMetadata;
|
1602 |
+
}
|
1603 |
+
public function getImageMediaMetadata() {
|
1604 |
+
return $this->imageMediaMetadata;
|
1605 |
+
}
|
1606 |
+
public function setEmbedLink($embedLink) {
|
1607 |
+
$this->embedLink = $embedLink;
|
1608 |
+
}
|
1609 |
+
public function getEmbedLink() {
|
1610 |
+
return $this->embedLink;
|
1611 |
+
}
|
1612 |
+
public function setAlternateLink($alternateLink) {
|
1613 |
+
$this->alternateLink = $alternateLink;
|
1614 |
+
}
|
1615 |
+
public function getAlternateLink() {
|
1616 |
+
return $this->alternateLink;
|
1617 |
+
}
|
1618 |
+
public function setModifiedByMeDate($modifiedByMeDate) {
|
1619 |
+
$this->modifiedByMeDate = $modifiedByMeDate;
|
1620 |
+
}
|
1621 |
+
public function getModifiedByMeDate() {
|
1622 |
+
return $this->modifiedByMeDate;
|
1623 |
+
}
|
1624 |
+
public function setDownloadUrl($downloadUrl) {
|
1625 |
+
$this->downloadUrl = $downloadUrl;
|
1626 |
+
}
|
1627 |
+
public function getDownloadUrl() {
|
1628 |
+
return $this->downloadUrl;
|
1629 |
+
}
|
1630 |
+
public function setUserPermission(Google_Permission $userPermission) {
|
1631 |
+
$this->userPermission = $userPermission;
|
1632 |
+
}
|
1633 |
+
public function getUserPermission() {
|
1634 |
+
return $this->userPermission;
|
1635 |
+
}
|
1636 |
+
public function setFileExtension($fileExtension) {
|
1637 |
+
$this->fileExtension = $fileExtension;
|
1638 |
+
}
|
1639 |
+
public function getFileExtension() {
|
1640 |
+
return $this->fileExtension;
|
1641 |
+
}
|
1642 |
+
public function setSelfLink($selfLink) {
|
1643 |
+
$this->selfLink = $selfLink;
|
1644 |
+
}
|
1645 |
+
public function getSelfLink() {
|
1646 |
+
return $this->selfLink;
|
1647 |
+
}
|
1648 |
+
public function setModifiedDate($modifiedDate) {
|
1649 |
+
$this->modifiedDate = $modifiedDate;
|
1650 |
+
}
|
1651 |
+
public function getModifiedDate() {
|
1652 |
+
return $this->modifiedDate;
|
1653 |
+
}
|
1654 |
+
}
|
1655 |
+
|
1656 |
+
class Google_DriveFileImageMediaMetadata extends Google_Model {
|
1657 |
+
public $width;
|
1658 |
+
public $rotation;
|
1659 |
+
protected $__locationType = 'Google_DriveFileImageMediaMetadataLocation';
|
1660 |
+
protected $__locationDataType = '';
|
1661 |
+
public $location;
|
1662 |
+
public $height;
|
1663 |
+
public function setWidth($width) {
|
1664 |
+
$this->width = $width;
|
1665 |
+
}
|
1666 |
+
public function getWidth() {
|
1667 |
+
return $this->width;
|
1668 |
+
}
|
1669 |
+
public function setRotation($rotation) {
|
1670 |
+
$this->rotation = $rotation;
|
1671 |
+
}
|
1672 |
+
public function getRotation() {
|
1673 |
+
return $this->rotation;
|
1674 |
+
}
|
1675 |
+
public function setLocation(Google_DriveFileImageMediaMetadataLocation $location) {
|
1676 |
+
$this->location = $location;
|
1677 |
+
}
|
1678 |
+
public function getLocation() {
|
1679 |
+
return $this->location;
|
1680 |
+
}
|
1681 |
+
public function setHeight($height) {
|
1682 |
+
$this->height = $height;
|
1683 |
+
}
|
1684 |
+
public function getHeight() {
|
1685 |
+
return $this->height;
|
1686 |
+
}
|
1687 |
+
}
|
1688 |
+
|
1689 |
+
class Google_DriveFileImageMediaMetadataLocation extends Google_Model {
|
1690 |
+
public $latitude;
|
1691 |
+
public $altitude;
|
1692 |
+
public $longitude;
|
1693 |
+
public function setLatitude($latitude) {
|
1694 |
+
$this->latitude = $latitude;
|
1695 |
+
}
|
1696 |
+
public function getLatitude() {
|
1697 |
+
return $this->latitude;
|
1698 |
+
}
|
1699 |
+
public function setAltitude($altitude) {
|
1700 |
+
$this->altitude = $altitude;
|
1701 |
+
}
|
1702 |
+
public function getAltitude() {
|
1703 |
+
return $this->altitude;
|
1704 |
+
}
|
1705 |
+
public function setLongitude($longitude) {
|
1706 |
+
$this->longitude = $longitude;
|
1707 |
+
}
|
1708 |
+
public function getLongitude() {
|
1709 |
+
return $this->longitude;
|
1710 |
+
}
|
1711 |
+
}
|
1712 |
+
|
1713 |
+
class Google_DriveFileIndexableText extends Google_Model {
|
1714 |
+
public $text;
|
1715 |
+
public function setText($text) {
|
1716 |
+
$this->text = $text;
|
1717 |
+
}
|
1718 |
+
public function getText() {
|
1719 |
+
return $this->text;
|
1720 |
+
}
|
1721 |
+
}
|
1722 |
+
|
1723 |
+
class Google_DriveFileLabels extends Google_Model {
|
1724 |
+
public $restricted;
|
1725 |
+
public $hidden;
|
1726 |
+
public $viewed;
|
1727 |
+
public $starred;
|
1728 |
+
public $trashed;
|
1729 |
+
public function setRestricted($restricted) {
|
1730 |
+
$this->restricted = $restricted;
|
1731 |
+
}
|
1732 |
+
public function getRestricted() {
|
1733 |
+
return $this->restricted;
|
1734 |
+
}
|
1735 |
+
public function setHidden($hidden) {
|
1736 |
+
$this->hidden = $hidden;
|
1737 |
+
}
|
1738 |
+
public function getHidden() {
|
1739 |
+
return $this->hidden;
|
1740 |
+
}
|
1741 |
+
public function setViewed($viewed) {
|
1742 |
+
$this->viewed = $viewed;
|
1743 |
+
}
|
1744 |
+
public function getViewed() {
|
1745 |
+
return $this->viewed;
|
1746 |
+
}
|
1747 |
+
public function setStarred($starred) {
|
1748 |
+
$this->starred = $starred;
|
1749 |
+
}
|
1750 |
+
public function getStarred() {
|
1751 |
+
return $this->starred;
|
1752 |
+
}
|
1753 |
+
public function setTrashed($trashed) {
|
1754 |
+
$this->trashed = $trashed;
|
1755 |
+
}
|
1756 |
+
public function getTrashed() {
|
1757 |
+
return $this->trashed;
|
1758 |
+
}
|
1759 |
+
}
|
1760 |
+
|
1761 |
+
class Google_FileList extends Google_Model {
|
1762 |
+
public $nextPageToken;
|
1763 |
+
public $kind;
|
1764 |
+
protected $__itemsType = 'Google_DriveFile';
|
1765 |
+
protected $__itemsDataType = 'array';
|
1766 |
+
public $items;
|
1767 |
+
public $nextLink;
|
1768 |
+
public $etag;
|
1769 |
+
public $selfLink;
|
1770 |
+
public function setNextPageToken($nextPageToken) {
|
1771 |
+
$this->nextPageToken = $nextPageToken;
|
1772 |
+
}
|
1773 |
+
public function getNextPageToken() {
|
1774 |
+
return $this->nextPageToken;
|
1775 |
+
}
|
1776 |
+
public function setKind($kind) {
|
1777 |
+
$this->kind = $kind;
|
1778 |
+
}
|
1779 |
+
public function getKind() {
|
1780 |
+
return $this->kind;
|
1781 |
+
}
|
1782 |
+
public function setItems(/* array(Google_DriveFile) */ $items) {
|
1783 |
+
$this->assertIsArray($items, 'Google_DriveFile', __METHOD__);
|
1784 |
+
$this->items = $items;
|
1785 |
+
}
|
1786 |
+
public function getItems() {
|
1787 |
+
return $this->items;
|
1788 |
+
}
|
1789 |
+
public function setNextLink($nextLink) {
|
1790 |
+
$this->nextLink = $nextLink;
|
1791 |
+
}
|
1792 |
+
public function getNextLink() {
|
1793 |
+
return $this->nextLink;
|
1794 |
+
}
|
1795 |
+
public function setEtag($etag) {
|
1796 |
+
$this->etag = $etag;
|
1797 |
+
}
|
1798 |
+
public function getEtag() {
|
1799 |
+
return $this->etag;
|
1800 |
+
}
|
1801 |
+
public function setSelfLink($selfLink) {
|
1802 |
+
$this->selfLink = $selfLink;
|
1803 |
+
}
|
1804 |
+
public function getSelfLink() {
|
1805 |
+
return $this->selfLink;
|
1806 |
+
}
|
1807 |
+
}
|
1808 |
+
|
1809 |
+
class Google_ParentList extends Google_Model {
|
1810 |
+
protected $__itemsType = 'Google_ParentReference';
|
1811 |
+
protected $__itemsDataType = 'array';
|
1812 |
+
public $items;
|
1813 |
+
public $kind;
|
1814 |
+
public $etag;
|
1815 |
+
public $selfLink;
|
1816 |
+
public function setItems(/* array(Google_ParentReference) */ $items) {
|
1817 |
+
$this->assertIsArray($items, 'Google_ParentReference', __METHOD__);
|
1818 |
+
$this->items = $items;
|
1819 |
+
}
|
1820 |
+
public function getItems() {
|
1821 |
+
return $this->items;
|
1822 |
+
}
|
1823 |
+
public function setKind($kind) {
|
1824 |
+
$this->kind = $kind;
|
1825 |
+
}
|
1826 |
+
public function getKind() {
|
1827 |
+
return $this->kind;
|
1828 |
+
}
|
1829 |
+
public function setEtag($etag) {
|
1830 |
+
$this->etag = $etag;
|
1831 |
+
}
|
1832 |
+
public function getEtag() {
|
1833 |
+
return $this->etag;
|
1834 |
+
}
|
1835 |
+
public function setSelfLink($selfLink) {
|
1836 |
+
$this->selfLink = $selfLink;
|
1837 |
+
}
|
1838 |
+
public function getSelfLink() {
|
1839 |
+
return $this->selfLink;
|
1840 |
+
}
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
class Google_ParentReference extends Google_Model {
|
1844 |
+
public $selfLink;
|
1845 |
+
public $kind;
|
1846 |
+
public $id;
|
1847 |
+
public $isRoot;
|
1848 |
+
public $parentLink;
|
1849 |
+
public function setSelfLink($selfLink) {
|
1850 |
+
$this->selfLink = $selfLink;
|
1851 |
+
}
|
1852 |
+
public function getSelfLink() {
|
1853 |
+
return $this->selfLink;
|
1854 |
+
}
|
1855 |
+
public function setKind($kind) {
|
1856 |
+
$this->kind = $kind;
|
1857 |
+
}
|
1858 |
+
public function getKind() {
|
1859 |
+
return $this->kind;
|
1860 |
+
}
|
1861 |
+
public function setId($id) {
|
1862 |
+
$this->id = $id;
|
1863 |
+
}
|
1864 |
+
public function getId() {
|
1865 |
+
return $this->id;
|
1866 |
+
}
|
1867 |
+
public function setIsRoot($isRoot) {
|
1868 |
+
$this->isRoot = $isRoot;
|
1869 |
+
}
|
1870 |
+
public function getIsRoot() {
|
1871 |
+
return $this->isRoot;
|
1872 |
+
}
|
1873 |
+
public function setParentLink($parentLink) {
|
1874 |
+
$this->parentLink = $parentLink;
|
1875 |
+
}
|
1876 |
+
public function getParentLink() {
|
1877 |
+
return $this->parentLink;
|
1878 |
+
}
|
1879 |
+
}
|
1880 |
+
|
1881 |
+
class Google_Permission extends Google_Model {
|
1882 |
+
public $withLink;
|
1883 |
+
public $kind;
|
1884 |
+
public $name;
|
1885 |
+
public $value;
|
1886 |
+
public $id;
|
1887 |
+
public $authKey;
|
1888 |
+
public $etag;
|
1889 |
+
public $role;
|
1890 |
+
public $photoLink;
|
1891 |
+
public $type;
|
1892 |
+
public $additionalRoles;
|
1893 |
+
public $selfLink;
|
1894 |
+
public function setWithLink($withLink) {
|
1895 |
+
$this->withLink = $withLink;
|
1896 |
+
}
|
1897 |
+
public function getWithLink() {
|
1898 |
+
return $this->withLink;
|
1899 |
+
}
|
1900 |
+
public function setKind($kind) {
|
1901 |
+
$this->kind = $kind;
|
1902 |
+
}
|
1903 |
+
public function getKind() {
|
1904 |
+
return $this->kind;
|
1905 |
+
}
|
1906 |
+
public function setName($name) {
|
1907 |
+
$this->name = $name;
|
1908 |
+
}
|
1909 |
+
public function getName() {
|
1910 |
+
return $this->name;
|
1911 |
+
}
|
1912 |
+
public function setValue($value) {
|
1913 |
+
$this->value = $value;
|
1914 |
+
}
|
1915 |
+
public function getValue() {
|
1916 |
+
return $this->value;
|
1917 |
+
}
|
1918 |
+
public function setId($id) {
|
1919 |
+
$this->id = $id;
|
1920 |
+
}
|
1921 |
+
public function getId() {
|
1922 |
+
return $this->id;
|
1923 |
+
}
|
1924 |
+
public function setAuthKey($authKey) {
|
1925 |
+
$this->authKey = $authKey;
|
1926 |
+
}
|
1927 |
+
public function getAuthKey() {
|
1928 |
+
return $this->authKey;
|
1929 |
+
}
|
1930 |
+
public function setEtag($etag) {
|
1931 |
+
$this->etag = $etag;
|
1932 |
+
}
|
1933 |
+
public function getEtag() {
|
1934 |
+
return $this->etag;
|
1935 |
+
}
|
1936 |
+
public function setRole($role) {
|
1937 |
+
$this->role = $role;
|
1938 |
+
}
|
1939 |
+
public function getRole() {
|
1940 |
+
return $this->role;
|
1941 |
+
}
|
1942 |
+
public function setPhotoLink($photoLink) {
|
1943 |
+
$this->photoLink = $photoLink;
|
1944 |
+
}
|
1945 |
+
public function getPhotoLink() {
|
1946 |
+
return $this->photoLink;
|
1947 |
+
}
|
1948 |
+
public function setType($type) {
|
1949 |
+
$this->type = $type;
|
1950 |
+
}
|
1951 |
+
public function getType() {
|
1952 |
+
return $this->type;
|
1953 |
+
}
|
1954 |
+
public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
|
1955 |
+
$this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
|
1956 |
+
$this->additionalRoles = $additionalRoles;
|
1957 |
+
}
|
1958 |
+
public function getAdditionalRoles() {
|
1959 |
+
return $this->additionalRoles;
|
1960 |
+
}
|
1961 |
+
public function setSelfLink($selfLink) {
|
1962 |
+
$this->selfLink = $selfLink;
|
1963 |
+
}
|
1964 |
+
public function getSelfLink() {
|
1965 |
+
return $this->selfLink;
|
1966 |
+
}
|
1967 |
+
}
|
1968 |
+
|
1969 |
+
class Google_PermissionList extends Google_Model {
|
1970 |
+
protected $__itemsType = 'Google_Permission';
|
1971 |
+
protected $__itemsDataType = 'array';
|
1972 |
+
public $items;
|
1973 |
+
public $kind;
|
1974 |
+
public $etag;
|
1975 |
+
public $selfLink;
|
1976 |
+
public function setItems(/* array(Google_Permission) */ $items) {
|
1977 |
+
$this->assertIsArray($items, 'Google_Permission', __METHOD__);
|
1978 |
+
$this->items = $items;
|
1979 |
+
}
|
1980 |
+
public function getItems() {
|
1981 |
+
return $this->items;
|
1982 |
+
}
|
1983 |
+
public function setKind($kind) {
|
1984 |
+
$this->kind = $kind;
|
1985 |
+
}
|
1986 |
+
public function getKind() {
|
1987 |
+
return $this->kind;
|
1988 |
+
}
|
1989 |
+
public function setEtag($etag) {
|
1990 |
+
$this->etag = $etag;
|
1991 |
+
}
|
1992 |
+
public function getEtag() {
|
1993 |
+
return $this->etag;
|
1994 |
+
}
|
1995 |
+
public function setSelfLink($selfLink) {
|
1996 |
+
$this->selfLink = $selfLink;
|
1997 |
+
}
|
1998 |
+
public function getSelfLink() {
|
1999 |
+
return $this->selfLink;
|
2000 |
+
}
|
2001 |
+
}
|
2002 |
+
|
2003 |
+
class Google_Revision extends Google_Model {
|
2004 |
+
public $mimeType;
|
2005 |
+
public $pinned;
|
2006 |
+
public $kind;
|
2007 |
+
public $publishedLink;
|
2008 |
+
public $publishedOutsideDomain;
|
2009 |
+
public $publishAuto;
|
2010 |
+
public $published;
|
2011 |
+
public $downloadUrl;
|
2012 |
+
public $selfLink;
|
2013 |
+
public $etag;
|
2014 |
+
public $fileSize;
|
2015 |
+
public $exportLinks;
|
2016 |
+
public $lastModifyingUserName;
|
2017 |
+
public $originalFilename;
|
2018 |
+
public $id;
|
2019 |
+
public $md5Checksum;
|
2020 |
+
public $modifiedDate;
|
2021 |
+
public function setMimeType($mimeType) {
|
2022 |
+
$this->mimeType = $mimeType;
|
2023 |
+
}
|
2024 |
+
public function getMimeType() {
|
2025 |
+
return $this->mimeType;
|
2026 |
+
}
|
2027 |
+
public function setPinned($pinned) {
|
2028 |
+
$this->pinned = $pinned;
|
2029 |
+
}
|
2030 |
+
public function getPinned() {
|
2031 |
+
return $this->pinned;
|
2032 |
+
}
|
2033 |
+
public function setKind($kind) {
|
2034 |
+
$this->kind = $kind;
|
2035 |
+
}
|
2036 |
+
public function getKind() {
|
2037 |
+
return $this->kind;
|
2038 |
+
}
|
2039 |
+
public function setPublishedLink($publishedLink) {
|
2040 |
+
$this->publishedLink = $publishedLink;
|
2041 |
+
}
|
2042 |
+
public function getPublishedLink() {
|
2043 |
+
return $this->publishedLink;
|
2044 |
+
}
|
2045 |
+
public function setPublishedOutsideDomain($publishedOutsideDomain) {
|
2046 |
+
$this->publishedOutsideDomain = $publishedOutsideDomain;
|
2047 |
+
}
|
2048 |
+
public function getPublishedOutsideDomain() {
|
2049 |
+
return $this->publishedOutsideDomain;
|
2050 |
+
}
|
2051 |
+
public function setPublishAuto($publishAuto) {
|
2052 |
+
$this->publishAuto = $publishAuto;
|
2053 |
+
}
|
2054 |
+
public function getPublishAuto() {
|
2055 |
+
return $this->publishAuto;
|
2056 |
+
}
|
2057 |
+
public function setPublished($published) {
|
2058 |
+
$this->published = $published;
|
2059 |
+
}
|
2060 |
+
public function getPublished() {
|
2061 |
+
return $this->published;
|
2062 |
+
}
|
2063 |
+
public function setDownloadUrl($downloadUrl) {
|
2064 |
+
$this->downloadUrl = $downloadUrl;
|
2065 |
+
}
|
2066 |
+
public function getDownloadUrl() {
|
2067 |
+
return $this->downloadUrl;
|
2068 |
+
}
|
2069 |
+
public function setSelfLink($selfLink) {
|
2070 |
+
$this->selfLink = $selfLink;
|
2071 |
+
}
|
2072 |
+
public function getSelfLink() {
|
2073 |
+
return $this->selfLink;
|
2074 |
+
}
|
2075 |
+
public function setEtag($etag) {
|
2076 |
+
$this->etag = $etag;
|
2077 |
+
}
|
2078 |
+
public function getEtag() {
|
2079 |
+
return $this->etag;
|
2080 |
+
}
|
2081 |
+
public function setFileSize($fileSize) {
|
2082 |
+
$this->fileSize = $fileSize;
|
2083 |
+
}
|
2084 |
+
public function getFileSize() {
|
2085 |
+
return $this->fileSize;
|
2086 |
+
}
|
2087 |
+
public function setExportLinks($exportLinks) {
|
2088 |
+
$this->exportLinks = $exportLinks;
|
2089 |
+
}
|
2090 |
+
public function getExportLinks() {
|
2091 |
+
return $this->exportLinks;
|
2092 |
+
}
|
2093 |
+
public function setLastModifyingUserName($lastModifyingUserName) {
|
2094 |
+
$this->lastModifyingUserName = $lastModifyingUserName;
|
2095 |
+
}
|
2096 |
+
public function getLastModifyingUserName() {
|
2097 |
+
return $this->lastModifyingUserName;
|
2098 |
+
}
|
2099 |
+
public function setOriginalFilename($originalFilename) {
|
2100 |
+
$this->originalFilename = $originalFilename;
|
2101 |
+
}
|
2102 |
+
public function getOriginalFilename() {
|
2103 |
+
return $this->originalFilename;
|
2104 |
+
}
|
2105 |
+
public function setId($id) {
|
2106 |
+
$this->id = $id;
|
2107 |
+
}
|
2108 |
+
public function getId() {
|
2109 |
+
return $this->id;
|
2110 |
+
}
|
2111 |
+
public function setMd5Checksum($md5Checksum) {
|
2112 |
+
$this->md5Checksum = $md5Checksum;
|
2113 |
+
}
|
2114 |
+
public function getMd5Checksum() {
|
2115 |
+
return $this->md5Checksum;
|
2116 |
+
}
|
2117 |
+
public function setModifiedDate($modifiedDate) {
|
2118 |
+
$this->modifiedDate = $modifiedDate;
|
2119 |
+
}
|
2120 |
+
public function getModifiedDate() {
|
2121 |
+
return $this->modifiedDate;
|
2122 |
+
}
|
2123 |
+
}
|
2124 |
+
|
2125 |
+
class Google_RevisionList extends Google_Model {
|
2126 |
+
protected $__itemsType = 'Google_Revision';
|
2127 |
+
protected $__itemsDataType = 'array';
|
2128 |
+
public $items;
|
2129 |
+
public $kind;
|
2130 |
+
public $etag;
|
2131 |
+
public $selfLink;
|
2132 |
+
public function setItems(/* array(Google_Revision) */ $items) {
|
2133 |
+
$this->assertIsArray($items, 'Google_Revision', __METHOD__);
|
2134 |
+
$this->items = $items;
|
2135 |
+
}
|
2136 |
+
public function getItems() {
|
2137 |
+
return $this->items;
|
2138 |
+
}
|
2139 |
+
public function setKind($kind) {
|
2140 |
+
$this->kind = $kind;
|
2141 |
+
}
|
2142 |
+
public function getKind() {
|
2143 |
+
return $this->kind;
|
2144 |
+
}
|
2145 |
+
public function setEtag($etag) {
|
2146 |
+
$this->etag = $etag;
|
2147 |
+
}
|
2148 |
+
public function getEtag() {
|
2149 |
+
return $this->etag;
|
2150 |
+
}
|
2151 |
+
public function setSelfLink($selfLink) {
|
2152 |
+
$this->selfLink = $selfLink;
|
2153 |
+
}
|
2154 |
+
public function getSelfLink() {
|
2155 |
+
return $this->selfLink;
|
2156 |
+
}
|
2157 |
+
}
|
lib/SocialLogin/contrib/Google_FreebaseService.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "text" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $freebaseService = new Google_FreebaseService(...);
|
22 |
+
* $text = $freebaseService->text;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_TextServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Returns blob attached to node at specified id as HTML (text.get)
|
30 |
+
*
|
31 |
+
* @param string $id The id of the item that you want data about
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
*
|
34 |
+
* @opt_param string maxlength The max number of characters to return. Valid only for 'plain' format.
|
35 |
+
* @opt_param string format Sanitizing transformation.
|
36 |
+
* @return Google_ContentserviceGet
|
37 |
+
*/
|
38 |
+
public function get($id, $optParams = array()) {
|
39 |
+
$params = array('id' => $id);
|
40 |
+
$params = array_merge($params, $optParams);
|
41 |
+
$data = $this->__call('get', array($params));
|
42 |
+
if ($this->useObjects()) {
|
43 |
+
return new Google_ContentserviceGet($data);
|
44 |
+
} else {
|
45 |
+
return $data;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Service definition for Google_Freebase (v1).
|
52 |
+
*
|
53 |
+
* <p>
|
54 |
+
* Lets you access the Freebase repository of open data.
|
55 |
+
* </p>
|
56 |
+
*
|
57 |
+
* <p>
|
58 |
+
* For more information about this service, see the
|
59 |
+
* <a href="http://wiki.freebase.com/wiki/API" target="_blank">API Documentation</a>
|
60 |
+
* </p>
|
61 |
+
*
|
62 |
+
* @author Google, Inc.
|
63 |
+
*/
|
64 |
+
class Google_FreebaseService extends Google_Service {
|
65 |
+
public $text;
|
66 |
+
/**
|
67 |
+
* Constructs the internal representation of the Freebase service.
|
68 |
+
*
|
69 |
+
* @param Google_Client $client
|
70 |
+
*/
|
71 |
+
public function __construct(Google_Client $client) {
|
72 |
+
$this->servicePath = 'freebase/v1/';
|
73 |
+
$this->version = 'v1';
|
74 |
+
$this->serviceName = 'freebase';
|
75 |
+
|
76 |
+
$client->addService($this->serviceName, $this->version);
|
77 |
+
$this->text = new Google_TextServiceResource($this, $this->serviceName, 'text', json_decode('{"methods": {"get": {"httpMethod": "GET", "response": {"$ref": "ContentserviceGet"}, "id": "freebase.text.get", "parameters": {"maxlength": {"type": "integer", "location": "query", "format": "uint32"}, "id": {"repeated": true, "required": true, "type": "string", "location": "path"}, "format": {"default": "plain", "enum": ["html", "plain", "raw"], "type": "string", "location": "query"}}, "path": "text{/id*}"}}}', true));
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
class Google_ContentserviceGet extends Google_Model {
|
82 |
+
public $result;
|
83 |
+
public function setResult($result) {
|
84 |
+
$this->result = $result;
|
85 |
+
}
|
86 |
+
public function getResult() {
|
87 |
+
return $this->result;
|
88 |
+
}
|
89 |
+
}
|
lib/SocialLogin/contrib/Google_FusiontablesService.php
ADDED
@@ -0,0 +1,1326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "column" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $fusiontablesService = new Google_FusiontablesService(...);
|
22 |
+
* $column = $fusiontablesService->column;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_ColumnServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Adds a new column to the table. (column.insert)
|
30 |
+
*
|
31 |
+
* @param string $tableId Table for which a new column is being added.
|
32 |
+
* @param Google_Column $postBody
|
33 |
+
* @param array $optParams Optional parameters.
|
34 |
+
* @return Google_Column
|
35 |
+
*/
|
36 |
+
public function insert($tableId, Google_Column $postBody, $optParams = array()) {
|
37 |
+
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
38 |
+
$params = array_merge($params, $optParams);
|
39 |
+
$data = $this->__call('insert', array($params));
|
40 |
+
if ($this->useObjects()) {
|
41 |
+
return new Google_Column($data);
|
42 |
+
} else {
|
43 |
+
return $data;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
/**
|
47 |
+
* Retrieves a specific column by its id. (column.get)
|
48 |
+
*
|
49 |
+
* @param string $tableId Table to which the column belongs.
|
50 |
+
* @param string $columnId Name or identifier for the column that is being requested.
|
51 |
+
* @param array $optParams Optional parameters.
|
52 |
+
* @return Google_Column
|
53 |
+
*/
|
54 |
+
public function get($tableId, $columnId, $optParams = array()) {
|
55 |
+
$params = array('tableId' => $tableId, 'columnId' => $columnId);
|
56 |
+
$params = array_merge($params, $optParams);
|
57 |
+
$data = $this->__call('get', array($params));
|
58 |
+
if ($this->useObjects()) {
|
59 |
+
return new Google_Column($data);
|
60 |
+
} else {
|
61 |
+
return $data;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
/**
|
65 |
+
* Retrieves a list of columns. (column.list)
|
66 |
+
*
|
67 |
+
* @param string $tableId Table whose columns are being listed.
|
68 |
+
* @param array $optParams Optional parameters.
|
69 |
+
*
|
70 |
+
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
71 |
+
* @opt_param string maxResults Maximum number of columns to return. Optional. Default is 5.
|
72 |
+
* @return Google_ColumnList
|
73 |
+
*/
|
74 |
+
public function listColumn($tableId, $optParams = array()) {
|
75 |
+
$params = array('tableId' => $tableId);
|
76 |
+
$params = array_merge($params, $optParams);
|
77 |
+
$data = $this->__call('list', array($params));
|
78 |
+
if ($this->useObjects()) {
|
79 |
+
return new Google_ColumnList($data);
|
80 |
+
} else {
|
81 |
+
return $data;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
/**
|
85 |
+
* Updates the name or type of an existing column. (column.update)
|
86 |
+
*
|
87 |
+
* @param string $tableId Table for which the column is being updated.
|
88 |
+
* @param string $columnId Name or identifier for the column that is being updated.
|
89 |
+
* @param Google_Column $postBody
|
90 |
+
* @param array $optParams Optional parameters.
|
91 |
+
* @return Google_Column
|
92 |
+
*/
|
93 |
+
public function update($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
|
94 |
+
$params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
|
95 |
+
$params = array_merge($params, $optParams);
|
96 |
+
$data = $this->__call('update', array($params));
|
97 |
+
if ($this->useObjects()) {
|
98 |
+
return new Google_Column($data);
|
99 |
+
} else {
|
100 |
+
return $data;
|
101 |
+
}
|
102 |
+
}
|
103 |
+
/**
|
104 |
+
* Updates the name or type of an existing column. This method supports patch semantics.
|
105 |
+
* (column.patch)
|
106 |
+
*
|
107 |
+
* @param string $tableId Table for which the column is being updated.
|
108 |
+
* @param string $columnId Name or identifier for the column that is being updated.
|
109 |
+
* @param Google_Column $postBody
|
110 |
+
* @param array $optParams Optional parameters.
|
111 |
+
* @return Google_Column
|
112 |
+
*/
|
113 |
+
public function patch($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
|
114 |
+
$params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
|
115 |
+
$params = array_merge($params, $optParams);
|
116 |
+
$data = $this->__call('patch', array($params));
|
117 |
+
if ($this->useObjects()) {
|
118 |
+
return new Google_Column($data);
|
119 |
+
} else {
|
120 |
+
return $data;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
/**
|
124 |
+
* Deletes the column. (column.delete)
|
125 |
+
*
|
126 |
+
* @param string $tableId Table from which the column is being deleted.
|
127 |
+
* @param string $columnId Name or identifier for the column being deleted.
|
128 |
+
* @param array $optParams Optional parameters.
|
129 |
+
*/
|
130 |
+
public function delete($tableId, $columnId, $optParams = array()) {
|
131 |
+
$params = array('tableId' => $tableId, 'columnId' => $columnId);
|
132 |
+
$params = array_merge($params, $optParams);
|
133 |
+
$data = $this->__call('delete', array($params));
|
134 |
+
return $data;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* The "query" collection of methods.
|
140 |
+
* Typical usage is:
|
141 |
+
* <code>
|
142 |
+
* $fusiontablesService = new Google_FusiontablesService(...);
|
143 |
+
* $query = $fusiontablesService->query;
|
144 |
+
* </code>
|
145 |
+
*/
|
146 |
+
class Google_QueryServiceResource extends Google_ServiceResource {
|
147 |
+
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet)
|
151 |
+
*
|
152 |
+
* @param string $sql An SQL SELECT/SHOW/DESCRIBE statement.
|
153 |
+
* @param array $optParams Optional parameters.
|
154 |
+
*
|
155 |
+
* @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
|
156 |
+
* @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
|
157 |
+
* @return Google_Sqlresponse
|
158 |
+
*/
|
159 |
+
public function sqlGet($sql, $optParams = array()) {
|
160 |
+
$params = array('sql' => $sql);
|
161 |
+
$params = array_merge($params, $optParams);
|
162 |
+
$data = $this->__call('sqlGet', array($params));
|
163 |
+
if ($this->useObjects()) {
|
164 |
+
return new Google_Sqlresponse($data);
|
165 |
+
} else {
|
166 |
+
return $data;
|
167 |
+
}
|
168 |
+
}
|
169 |
+
/**
|
170 |
+
* Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql)
|
171 |
+
*
|
172 |
+
* @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE statement.
|
173 |
+
* @param array $optParams Optional parameters.
|
174 |
+
*
|
175 |
+
* @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
|
176 |
+
* @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
|
177 |
+
* @return Google_Sqlresponse
|
178 |
+
*/
|
179 |
+
public function sql($sql, $optParams = array()) {
|
180 |
+
$params = array('sql' => $sql);
|
181 |
+
$params = array_merge($params, $optParams);
|
182 |
+
$data = $this->__call('sql', array($params));
|
183 |
+
if ($this->useObjects()) {
|
184 |
+
return new Google_Sqlresponse($data);
|
185 |
+
} else {
|
186 |
+
return $data;
|
187 |
+
}
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* The "style" collection of methods.
|
193 |
+
* Typical usage is:
|
194 |
+
* <code>
|
195 |
+
* $fusiontablesService = new Google_FusiontablesService(...);
|
196 |
+
* $style = $fusiontablesService->style;
|
197 |
+
* </code>
|
198 |
+
*/
|
199 |
+
class Google_StyleServiceResource extends Google_ServiceResource {
|
200 |
+
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Adds a new style for the table. (style.insert)
|
204 |
+
*
|
205 |
+
* @param string $tableId Table for which a new style is being added
|
206 |
+
* @param Google_StyleSetting $postBody
|
207 |
+
* @param array $optParams Optional parameters.
|
208 |
+
* @return Google_StyleSetting
|
209 |
+
*/
|
210 |
+
public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) {
|
211 |
+
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
212 |
+
$params = array_merge($params, $optParams);
|
213 |
+
$data = $this->__call('insert', array($params));
|
214 |
+
if ($this->useObjects()) {
|
215 |
+
return new Google_StyleSetting($data);
|
216 |
+
} else {
|
217 |
+
return $data;
|
218 |
+
}
|
219 |
+
}
|
220 |
+
/**
|
221 |
+
* Gets a specific style. (style.get)
|
222 |
+
*
|
223 |
+
* @param string $tableId Table to which the requested style belongs
|
224 |
+
* @param int $styleId Identifier (integer) for a specific style in a table
|
225 |
+
* @param array $optParams Optional parameters.
|
226 |
+
* @return Google_StyleSetting
|
227 |
+
*/
|
228 |
+
public function get($tableId, $styleId, $optParams = array()) {
|
229 |
+
$params = array('tableId' => $tableId, 'styleId' => $styleId);
|
230 |
+
$params = array_merge($params, $optParams);
|
231 |
+
$data = $this->__call('get', array($params));
|
232 |
+
if ($this->useObjects()) {
|
233 |
+
return new Google_StyleSetting($data);
|
234 |
+
} else {
|
235 |
+
return $data;
|
236 |
+
}
|
237 |
+
}
|
238 |
+
/**
|
239 |
+
* Retrieves a list of styles. (style.list)
|
240 |
+
*
|
241 |
+
* @param string $tableId Table whose styles are being listed
|
242 |
+
* @param array $optParams Optional parameters.
|
243 |
+
*
|
244 |
+
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
245 |
+
* @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
|
246 |
+
* @return Google_StyleSettingList
|
247 |
+
*/
|
248 |
+
public function listStyle($tableId, $optParams = array()) {
|
249 |
+
$params = array('tableId' => $tableId);
|
250 |
+
$params = array_merge($params, $optParams);
|
251 |
+
$data = $this->__call('list', array($params));
|
252 |
+
if ($this->useObjects()) {
|
253 |
+
return new Google_StyleSettingList($data);
|
254 |
+
} else {
|
255 |
+
return $data;
|
256 |
+
}
|
257 |
+
}
|
258 |
+
/**
|
259 |
+
* Updates an existing style. (style.update)
|
260 |
+
*
|
261 |
+
* @param string $tableId Table whose style is being updated.
|
262 |
+
* @param int $styleId Identifier (within a table) for the style being updated.
|
263 |
+
* @param Google_StyleSetting $postBody
|
264 |
+
* @param array $optParams Optional parameters.
|
265 |
+
* @return Google_StyleSetting
|
266 |
+
*/
|
267 |
+
public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
|
268 |
+
$params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
|
269 |
+
$params = array_merge($params, $optParams);
|
270 |
+
$data = $this->__call('update', array($params));
|
271 |
+
if ($this->useObjects()) {
|
272 |
+
return new Google_StyleSetting($data);
|
273 |
+
} else {
|
274 |
+
return $data;
|
275 |
+
}
|
276 |
+
}
|
277 |
+
/**
|
278 |
+
* Updates an existing style. This method supports patch semantics. (style.patch)
|
279 |
+
*
|
280 |
+
* @param string $tableId Table whose style is being updated.
|
281 |
+
* @param int $styleId Identifier (within a table) for the style being updated.
|
282 |
+
* @param Google_StyleSetting $postBody
|
283 |
+
* @param array $optParams Optional parameters.
|
284 |
+
* @return Google_StyleSetting
|
285 |
+
*/
|
286 |
+
public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
|
287 |
+
$params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
|
288 |
+
$params = array_merge($params, $optParams);
|
289 |
+
$data = $this->__call('patch', array($params));
|
290 |
+
if ($this->useObjects()) {
|
291 |
+
return new Google_StyleSetting($data);
|
292 |
+
} else {
|
293 |
+
return $data;
|
294 |
+
}
|
295 |
+
}
|
296 |
+
/**
|
297 |
+
* Deletes a style. (style.delete)
|
298 |
+
*
|
299 |
+
* @param string $tableId Table from which the style is being deleted
|
300 |
+
* @param int $styleId Identifier (within a table) for the style being deleted
|
301 |
+
* @param array $optParams Optional parameters.
|
302 |
+
*/
|
303 |
+
public function delete($tableId, $styleId, $optParams = array()) {
|
304 |
+
$params = array('tableId' => $tableId, 'styleId' => $styleId);
|
305 |
+
$params = array_merge($params, $optParams);
|
306 |
+
$data = $this->__call('delete', array($params));
|
307 |
+
return $data;
|
308 |
+
}
|
309 |
+
}
|
310 |
+
|
311 |
+
/**
|
312 |
+
* The "template" collection of methods.
|
313 |
+
* Typical usage is:
|
314 |
+
* <code>
|
315 |
+
* $fusiontablesService = new Google_FusiontablesService(...);
|
316 |
+
* $template = $fusiontablesService->template;
|
317 |
+
* </code>
|
318 |
+
*/
|
319 |
+
class Google_TemplateServiceResource extends Google_ServiceResource {
|
320 |
+
|
321 |
+
|
322 |
+
/**
|
323 |
+
* Creates a new template for the table. (template.insert)
|
324 |
+
*
|
325 |
+
* @param string $tableId Table for which a new template is being created
|
326 |
+
* @param Google_Template $postBody
|
327 |
+
* @param array $optParams Optional parameters.
|
328 |
+
* @return Google_Template
|
329 |
+
*/
|
330 |
+
public function insert($tableId, Google_Template $postBody, $optParams = array()) {
|
331 |
+
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
332 |
+
$params = array_merge($params, $optParams);
|
333 |
+
$data = $this->__call('insert', array($params));
|
334 |
+
if ($this->useObjects()) {
|
335 |
+
return new Google_Template($data);
|
336 |
+
} else {
|
337 |
+
return $data;
|
338 |
+
}
|
339 |
+
}
|
340 |
+
/**
|
341 |
+
* Retrieves a specific template by its id (template.get)
|
342 |
+
*
|
343 |
+
* @param string $tableId Table to which the template belongs
|
344 |
+
* @param int $templateId Identifier for the template that is being requested
|
345 |
+
* @param array $optParams Optional parameters.
|
346 |
+
* @return Google_Template
|
347 |
+
*/
|
348 |
+
public function get($tableId, $templateId, $optParams = array()) {
|
349 |
+
$params = array('tableId' => $tableId, 'templateId' => $templateId);
|
350 |
+
$params = array_merge($params, $optParams);
|
351 |
+
$data = $this->__call('get', array($params));
|
352 |
+
if ($this->useObjects()) {
|
353 |
+
return new Google_Template($data);
|
354 |
+
} else {
|
355 |
+
return $data;
|
356 |
+
}
|
357 |
+
}
|
358 |
+
/**
|
359 |
+
* Retrieves a list of templates. (template.list)
|
360 |
+
*
|
361 |
+
* @param string $tableId Identifier for the table whose templates are being requested
|
362 |
+
* @param array $optParams Optional parameters.
|
363 |
+
*
|
364 |
+
* @opt_param string pageToken Continuation token specifying which results page to return. Optional.
|
365 |
+
* @opt_param string maxResults Maximum number of templates to return. Optional. Default is 5.
|
366 |
+
* @return Google_TemplateList
|
367 |
+
*/
|
368 |
+
public function listTemplate($tableId, $optParams = array()) {
|
369 |
+
$params = array('tableId' => $tableId);
|
370 |
+
$params = array_merge($params, $optParams);
|
371 |
+
$data = $this->__call('list', array($params));
|
372 |
+
if ($this->useObjects()) {
|
373 |
+
return new Google_TemplateList($data);
|
374 |
+
} else {
|
375 |
+
return $data;
|
376 |
+
}
|
377 |
+
}
|
378 |
+
/**
|
379 |
+
* Updates an existing template (template.update)
|
380 |
+
*
|
381 |
+
* @param string $tableId Table to which the updated template belongs
|
382 |
+
* @param int $templateId Identifier for the template that is being updated
|
383 |
+
* @param Google_Template $postBody
|
384 |
+
* @param array $optParams Optional parameters.
|
385 |
+
* @return Google_Template
|
386 |
+
*/
|
387 |
+
public function update($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
|
388 |
+
$params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
|
389 |
+
$params = array_merge($params, $optParams);
|
390 |
+
$data = $this->__call('update', array($params));
|
391 |
+
if ($this->useObjects()) {
|
392 |
+
return new Google_Template($data);
|
393 |
+
} else {
|
394 |
+
return $data;
|
395 |
+
}
|
396 |
+
}
|
397 |
+
/**
|
398 |
+
* Updates an existing template. This method supports patch semantics. (template.patch)
|
399 |
+
*
|
400 |
+
* @param string $tableId Table to which the updated template belongs
|
401 |
+
* @param int $templateId Identifier for the template that is being updated
|
402 |
+
* @param Google_Template $postBody
|
403 |
+
* @param array $optParams Optional parameters.
|
404 |
+
* @return Google_Template
|
405 |
+
*/
|
406 |
+
public function patch($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
|
407 |
+
$params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
|
408 |
+
$params = array_merge($params, $optParams);
|
409 |
+
$data = $this->__call('patch', array($params));
|
410 |
+
if ($this->useObjects()) {
|
411 |
+
return new Google_Template($data);
|
412 |
+
} else {
|
413 |
+
return $data;
|
414 |
+
}
|
415 |
+
}
|
416 |
+
/**
|
417 |
+
* Deletes a template (template.delete)
|
418 |
+
*
|
419 |
+
* @param string $tableId Table from which the template is being deleted
|
420 |
+
* @param int $templateId Identifier for the template which is being deleted
|
421 |
+
* @param array $optParams Optional parameters.
|
422 |
+
*/
|
423 |
+
public function delete($tableId, $templateId, $optParams = array()) {
|
424 |
+
$params = array('tableId' => $tableId, 'templateId' => $templateId);
|
425 |
+
$params = array_merge($params, $optParams);
|
426 |
+
$data = $this->__call('delete', array($params));
|
427 |
+
return $data;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
|
431 |
+
/**
|
432 |
+
* The "table" collection of methods.
|
433 |
+
* Typical usage is:
|
434 |
+
* <code>
|
435 |
+
* $fusiontablesService = new Google_FusiontablesService(...);
|
436 |
+
* $table = $fusiontablesService->table;
|
437 |
+
* </code>
|
438 |
+
*/
|
439 |
+
class Google_TableServiceResource extends Google_ServiceResource {
|
440 |
+
|
441 |
+
|
442 |
+
/**
|
443 |
+
* Creates a new table. (table.insert)
|
444 |
+
*
|
445 |
+
* @param Google_Table $postBody
|
446 |
+
* @param array $optParams Optional parameters.
|
447 |
+
* @return Google_Table
|
448 |
+
*/
|
449 |
+
public function insert(Google_Table $postBody, $optParams = array()) {
|
450 |
+
$params = array('postBody' => $postBody);
|
451 |
+
$params = array_merge($params, $optParams);
|
452 |
+
$data = $this->__call('insert', array($params));
|
453 |
+
if ($this->useObjects()) {
|
454 |
+
return new Google_Table($data);
|
455 |
+
} else {
|
456 |
+
return $data;
|
457 |
+
}
|
458 |
+
}
|
459 |
+
/**
|
460 |
+
* Retrieves a specific table by its id. (table.get)
|
461 |
+
*
|
462 |
+
* @param string $tableId Identifier(ID) for the table being requested.
|
463 |
+
* @param array $optParams Optional parameters.
|
464 |
+
* @return Google_Table
|
465 |
+
*/
|
466 |
+
public function get($tableId, $optParams = array()) {
|
467 |
+
$params = array('tableId' => $tableId);
|
468 |
+
$params = array_merge($params, $optParams);
|
469 |
+
$data = $this->__call('get', array($params));
|
470 |
+
if ($this->useObjects()) {
|
471 |
+
return new Google_Table($data);
|
472 |
+
} else {
|
473 |
+
return $data;
|
474 |
+
}
|
475 |
+
}
|
476 |
+
/**
|
477 |
+
* Retrieves a list of tables a user owns. (table.list)
|
478 |
+
*
|
479 |
+
* @param array $optParams Optional parameters.
|
480 |
+
*
|
481 |
+
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
482 |
+
* @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
|
483 |
+
* @return Google_TableList
|
484 |
+
*/
|
485 |
+
public function listTable($optParams = array()) {
|
486 |
+
$params = array();
|
487 |
+
$params = array_merge($params, $optParams);
|
488 |
+
$data = $this->__call('list', array($params));
|
489 |
+
if ($this->useObjects()) {
|
490 |
+
return new Google_TableList($data);
|
491 |
+
} else {
|
492 |
+
return $data;
|
493 |
+
}
|
494 |
+
}
|
495 |
+
/**
|
496 |
+
* Updates an existing table. Unless explicitly requested, only the name, description, and
|
497 |
+
* attribution will be updated. (table.update)
|
498 |
+
*
|
499 |
+
* @param string $tableId Id of the table that is being updated.
|
500 |
+
* @param Google_Table $postBody
|
501 |
+
* @param array $optParams Optional parameters.
|
502 |
+
*
|
503 |
+
* @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
|
504 |
+
* @return Google_Table
|
505 |
+
*/
|
506 |
+
public function update($tableId, Google_Table $postBody, $optParams = array()) {
|
507 |
+
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
508 |
+
$params = array_merge($params, $optParams);
|
509 |
+
$data = $this->__call('update', array($params));
|
510 |
+
if ($this->useObjects()) {
|
511 |
+
return new Google_Table($data);
|
512 |
+
} else {
|
513 |
+
return $data;
|
514 |
+
}
|
515 |
+
}
|
516 |
+
/**
|
517 |
+
* Updates an existing table. Unless explicitly requested, only the name, description, and
|
518 |
+
* attribution will be updated. This method supports patch semantics. (table.patch)
|
519 |
+
*
|
520 |
+
* @param string $tableId Id of the table that is being updated.
|
521 |
+
* @param Google_Table $postBody
|
522 |
+
* @param array $optParams Optional parameters.
|
523 |
+
*
|
524 |
+
* @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
|
525 |
+
* @return Google_Table
|
526 |
+
*/
|
527 |
+
public function patch($tableId, Google_Table $postBody, $optParams = array()) {
|
528 |
+
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
529 |
+
$params = array_merge($params, $optParams);
|
530 |
+
$data = $this->__call('patch', array($params));
|
531 |
+
if ($this->useObjects()) {
|
532 |
+
return new Google_Table($data);
|
533 |
+
} else {
|
534 |
+
return $data;
|
535 |
+
}
|
536 |
+
}
|
537 |
+
/**
|
538 |
+
* Deletes a table. (table.delete)
|
539 |
+
*
|
540 |
+
* @param string $tableId Id of the table that is being deleted.
|
541 |
+
* @param array $optParams Optional parameters.
|
542 |
+
*/
|
543 |
+
public function delete($tableId, $optParams = array()) {
|
544 |
+
$params = array('tableId' => $tableId);
|
545 |
+
$params = array_merge($params, $optParams);
|
546 |
+
$data = $this->__call('delete', array($params));
|
547 |
+
return $data;
|
548 |
+
}
|
549 |
+
}
|
550 |
+
|
551 |
+
/**
|
552 |
+
* Service definition for Google_Fusiontables (v1).
|
553 |
+
*
|
554 |
+
* <p>
|
555 |
+
* API for working with Fusion Tables data.
|
556 |
+
* </p>
|
557 |
+
*
|
558 |
+
* <p>
|
559 |
+
* For more information about this service, see the
|
560 |
+
* <a href="https://developers.google.com/fusiontables" target="_blank">API Documentation</a>
|
561 |
+
* </p>
|
562 |
+
*
|
563 |
+
* @author Google, Inc.
|
564 |
+
*/
|
565 |
+
class Google_FusiontablesService extends Google_Service {
|
566 |
+
public $column;
|
567 |
+
public $query;
|
568 |
+
public $style;
|
569 |
+
public $template;
|
570 |
+
public $table;
|
571 |
+
/**
|
572 |
+
* Constructs the internal representation of the Fusiontables service.
|
573 |
+
*
|
574 |
+
* @param Google_Client $client
|
575 |
+
*/
|
576 |
+
public function __construct(Google_Client $client) {
|
577 |
+
$this->servicePath = 'fusiontables/v1/';
|
578 |
+
$this->version = 'v1';
|
579 |
+
$this->serviceName = 'fusiontables';
|
580 |
+
|
581 |
+
$client->addService($this->serviceName, $this->version);
|
582 |
+
$this->column = new Google_ColumnServiceResource($this, $this->serviceName, 'column', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "POST", "path": "tables/{tableId}/columns", "id": "fusiontables.column.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.column.get", "httpMethod": "GET", "path": "tables/{tableId}/columns/{columnId}", "response": {"$ref": "Column"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.column.list", "httpMethod": "GET", "path": "tables/{tableId}/columns", "response": {"$ref": "ColumnList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PUT", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PATCH", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
583 |
+
$this->query = new Google_QueryServiceResource($this, $this->serviceName, 'query', json_decode('{"methods": {"sqlGet": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sqlGet", "httpMethod": "GET", "path": "query", "response": {"$ref": "Sqlresponse"}}, "sql": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sql", "httpMethod": "POST", "path": "query", "response": {"$ref": "Sqlresponse"}}}}', true));
|
584 |
+
$this->style = new Google_StyleServiceResource($this, $this->serviceName, 'style', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "POST", "path": "tables/{tableId}/styles", "id": "fusiontables.style.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.style.get", "httpMethod": "GET", "path": "tables/{tableId}/styles/{styleId}", "response": {"$ref": "StyleSetting"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.style.list", "httpMethod": "GET", "path": "tables/{tableId}/styles", "response": {"$ref": "StyleSettingList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PUT", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PATCH", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
|
585 |
+
$this->template = new Google_TemplateServiceResource($this, $this->serviceName, 'template', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "POST", "path": "tables/{tableId}/templates", "id": "fusiontables.template.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.template.get", "httpMethod": "GET", "path": "tables/{tableId}/templates/{templateId}", "response": {"$ref": "Template"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.template.list", "httpMethod": "GET", "path": "tables/{tableId}/templates", "response": {"$ref": "TemplateList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PUT", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PATCH", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
|
586 |
+
$this->table = new Google_TableServiceResource($this, $this->serviceName, 'table', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "tables", "id": "fusiontables.table.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.table.get", "httpMethod": "GET", "path": "tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "TableList"}, "httpMethod": "GET", "path": "tables", "id": "fusiontables.table.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "tables/{tableId}", "id": "fusiontables.table.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "tables/{tableId}", "id": "fusiontables.table.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}", "id": "fusiontables.table.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
587 |
+
|
588 |
+
}
|
589 |
+
}
|
590 |
+
|
591 |
+
class Google_Bucket extends Google_Model {
|
592 |
+
public $opacity;
|
593 |
+
public $weight;
|
594 |
+
public $min;
|
595 |
+
public $color;
|
596 |
+
public $max;
|
597 |
+
public $icon;
|
598 |
+
public function setOpacity($opacity) {
|
599 |
+
$this->opacity = $opacity;
|
600 |
+
}
|
601 |
+
public function getOpacity() {
|
602 |
+
return $this->opacity;
|
603 |
+
}
|
604 |
+
public function setWeight($weight) {
|
605 |
+
$this->weight = $weight;
|
606 |
+
}
|
607 |
+
public function getWeight() {
|
608 |
+
return $this->weight;
|
609 |
+
}
|
610 |
+
public function setMin($min) {
|
611 |
+
$this->min = $min;
|
612 |
+
}
|
613 |
+
public function getMin() {
|
614 |
+
return $this->min;
|
615 |
+
}
|
616 |
+
public function setColor($color) {
|
617 |
+
$this->color = $color;
|
618 |
+
}
|
619 |
+
public function getColor() {
|
620 |
+
return $this->color;
|
621 |
+
}
|
622 |
+
public function setMax($max) {
|
623 |
+
$this->max = $max;
|
624 |
+
}
|
625 |
+
public function getMax() {
|
626 |
+
return $this->max;
|
627 |
+
}
|
628 |
+
public function setIcon($icon) {
|
629 |
+
$this->icon = $icon;
|
630 |
+
}
|
631 |
+
public function getIcon() {
|
632 |
+
return $this->icon;
|
633 |
+
}
|
634 |
+
}
|
635 |
+
|
636 |
+
class Google_Column extends Google_Model {
|
637 |
+
public $kind;
|
638 |
+
public $type;
|
639 |
+
public $columnId;
|
640 |
+
public $name;
|
641 |
+
protected $__baseColumnType = 'Google_ColumnBaseColumn';
|
642 |
+
protected $__baseColumnDataType = '';
|
643 |
+
public $baseColumn;
|
644 |
+
public function setKind($kind) {
|
645 |
+
$this->kind = $kind;
|
646 |
+
}
|
647 |
+
public function getKind() {
|
648 |
+
return $this->kind;
|
649 |
+
}
|
650 |
+
public function setType($type) {
|
651 |
+
$this->type = $type;
|
652 |
+
}
|
653 |
+
public function getType() {
|
654 |
+
return $this->type;
|
655 |
+
}
|
656 |
+
public function setColumnId($columnId) {
|
657 |
+
$this->columnId = $columnId;
|
658 |
+
}
|
659 |
+
public function getColumnId() {
|
660 |
+
return $this->columnId;
|
661 |
+
}
|
662 |
+
public function setName($name) {
|
663 |
+
$this->name = $name;
|
664 |
+
}
|
665 |
+
public function getName() {
|
666 |
+
return $this->name;
|
667 |
+
}
|
668 |
+
public function setBaseColumn(Google_ColumnBaseColumn $baseColumn) {
|
669 |
+
$this->baseColumn = $baseColumn;
|
670 |
+
}
|
671 |
+
public function getBaseColumn() {
|
672 |
+
return $this->baseColumn;
|
673 |
+
}
|
674 |
+
}
|
675 |
+
|
676 |
+
class Google_ColumnBaseColumn extends Google_Model {
|
677 |
+
public $tableIndex;
|
678 |
+
public $columnId;
|
679 |
+
public function setTableIndex($tableIndex) {
|
680 |
+
$this->tableIndex = $tableIndex;
|
681 |
+
}
|
682 |
+
public function getTableIndex() {
|
683 |
+
return $this->tableIndex;
|
684 |
+
}
|
685 |
+
public function setColumnId($columnId) {
|
686 |
+
$this->columnId = $columnId;
|
687 |
+
}
|
688 |
+
public function getColumnId() {
|
689 |
+
return $this->columnId;
|
690 |
+
}
|
691 |
+
}
|
692 |
+
|
693 |
+
class Google_ColumnList extends Google_Model {
|
694 |
+
public $nextPageToken;
|
695 |
+
protected $__itemsType = 'Google_Column';
|
696 |
+
protected $__itemsDataType = 'array';
|
697 |
+
public $items;
|
698 |
+
public $kind;
|
699 |
+
public $totalItems;
|
700 |
+
public function setNextPageToken($nextPageToken) {
|
701 |
+
$this->nextPageToken = $nextPageToken;
|
702 |
+
}
|
703 |
+
public function getNextPageToken() {
|
704 |
+
return $this->nextPageToken;
|
705 |
+
}
|
706 |
+
public function setItems(/* array(Google_Column) */ $items) {
|
707 |
+
$this->assertIsArray($items, 'Google_Column', __METHOD__);
|
708 |
+
$this->items = $items;
|
709 |
+
}
|
710 |
+
public function getItems() {
|
711 |
+
return $this->items;
|
712 |
+
}
|
713 |
+
public function setKind($kind) {
|
714 |
+
$this->kind = $kind;
|
715 |
+
}
|
716 |
+
public function getKind() {
|
717 |
+
return $this->kind;
|
718 |
+
}
|
719 |
+
public function setTotalItems($totalItems) {
|
720 |
+
$this->totalItems = $totalItems;
|
721 |
+
}
|
722 |
+
public function getTotalItems() {
|
723 |
+
return $this->totalItems;
|
724 |
+
}
|
725 |
+
}
|
726 |
+
|
727 |
+
class Google_Geometry extends Google_Model {
|
728 |
+
public $geometry;
|
729 |
+
public $type;
|
730 |
+
public $geometries;
|
731 |
+
public function setGeometry($geometry) {
|
732 |
+
$this->geometry = $geometry;
|
733 |
+
}
|
734 |
+
public function getGeometry() {
|
735 |
+
return $this->geometry;
|
736 |
+
}
|
737 |
+
public function setType($type) {
|
738 |
+
$this->type = $type;
|
739 |
+
}
|
740 |
+
public function getType() {
|
741 |
+
return $this->type;
|
742 |
+
}
|
743 |
+
public function setGeometries(/* array(Google_object) */ $geometries) {
|
744 |
+
$this->assertIsArray($geometries, 'Google_object', __METHOD__);
|
745 |
+
$this->geometries = $geometries;
|
746 |
+
}
|
747 |
+
public function getGeometries() {
|
748 |
+
return $this->geometries;
|
749 |
+
}
|
750 |
+
}
|
751 |
+
|
752 |
+
class Google_Line extends Google_Model {
|
753 |
+
public $type;
|
754 |
+
public $coordinates;
|
755 |
+
public function setType($type) {
|
756 |
+
$this->type = $type;
|
757 |
+
}
|
758 |
+
public function getType() {
|
759 |
+
return $this->type;
|
760 |
+
}
|
761 |
+
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
762 |
+
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
763 |
+
$this->coordinates = $coordinates;
|
764 |
+
}
|
765 |
+
public function getCoordinates() {
|
766 |
+
return $this->coordinates;
|
767 |
+
}
|
768 |
+
}
|
769 |
+
|
770 |
+
class Google_LineStyle extends Google_Model {
|
771 |
+
public $strokeWeight;
|
772 |
+
protected $__strokeWeightStylerType = 'Google_StyleFunction';
|
773 |
+
protected $__strokeWeightStylerDataType = '';
|
774 |
+
public $strokeWeightStyler;
|
775 |
+
public $strokeColor;
|
776 |
+
public $strokeOpacity;
|
777 |
+
protected $__strokeColorStylerType = 'Google_StyleFunction';
|
778 |
+
protected $__strokeColorStylerDataType = '';
|
779 |
+
public $strokeColorStyler;
|
780 |
+
public function setStrokeWeight($strokeWeight) {
|
781 |
+
$this->strokeWeight = $strokeWeight;
|
782 |
+
}
|
783 |
+
public function getStrokeWeight() {
|
784 |
+
return $this->strokeWeight;
|
785 |
+
}
|
786 |
+
public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
|
787 |
+
$this->strokeWeightStyler = $strokeWeightStyler;
|
788 |
+
}
|
789 |
+
public function getStrokeWeightStyler() {
|
790 |
+
return $this->strokeWeightStyler;
|
791 |
+
}
|
792 |
+
public function setStrokeColor($strokeColor) {
|
793 |
+
$this->strokeColor = $strokeColor;
|
794 |
+
}
|
795 |
+
public function getStrokeColor() {
|
796 |
+
return $this->strokeColor;
|
797 |
+
}
|
798 |
+
public function setStrokeOpacity($strokeOpacity) {
|
799 |
+
$this->strokeOpacity = $strokeOpacity;
|
800 |
+
}
|
801 |
+
public function getStrokeOpacity() {
|
802 |
+
return $this->strokeOpacity;
|
803 |
+
}
|
804 |
+
public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
|
805 |
+
$this->strokeColorStyler = $strokeColorStyler;
|
806 |
+
}
|
807 |
+
public function getStrokeColorStyler() {
|
808 |
+
return $this->strokeColorStyler;
|
809 |
+
}
|
810 |
+
}
|
811 |
+
|
812 |
+
class Google_Point extends Google_Model {
|
813 |
+
public $type;
|
814 |
+
public $coordinates;
|
815 |
+
public function setType($type) {
|
816 |
+
$this->type = $type;
|
817 |
+
}
|
818 |
+
public function getType() {
|
819 |
+
return $this->type;
|
820 |
+
}
|
821 |
+
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
822 |
+
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
823 |
+
$this->coordinates = $coordinates;
|
824 |
+
}
|
825 |
+
public function getCoordinates() {
|
826 |
+
return $this->coordinates;
|
827 |
+
}
|
828 |
+
}
|
829 |
+
|
830 |
+
class Google_PointStyle extends Google_Model {
|
831 |
+
protected $__iconStylerType = 'Google_StyleFunction';
|
832 |
+
protected $__iconStylerDataType = '';
|
833 |
+
public $iconStyler;
|
834 |
+
public $iconName;
|
835 |
+
public function setIconStyler(Google_StyleFunction $iconStyler) {
|
836 |
+
$this->iconStyler = $iconStyler;
|
837 |
+
}
|
838 |
+
public function getIconStyler() {
|
839 |
+
return $this->iconStyler;
|
840 |
+
}
|
841 |
+
public function setIconName($iconName) {
|
842 |
+
$this->iconName = $iconName;
|
843 |
+
}
|
844 |
+
public function getIconName() {
|
845 |
+
return $this->iconName;
|
846 |
+
}
|
847 |
+
}
|
848 |
+
|
849 |
+
class Google_Polygon extends Google_Model {
|
850 |
+
public $type;
|
851 |
+
public $coordinates;
|
852 |
+
public function setType($type) {
|
853 |
+
$this->type = $type;
|
854 |
+
}
|
855 |
+
public function getType() {
|
856 |
+
return $this->type;
|
857 |
+
}
|
858 |
+
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
859 |
+
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
860 |
+
$this->coordinates = $coordinates;
|
861 |
+
}
|
862 |
+
public function getCoordinates() {
|
863 |
+
return $this->coordinates;
|
864 |
+
}
|
865 |
+
}
|
866 |
+
|
867 |
+
class Google_PolygonStyle extends Google_Model {
|
868 |
+
protected $__strokeColorStylerType = 'Google_StyleFunction';
|
869 |
+
protected $__strokeColorStylerDataType = '';
|
870 |
+
public $strokeColorStyler;
|
871 |
+
public $strokeWeight;
|
872 |
+
public $strokeOpacity;
|
873 |
+
protected $__strokeWeightStylerType = 'Google_StyleFunction';
|
874 |
+
protected $__strokeWeightStylerDataType = '';
|
875 |
+
public $strokeWeightStyler;
|
876 |
+
protected $__fillColorStylerType = 'Google_StyleFunction';
|
877 |
+
protected $__fillColorStylerDataType = '';
|
878 |
+
public $fillColorStyler;
|
879 |
+
public $fillColor;
|
880 |
+
public $strokeColor;
|
881 |
+
public $fillOpacity;
|
882 |
+
public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
|
883 |
+
$this->strokeColorStyler = $strokeColorStyler;
|
884 |
+
}
|
885 |
+
public function getStrokeColorStyler() {
|
886 |
+
return $this->strokeColorStyler;
|
887 |
+
}
|
888 |
+
public function setStrokeWeight($strokeWeight) {
|
889 |
+
$this->strokeWeight = $strokeWeight;
|
890 |
+
}
|
891 |
+
public function getStrokeWeight() {
|
892 |
+
return $this->strokeWeight;
|
893 |
+
}
|
894 |
+
public function setStrokeOpacity($strokeOpacity) {
|
895 |
+
$this->strokeOpacity = $strokeOpacity;
|
896 |
+
}
|
897 |
+
public function getStrokeOpacity() {
|
898 |
+
return $this->strokeOpacity;
|
899 |
+
}
|
900 |
+
public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
|
901 |
+
$this->strokeWeightStyler = $strokeWeightStyler;
|
902 |
+
}
|
903 |
+
public function getStrokeWeightStyler() {
|
904 |
+
return $this->strokeWeightStyler;
|
905 |
+
}
|
906 |
+
public function setFillColorStyler(Google_StyleFunction $fillColorStyler) {
|
907 |
+
$this->fillColorStyler = $fillColorStyler;
|
908 |
+
}
|
909 |
+
public function getFillColorStyler() {
|
910 |
+
return $this->fillColorStyler;
|
911 |
+
}
|
912 |
+
public function setFillColor($fillColor) {
|
913 |
+
$this->fillColor = $fillColor;
|
914 |
+
}
|
915 |
+
public function getFillColor() {
|
916 |
+
return $this->fillColor;
|
917 |
+
}
|
918 |
+
public function setStrokeColor($strokeColor) {
|
919 |
+
$this->strokeColor = $strokeColor;
|
920 |
+
}
|
921 |
+
public function getStrokeColor() {
|
922 |
+
return $this->strokeColor;
|
923 |
+
}
|
924 |
+
public function setFillOpacity($fillOpacity) {
|
925 |
+
$this->fillOpacity = $fillOpacity;
|
926 |
+
}
|
927 |
+
public function getFillOpacity() {
|
928 |
+
return $this->fillOpacity;
|
929 |
+
}
|
930 |
+
}
|
931 |
+
|
932 |
+
class Google_Sqlresponse extends Google_Model {
|
933 |
+
public $kind;
|
934 |
+
public $rows;
|
935 |
+
public $columns;
|
936 |
+
public function setKind($kind) {
|
937 |
+
$this->kind = $kind;
|
938 |
+
}
|
939 |
+
public function getKind() {
|
940 |
+
return $this->kind;
|
941 |
+
}
|
942 |
+
public function setRows(/* array(Google_object) */ $rows) {
|
943 |
+
$this->assertIsArray($rows, 'Google_object', __METHOD__);
|
944 |
+
$this->rows = $rows;
|
945 |
+
}
|
946 |
+
public function getRows() {
|
947 |
+
return $this->rows;
|
948 |
+
}
|
949 |
+
public function setColumns(/* array(Google_string) */ $columns) {
|
950 |
+
$this->assertIsArray($columns, 'Google_string', __METHOD__);
|
951 |
+
$this->columns = $columns;
|
952 |
+
}
|
953 |
+
public function getColumns() {
|
954 |
+
return $this->columns;
|
955 |
+
}
|
956 |
+
}
|
957 |
+
|
958 |
+
class Google_StyleFunction extends Google_Model {
|
959 |
+
protected $__gradientType = 'Google_StyleFunctionGradient';
|
960 |
+
protected $__gradientDataType = '';
|
961 |
+
public $gradient;
|
962 |
+
public $columnName;
|
963 |
+
protected $__bucketsType = 'Google_Bucket';
|
964 |
+
protected $__bucketsDataType = 'array';
|
965 |
+
public $buckets;
|
966 |
+
public $kind;
|
967 |
+
public function setGradient(Google_StyleFunctionGradient $gradient) {
|
968 |
+
$this->gradient = $gradient;
|
969 |
+
}
|
970 |
+
public function getGradient() {
|
971 |
+
return $this->gradient;
|
972 |
+
}
|
973 |
+
public function setColumnName($columnName) {
|
974 |
+
$this->columnName = $columnName;
|
975 |
+
}
|
976 |
+
public function getColumnName() {
|
977 |
+
return $this->columnName;
|
978 |
+
}
|
979 |
+
public function setBuckets(/* array(Google_Bucket) */ $buckets) {
|
980 |
+
$this->assertIsArray($buckets, 'Google_Bucket', __METHOD__);
|
981 |
+
$this->buckets = $buckets;
|
982 |
+
}
|
983 |
+
public function getBuckets() {
|
984 |
+
return $this->buckets;
|
985 |
+
}
|
986 |
+
public function setKind($kind) {
|
987 |
+
$this->kind = $kind;
|
988 |
+
}
|
989 |
+
public function getKind() {
|
990 |
+
return $this->kind;
|
991 |
+
}
|
992 |
+
}
|
993 |
+
|
994 |
+
class Google_StyleFunctionGradient extends Google_Model {
|
995 |
+
public $max;
|
996 |
+
protected $__colorsType = 'Google_StyleFunctionGradientColors';
|
997 |
+
protected $__colorsDataType = 'array';
|
998 |
+
public $colors;
|
999 |
+
public $min;
|
1000 |
+
public function setMax($max) {
|
1001 |
+
$this->max = $max;
|
1002 |
+
}
|
1003 |
+
public function getMax() {
|
1004 |
+
return $this->max;
|
1005 |
+
}
|
1006 |
+
public function setColors(/* array(Google_StyleFunctionGradientColors) */ $colors) {
|
1007 |
+
$this->assertIsArray($colors, 'Google_StyleFunctionGradientColors', __METHOD__);
|
1008 |
+
$this->colors = $colors;
|
1009 |
+
}
|
1010 |
+
public function getColors() {
|
1011 |
+
return $this->colors;
|
1012 |
+
}
|
1013 |
+
public function setMin($min) {
|
1014 |
+
$this->min = $min;
|
1015 |
+
}
|
1016 |
+
public function getMin() {
|
1017 |
+
return $this->min;
|
1018 |
+
}
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
class Google_StyleFunctionGradientColors extends Google_Model {
|
1022 |
+
public $color;
|
1023 |
+
public $opacity;
|
1024 |
+
public function setColor($color) {
|
1025 |
+
$this->color = $color;
|
1026 |
+
}
|
1027 |
+
public function getColor() {
|
1028 |
+
return $this->color;
|
1029 |
+
}
|
1030 |
+
public function setOpacity($opacity) {
|
1031 |
+
$this->opacity = $opacity;
|
1032 |
+
}
|
1033 |
+
public function getOpacity() {
|
1034 |
+
return $this->opacity;
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
class Google_StyleSetting extends Google_Model {
|
1039 |
+
protected $__markerOptionsType = 'Google_PointStyle';
|
1040 |
+
protected $__markerOptionsDataType = '';
|
1041 |
+
public $markerOptions;
|
1042 |
+
public $kind;
|
1043 |
+
public $name;
|
1044 |
+
protected $__polygonOptionsType = 'Google_PolygonStyle';
|
1045 |
+
protected $__polygonOptionsDataType = '';
|
1046 |
+
public $polygonOptions;
|
1047 |
+
public $isDefaultForTable;
|
1048 |
+
protected $__polylineOptionsType = 'Google_LineStyle';
|
1049 |
+
protected $__polylineOptionsDataType = '';
|
1050 |
+
public $polylineOptions;
|
1051 |
+
public $tableId;
|
1052 |
+
public $styleId;
|
1053 |
+
public function setMarkerOptions(Google_PointStyle $markerOptions) {
|
1054 |
+
$this->markerOptions = $markerOptions;
|
1055 |
+
}
|
1056 |
+
public function getMarkerOptions() {
|
1057 |
+
return $this->markerOptions;
|
1058 |
+
}
|
1059 |
+
public function setKind($kind) {
|
1060 |
+
$this->kind = $kind;
|
1061 |
+
}
|
1062 |
+
public function getKind() {
|
1063 |
+
return $this->kind;
|
1064 |
+
}
|
1065 |
+
public function setName($name) {
|
1066 |
+
$this->name = $name;
|
1067 |
+
}
|
1068 |
+
public function getName() {
|
1069 |
+
return $this->name;
|
1070 |
+
}
|
1071 |
+
public function setPolygonOptions(Google_PolygonStyle $polygonOptions) {
|
1072 |
+
$this->polygonOptions = $polygonOptions;
|
1073 |
+
}
|
1074 |
+
public function getPolygonOptions() {
|
1075 |
+
return $this->polygonOptions;
|
1076 |
+
}
|
1077 |
+
public function setIsDefaultForTable($isDefaultForTable) {
|
1078 |
+
$this->isDefaultForTable = $isDefaultForTable;
|
1079 |
+
}
|
1080 |
+
public function getIsDefaultForTable() {
|
1081 |
+
return $this->isDefaultForTable;
|
1082 |
+
}
|
1083 |
+
public function setPolylineOptions(Google_LineStyle $polylineOptions) {
|
1084 |
+
$this->polylineOptions = $polylineOptions;
|
1085 |
+
}
|
1086 |
+
public function getPolylineOptions() {
|
1087 |
+
return $this->polylineOptions;
|
1088 |
+
}
|
1089 |
+
public function setTableId($tableId) {
|
1090 |
+
$this->tableId = $tableId;
|
1091 |
+
}
|
1092 |
+
public function getTableId() {
|
1093 |
+
return $this->tableId;
|
1094 |
+
}
|
1095 |
+
public function setStyleId($styleId) {
|
1096 |
+
$this->styleId = $styleId;
|
1097 |
+
}
|
1098 |
+
public function getStyleId() {
|
1099 |
+
return $this->styleId;
|
1100 |
+
}
|
1101 |
+
}
|
1102 |
+
|
1103 |
+
class Google_StyleSettingList extends Google_Model {
|
1104 |
+
public $nextPageToken;
|
1105 |
+
protected $__itemsType = 'Google_StyleSetting';
|
1106 |
+
protected $__itemsDataType = 'array';
|
1107 |
+
public $items;
|
1108 |
+
public $kind;
|
1109 |
+
public $totalItems;
|
1110 |
+
public function setNextPageToken($nextPageToken) {
|
1111 |
+
$this->nextPageToken = $nextPageToken;
|
1112 |
+
}
|
1113 |
+
public function getNextPageToken() {
|
1114 |
+
return $this->nextPageToken;
|
1115 |
+
}
|
1116 |
+
public function setItems(/* array(Google_StyleSetting) */ $items) {
|
1117 |
+
$this->assertIsArray($items, 'Google_StyleSetting', __METHOD__);
|
1118 |
+
$this->items = $items;
|
1119 |
+
}
|
1120 |
+
public function getItems() {
|
1121 |
+
return $this->items;
|
1122 |
+
}
|
1123 |
+
public function setKind($kind) {
|
1124 |
+
$this->kind = $kind;
|
1125 |
+
}
|
1126 |
+
public function getKind() {
|
1127 |
+
return $this->kind;
|
1128 |
+
}
|
1129 |
+
public function setTotalItems($totalItems) {
|
1130 |
+
$this->totalItems = $totalItems;
|
1131 |
+
}
|
1132 |
+
public function getTotalItems() {
|
1133 |
+
return $this->totalItems;
|
1134 |
+
}
|
1135 |
+
}
|
1136 |
+
|
1137 |
+
class Google_Table extends Google_Model {
|
1138 |
+
public $kind;
|
1139 |
+
public $attribution;
|
1140 |
+
public $description;
|
1141 |
+
public $isExportable;
|
1142 |
+
public $baseTableIds;
|
1143 |
+
public $attributionLink;
|
1144 |
+
public $sql;
|
1145 |
+
public $tableId;
|
1146 |
+
protected $__columnsType = 'Google_Column';
|
1147 |
+
protected $__columnsDataType = 'array';
|
1148 |
+
public $columns;
|
1149 |
+
public $name;
|
1150 |
+
public function setKind($kind) {
|
1151 |
+
$this->kind = $kind;
|
1152 |
+
}
|
1153 |
+
public function getKind() {
|
1154 |
+
return $this->kind;
|
1155 |
+
}
|
1156 |
+
public function setAttribution($attribution) {
|
1157 |
+
$this->attribution = $attribution;
|
1158 |
+
}
|
1159 |
+
public function getAttribution() {
|
1160 |
+
return $this->attribution;
|
1161 |
+
}
|
1162 |
+
public function setDescription($description) {
|
1163 |
+
$this->description = $description;
|
1164 |
+
}
|
1165 |
+
public function getDescription() {
|
1166 |
+
return $this->description;
|
1167 |
+
}
|
1168 |
+
public function setIsExportable($isExportable) {
|
1169 |
+
$this->isExportable = $isExportable;
|
1170 |
+
}
|
1171 |
+
public function getIsExportable() {
|
1172 |
+
return $this->isExportable;
|
1173 |
+
}
|
1174 |
+
public function setBaseTableIds(/* array(Google_string) */ $baseTableIds) {
|
1175 |
+
$this->assertIsArray($baseTableIds, 'Google_string', __METHOD__);
|
1176 |
+
$this->baseTableIds = $baseTableIds;
|
1177 |
+
}
|
1178 |
+
public function getBaseTableIds() {
|
1179 |
+
return $this->baseTableIds;
|
1180 |
+
}
|
1181 |
+
public function setAttributionLink($attributionLink) {
|
1182 |
+
$this->attributionLink = $attributionLink;
|
1183 |
+
}
|
1184 |
+
public function getAttributionLink() {
|
1185 |
+
return $this->attributionLink;
|
1186 |
+
}
|
1187 |
+
public function setSql($sql) {
|
1188 |
+
$this->sql = $sql;
|
1189 |
+
}
|
1190 |
+
public function getSql() {
|
1191 |
+
return $this->sql;
|
1192 |
+
}
|
1193 |
+
public function setTableId($tableId) {
|
1194 |
+
$this->tableId = $tableId;
|
1195 |
+
}
|
1196 |
+
public function getTableId() {
|
1197 |
+
return $this->tableId;
|
1198 |
+
}
|
1199 |
+
public function setColumns(/* array(Google_Column) */ $columns) {
|
1200 |
+
$this->assertIsArray($columns, 'Google_Column', __METHOD__);
|
1201 |
+
$this->columns = $columns;
|
1202 |
+
}
|
1203 |
+
public function getColumns() {
|
1204 |
+
return $this->columns;
|
1205 |
+
}
|
1206 |
+
public function setName($name) {
|
1207 |
+
$this->name = $name;
|
1208 |
+
}
|
1209 |
+
public function getName() {
|
1210 |
+
return $this->name;
|
1211 |
+
}
|
1212 |
+
}
|
1213 |
+
|
1214 |
+
class Google_TableList extends Google_Model {
|
1215 |
+
public $nextPageToken;
|
1216 |
+
protected $__itemsType = 'Google_Table';
|
1217 |
+
protected $__itemsDataType = 'array';
|
1218 |
+
public $items;
|
1219 |
+
public $kind;
|
1220 |
+
public function setNextPageToken($nextPageToken) {
|
1221 |
+
$this->nextPageToken = $nextPageToken;
|
1222 |
+
}
|
1223 |
+
public function getNextPageToken() {
|
1224 |
+
return $this->nextPageToken;
|
1225 |
+
}
|
1226 |
+
public function setItems(/* array(Google_Table) */ $items) {
|
1227 |
+
$this->assertIsArray($items, 'Google_Table', __METHOD__);
|
1228 |
+
$this->items = $items;
|
1229 |
+
}
|
1230 |
+
public function getItems() {
|
1231 |
+
return $this->items;
|
1232 |
+
}
|
1233 |
+
public function setKind($kind) {
|
1234 |
+
$this->kind = $kind;
|
1235 |
+
}
|
1236 |
+
public function getKind() {
|
1237 |
+
return $this->kind;
|
1238 |
+
}
|
1239 |
+
}
|
1240 |
+
|
1241 |
+
class Google_Template extends Google_Model {
|
1242 |
+
public $body;
|
1243 |
+
public $kind;
|
1244 |
+
public $name;
|
1245 |
+
public $automaticColumnNames;
|
1246 |
+
public $isDefaultForTable;
|
1247 |
+
public $tableId;
|
1248 |
+
public $templateId;
|
1249 |
+
public function setBody($body) {
|
1250 |
+
$this->body = $body;
|
1251 |
+
}
|
1252 |
+
public function getBody() {
|
1253 |
+
return $this->body;
|
1254 |
+
}
|
1255 |
+
public function setKind($kind) {
|
1256 |
+
$this->kind = $kind;
|
1257 |
+
}
|
1258 |
+
public function getKind() {
|
1259 |
+
return $this->kind;
|
1260 |
+
}
|
1261 |
+
public function setName($name) {
|
1262 |
+
$this->name = $name;
|
1263 |
+
}
|
1264 |
+
public function getName() {
|
1265 |
+
return $this->name;
|
1266 |
+
}
|
1267 |
+
public function setAutomaticColumnNames(/* array(Google_string) */ $automaticColumnNames) {
|
1268 |
+
$this->assertIsArray($automaticColumnNames, 'Google_string', __METHOD__);
|
1269 |
+
$this->automaticColumnNames = $automaticColumnNames;
|
1270 |
+
}
|
1271 |
+
public function getAutomaticColumnNames() {
|
1272 |
+
return $this->automaticColumnNames;
|
1273 |
+
}
|
1274 |
+
public function setIsDefaultForTable($isDefaultForTable) {
|
1275 |
+
$this->isDefaultForTable = $isDefaultForTable;
|
1276 |
+
}
|
1277 |
+
public function getIsDefaultForTable() {
|
1278 |
+
return $this->isDefaultForTable;
|
1279 |
+
}
|
1280 |
+
public function setTableId($tableId) {
|
1281 |
+
$this->tableId = $tableId;
|
1282 |
+
}
|
1283 |
+
public function getTableId() {
|
1284 |
+
return $this->tableId;
|
1285 |
+
}
|
1286 |
+
public function setTemplateId($templateId) {
|
1287 |
+
$this->templateId = $templateId;
|
1288 |
+
}
|
1289 |
+
public function getTemplateId() {
|
1290 |
+
return $this->templateId;
|
1291 |
+
}
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
class Google_TemplateList extends Google_Model {
|
1295 |
+
public $nextPageToken;
|
1296 |
+
protected $__itemsType = 'Google_Template';
|
1297 |
+
protected $__itemsDataType = 'array';
|
1298 |
+
public $items;
|
1299 |
+
public $kind;
|
1300 |
+
public $totalItems;
|
1301 |
+
public function setNextPageToken($nextPageToken) {
|
1302 |
+
$this->nextPageToken = $nextPageToken;
|
1303 |
+
}
|
1304 |
+
public function getNextPageToken() {
|
1305 |
+
return $this->nextPageToken;
|
1306 |
+
}
|
1307 |
+
public function setItems(/* array(Google_Template) */ $items) {
|
1308 |
+
$this->assertIsArray($items, 'Google_Template', __METHOD__);
|
1309 |
+
$this->items = $items;
|
1310 |
+
}
|
1311 |
+
public function getItems() {
|
1312 |
+
return $this->items;
|
1313 |
+
}
|
1314 |
+
public function setKind($kind) {
|
1315 |
+
$this->kind = $kind;
|
1316 |
+
}
|
1317 |
+
public function getKind() {
|
1318 |
+
return $this->kind;
|
1319 |
+
}
|
1320 |
+
public function setTotalItems($totalItems) {
|
1321 |
+
$this->totalItems = $totalItems;
|
1322 |
+
}
|
1323 |
+
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "advertisers" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $ganService = new Google_GanService(...);
|
22 |
+
* $advertisers = $ganService->advertisers;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_AdvertisersServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Retrieves data about all advertisers that the requesting advertiser/publisher has access to.
|
30 |
+
* (advertisers.list)
|
31 |
+
*
|
32 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
33 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
34 |
+
* @param array $optParams Optional parameters.
|
35 |
+
*
|
36 |
+
* @opt_param string relationshipStatus Filters out all advertisers for which do not have the given relationship status with the requesting publisher.
|
37 |
+
* @opt_param double minSevenDayEpc Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
|
38 |
+
* @opt_param string advertiserCategory Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.
|
39 |
+
* @opt_param double minNinetyDayEpc Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
|
40 |
+
* @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
|
41 |
+
* @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
|
42 |
+
* @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.
|
43 |
+
* @return Google_Advertisers
|
44 |
+
*/
|
45 |
+
public function listAdvertisers($role, $roleId, $optParams = array()) {
|
46 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
47 |
+
$params = array_merge($params, $optParams);
|
48 |
+
$data = $this->__call('list', array($params));
|
49 |
+
if ($this->useObjects()) {
|
50 |
+
return new Google_Advertisers($data);
|
51 |
+
} else {
|
52 |
+
return $data;
|
53 |
+
}
|
54 |
+
}
|
55 |
+
/**
|
56 |
+
* Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
|
57 |
+
* to it. Only publishers can lookup advertisers. Advertisers can request information about
|
58 |
+
* themselves by omitting the advertiserId query parameter. (advertisers.get)
|
59 |
+
*
|
60 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
61 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
62 |
+
* @param array $optParams Optional parameters.
|
63 |
+
*
|
64 |
+
* @opt_param string advertiserId The ID of the advertiser to look up. Optional.
|
65 |
+
* @return Google_Advertiser
|
66 |
+
*/
|
67 |
+
public function get($role, $roleId, $optParams = array()) {
|
68 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
69 |
+
$params = array_merge($params, $optParams);
|
70 |
+
$data = $this->__call('get', array($params));
|
71 |
+
if ($this->useObjects()) {
|
72 |
+
return new Google_Advertiser($data);
|
73 |
+
} else {
|
74 |
+
return $data;
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* The "ccOffers" collection of methods.
|
81 |
+
* Typical usage is:
|
82 |
+
* <code>
|
83 |
+
* $ganService = new Google_GanService(...);
|
84 |
+
* $ccOffers = $ganService->ccOffers;
|
85 |
+
* </code>
|
86 |
+
*/
|
87 |
+
class Google_CcOffersServiceResource extends Google_ServiceResource {
|
88 |
+
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Retrieves credit card offers for the given publisher. (ccOffers.list)
|
92 |
+
*
|
93 |
+
* @param string $publisher The ID of the publisher in question.
|
94 |
+
* @param array $optParams Optional parameters.
|
95 |
+
*
|
96 |
+
* @opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
|
97 |
+
* @opt_param string projection The set of fields to return.
|
98 |
+
* @return Google_CcOffers
|
99 |
+
*/
|
100 |
+
public function listCcOffers($publisher, $optParams = array()) {
|
101 |
+
$params = array('publisher' => $publisher);
|
102 |
+
$params = array_merge($params, $optParams);
|
103 |
+
$data = $this->__call('list', array($params));
|
104 |
+
if ($this->useObjects()) {
|
105 |
+
return new Google_CcOffers($data);
|
106 |
+
} else {
|
107 |
+
return $data;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* The "events" collection of methods.
|
114 |
+
* Typical usage is:
|
115 |
+
* <code>
|
116 |
+
* $ganService = new Google_GanService(...);
|
117 |
+
* $events = $ganService->events;
|
118 |
+
* </code>
|
119 |
+
*/
|
120 |
+
class Google_EventsServiceResource extends Google_ServiceResource {
|
121 |
+
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Retrieves event data for a given advertiser/publisher. (events.list)
|
125 |
+
*
|
126 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
127 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
128 |
+
* @param array $optParams Optional parameters.
|
129 |
+
*
|
130 |
+
* @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.
|
131 |
+
* @opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
|
132 |
+
* @opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
|
133 |
+
* @opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
|
134 |
+
* @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.
|
135 |
+
* @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.
|
136 |
+
* @opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
|
137 |
+
* @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.
|
138 |
+
* @opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
|
139 |
+
* @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.
|
140 |
+
* @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
|
141 |
+
* @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.
|
142 |
+
* @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.
|
143 |
+
* @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.
|
144 |
+
* @opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
|
145 |
+
* @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.
|
146 |
+
* @return Google_Events
|
147 |
+
*/
|
148 |
+
public function listEvents($role, $roleId, $optParams = array()) {
|
149 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
150 |
+
$params = array_merge($params, $optParams);
|
151 |
+
$data = $this->__call('list', array($params));
|
152 |
+
if ($this->useObjects()) {
|
153 |
+
return new Google_Events($data);
|
154 |
+
} else {
|
155 |
+
return $data;
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* The "links" collection of methods.
|
162 |
+
* Typical usage is:
|
163 |
+
* <code>
|
164 |
+
* $ganService = new Google_GanService(...);
|
165 |
+
* $links = $ganService->links;
|
166 |
+
* </code>
|
167 |
+
*/
|
168 |
+
class Google_LinksServiceResource extends Google_ServiceResource {
|
169 |
+
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Inserts a new link. (links.insert)
|
173 |
+
*
|
174 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
175 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
176 |
+
* @param Google_Link $postBody
|
177 |
+
* @param array $optParams Optional parameters.
|
178 |
+
* @return Google_Link
|
179 |
+
*/
|
180 |
+
public function insert($role, $roleId, Google_Link $postBody, $optParams = array()) {
|
181 |
+
$params = array('role' => $role, 'roleId' => $roleId, 'postBody' => $postBody);
|
182 |
+
$params = array_merge($params, $optParams);
|
183 |
+
$data = $this->__call('insert', array($params));
|
184 |
+
if ($this->useObjects()) {
|
185 |
+
return new Google_Link($data);
|
186 |
+
} else {
|
187 |
+
return $data;
|
188 |
+
}
|
189 |
+
}
|
190 |
+
/**
|
191 |
+
* Retrieves all links that match the query parameters. (links.list)
|
192 |
+
*
|
193 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
194 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
195 |
+
* @param array $optParams Optional parameters.
|
196 |
+
*
|
197 |
+
* @opt_param string linkType The type of the link.
|
198 |
+
* @opt_param string startDateMin The beginning of the start date range.
|
199 |
+
* @opt_param string assetSize The size of the given asset.
|
200 |
+
* @opt_param string relationshipStatus The status of the relationship.
|
201 |
+
* @opt_param string advertiserCategory The advertiser's primary vertical.
|
202 |
+
* @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
|
203 |
+
* @opt_param string advertiserId Limits the resulting links to the ones belonging to the listed advertisers.
|
204 |
+
* @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
|
205 |
+
* @opt_param string startDateMax The end of the start date range.
|
206 |
+
* @opt_param string promotionType The promotion type.
|
207 |
+
* @opt_param string authorship The role of the author of the link.
|
208 |
+
* @return Google_Links
|
209 |
+
*/
|
210 |
+
public function listLinks($role, $roleId, $optParams = array()) {
|
211 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
212 |
+
$params = array_merge($params, $optParams);
|
213 |
+
$data = $this->__call('list', array($params));
|
214 |
+
if ($this->useObjects()) {
|
215 |
+
return new Google_Links($data);
|
216 |
+
} else {
|
217 |
+
return $data;
|
218 |
+
}
|
219 |
+
}
|
220 |
+
/**
|
221 |
+
* Retrieves data about a single link if the requesting advertiser/publisher has access to it.
|
222 |
+
* Advertisers can look up their own links. Publishers can look up visible links or links belonging
|
223 |
+
* to advertisers they are in a relationship with. (links.get)
|
224 |
+
*
|
225 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
226 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
227 |
+
* @param string $linkId The ID of the link to look up.
|
228 |
+
* @param array $optParams Optional parameters.
|
229 |
+
* @return Google_Link
|
230 |
+
*/
|
231 |
+
public function get($role, $roleId, $linkId, $optParams = array()) {
|
232 |
+
$params = array('role' => $role, 'roleId' => $roleId, 'linkId' => $linkId);
|
233 |
+
$params = array_merge($params, $optParams);
|
234 |
+
$data = $this->__call('get', array($params));
|
235 |
+
if ($this->useObjects()) {
|
236 |
+
return new Google_Link($data);
|
237 |
+
} else {
|
238 |
+
return $data;
|
239 |
+
}
|
240 |
+
}
|
241 |
+
}
|
242 |
+
|
243 |
+
/**
|
244 |
+
* The "publishers" collection of methods.
|
245 |
+
* Typical usage is:
|
246 |
+
* <code>
|
247 |
+
* $ganService = new Google_GanService(...);
|
248 |
+
* $publishers = $ganService->publishers;
|
249 |
+
* </code>
|
250 |
+
*/
|
251 |
+
class Google_PublishersServiceResource extends Google_ServiceResource {
|
252 |
+
|
253 |
+
|
254 |
+
/**
|
255 |
+
* Retrieves data about all publishers that the requesting advertiser/publisher has access to.
|
256 |
+
* (publishers.list)
|
257 |
+
*
|
258 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
259 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
260 |
+
* @param array $optParams Optional parameters.
|
261 |
+
*
|
262 |
+
* @opt_param string publisherCategory Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
|
263 |
+
* @opt_param string relationshipStatus Filters out all publishers for which do not have the given relationship status with the requesting publisher.
|
264 |
+
* @opt_param double minSevenDayEpc Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
|
265 |
+
* @opt_param double minNinetyDayEpc Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
|
266 |
+
* @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
|
267 |
+
* @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
|
268 |
+
* @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
|
269 |
+
* @return Google_Publishers
|
270 |
+
*/
|
271 |
+
public function listPublishers($role, $roleId, $optParams = array()) {
|
272 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
273 |
+
$params = array_merge($params, $optParams);
|
274 |
+
$data = $this->__call('list', array($params));
|
275 |
+
if ($this->useObjects()) {
|
276 |
+
return new Google_Publishers($data);
|
277 |
+
} else {
|
278 |
+
return $data;
|
279 |
+
}
|
280 |
+
}
|
281 |
+
/**
|
282 |
+
* Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
|
283 |
+
* to it. Only advertisers can look up publishers. Publishers can request information about
|
284 |
+
* themselves by omitting the publisherId query parameter. (publishers.get)
|
285 |
+
*
|
286 |
+
* @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
|
287 |
+
* @param string $roleId The ID of the requesting advertiser or publisher.
|
288 |
+
* @param array $optParams Optional parameters.
|
289 |
+
*
|
290 |
+
* @opt_param string publisherId The ID of the publisher to look up. Optional.
|
291 |
+
* @return Google_Publisher
|
292 |
+
*/
|
293 |
+
public function get($role, $roleId, $optParams = array()) {
|
294 |
+
$params = array('role' => $role, 'roleId' => $roleId);
|
295 |
+
$params = array_merge($params, $optParams);
|
296 |
+
$data = $this->__call('get', array($params));
|
297 |
+
if ($this->useObjects()) {
|
298 |
+
return new Google_Publisher($data);
|
299 |
+
} else {
|
300 |
+
return $data;
|
301 |
+
}
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
/**
|
306 |
+
* Service definition for Google_Gan (v1beta1).
|
307 |
+
*
|
308 |
+
* <p>
|
309 |
+
* Lets you have programmatic access to your Google Affiliate Network data.
|
310 |
+
* </p>
|
311 |
+
*
|
312 |
+
* <p>
|
313 |
+
* For more information about this service, see the
|
314 |
+
* <a href="https://code.google.com/apis/gan/" target="_blank">API Documentation</a>
|
315 |
+
* </p>
|
316 |
+
*
|
317 |
+
* @author Google, Inc.
|
318 |
+
*/
|
319 |
+
class Google_GanService extends Google_Service {
|
320 |
+
public $advertisers;
|
321 |
+
public $ccOffers;
|
322 |
+
public $events;
|
323 |
+
public $links;
|
324 |
+
public $publishers;
|
325 |
+
/**
|
326 |
+
* Constructs the internal representation of the Gan service.
|
327 |
+
*
|
328 |
+
* @param Google_Client $client
|
329 |
+
*/
|
330 |
+
public function __construct(Google_Client $client) {
|
331 |
+
$this->servicePath = 'gan/v1beta1/';
|
332 |
+
$this->version = 'v1beta1';
|
333 |
+
$this->serviceName = 'gan';
|
334 |
+
|
335 |
+
$client->addService($this->serviceName, $this->version);
|
336 |
+
$this->advertisers = new Google_AdvertisersServiceResource($this, $this->serviceName, 'advertisers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "advertiserCategory": {"type": "string", "location": "query"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.advertisers.list", "httpMethod": "GET", "path": "{role}/{roleId}/advertisers", "response": {"$ref": "Advertisers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiserId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "id": "gan.advertisers.get", "httpMethod": "GET", "path": "{role}/{roleId}/advertiser", "response": {"$ref": "Advertiser"}}}}', true));
|
337 |
+
$this->ccOffers = new Google_CcOffersServiceResource($this, $this->serviceName, 'ccOffers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiser": {"repeated": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "summary"], "type": "string", "location": "query"}, "publisher": {"required": true, "type": "string", "location": "path"}}, "id": "gan.ccOffers.list", "httpMethod": "GET", "path": "publishers/{publisher}/ccOffers", "response": {"$ref": "CcOffers"}}}}', true));
|
338 |
+
$this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"orderId": {"type": "string", "location": "query"}, "sku": {"type": "string", "location": "query"}, "eventDateMax": {"type": "string", "location": "query"}, "type": {"enum": ["action", "charge", "transaction"], "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "linkId": {"type": "string", "location": "query"}, "status": {"enum": ["active", "canceled"], "type": "string", "location": "query"}, "eventDateMin": {"type": "string", "location": "query"}, "memberId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserId": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "productCategory": {"type": "string", "location": "query"}, "chargeType": {"enum": ["credit", "debit", "monthly_minimum", "other", "slotting_fee", "tier_bonus"], "type": "string", "location": "query"}, "modifyDateMin": {"type": "string", "location": "query"}, "modifyDateMax": {"type": "string", "location": "query"}, "publisherId": {"type": "string", "location": "query"}}, "id": "gan.events.list", "httpMethod": "GET", "path": "{role}/{roleId}/events", "response": {"$ref": "Events"}}}}', true));
|
339 |
+
$this->links = new Google_LinksServiceResource($this, $this->serviceName, 'links', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/gan"], "parameters": {"roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "request": {"$ref": "Link"}, "response": {"$ref": "Link"}, "httpMethod": "POST", "path": "{role}/{roleId}/link", "id": "gan.links.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkType": {"enum": ["banner", "text"], "type": "string", "location": "query"}, "startDateMin": {"type": "string", "location": "query"}, "assetSize": {"repeated": true, "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "relationshipStatus": {"enum": ["approved", "available"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserCategory": {"repeated": true, "enum": ["apparel_accessories", "appliances_electronics", "auto_dealer", "automotive", "babies_kids", "blogs_personal_sites", "books_magazines", "computers", "dating", "department_stores", "education", "employment", "financial_credit_cards", "financial_other", "flowers_gifts", "grocery", "health_beauty", "home_garden", "hosting_domain", "internet_providers", "legal", "media_entertainment", "medical", "movies_games", "music", "nonprofit", "office_supplies", "online_games", "outdoor", "pets", "real_estate", "restaurants", "sport_fitness", "telecom", "ticketing", "toys_hobbies", "travel", "utilities", "wholesale_relationship", "wine_spirits"], "type": "string", "location": "query"}, "advertiserId": {"repeated": true, "type": "string", "location": "query", "format": "int64"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "startDateMax": {"type": "string", "location": "query"}, "promotionType": {"repeated": true, "enum": ["buy_get", "coupon", "free_gift", "free_gift_wrap", "free_shipping", "none", "ongoing", "percent_off", "price_cut", "product_promotion", "sale", "sweepstakes"], "type": "string", "location": "query"}, "authorship": {"enum": ["advertiser", "publisher"], "type": "string", "location": "query"}}, "id": "gan.links.list", "httpMethod": "GET", "path": "{role}/{roleId}/links", "response": {"$ref": "Links"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.links.get", "httpMethod": "GET", "path": "{role}/{roleId}/link/{linkId}", "response": {"$ref": "Link"}}}}', true));
|
340 |
+
$this->publishers = new Google_PublishersServiceResource($this, $this->serviceName, 'publishers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"publisherCategory": {"type": "string", "location": "query"}, "relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.publishers.list", "httpMethod": "GET", "path": "{role}/{roleId}/publishers", "response": {"$ref": "Publishers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "publisherId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.publishers.get", "httpMethod": "GET", "path": "{role}/{roleId}/publisher", "response": {"$ref": "Publisher"}}}}', true));
|
341 |
+
|
342 |
+
}
|
343 |
+
}
|
344 |
+
|
345 |
+
class Google_Advertiser extends Google_Model {
|
346 |
+
public $category;
|
347 |
+
public $contactEmail;
|
348 |
+
public $kind;
|
349 |
+
public $siteUrl;
|
350 |
+
public $contactPhone;
|
351 |
+
public $description;
|
352 |
+
public $payoutRank;
|
353 |
+
public $defaultLinkId;
|
354 |
+
protected $__epcSevenDayAverageType = 'Google_Money';
|
355 |
+
protected $__epcSevenDayAverageDataType = '';
|
356 |
+
public $epcSevenDayAverage;
|
357 |
+
public $commissionDuration;
|
358 |
+
public $status;
|
359 |
+
protected $__epcNinetyDayAverageType = 'Google_Money';
|
360 |
+
protected $__epcNinetyDayAverageDataType = '';
|
361 |
+
public $epcNinetyDayAverage;
|
362 |
+
public $allowPublisherCreatedLinks;
|
363 |
+
protected $__itemType = 'Google_Advertiser';
|
364 |
+
protected $__itemDataType = '';
|
365 |
+
public $item;
|
366 |
+
public $joinDate;
|
367 |
+
public $logoUrl;
|
368 |
+
public $id;
|
369 |
+
public $productFeedsEnabled;
|
370 |
+
public $name;
|
371 |
+
public function setCategory($category) {
|
372 |
+
$this->category = $category;
|
373 |
+
}
|
374 |
+
public function getCategory() {
|
375 |
+
return $this->category;
|
376 |
+
}
|
377 |
+
public function setContactEmail($contactEmail) {
|
378 |
+
$this->contactEmail = $contactEmail;
|
379 |
+
}
|
380 |
+
public function getContactEmail() {
|
381 |
+
return $this->contactEmail;
|
382 |
+
}
|
383 |
+
public function setKind($kind) {
|
384 |
+
$this->kind = $kind;
|
385 |
+
}
|
386 |
+
public function getKind() {
|
387 |
+
return $this->kind;
|
388 |
+
}
|
389 |
+
public function setSiteUrl($siteUrl) {
|
390 |
+
$this->siteUrl = $siteUrl;
|
391 |
+
}
|
392 |
+
public function getSiteUrl() {
|
393 |
+
return $this->siteUrl;
|
394 |
+
}
|
395 |
+
public function setContactPhone($contactPhone) {
|
396 |
+
$this->contactPhone = $contactPhone;
|
397 |
+
}
|
398 |
+
public function getContactPhone() {
|
399 |
+
return $this->contactPhone;
|
400 |
+
}
|
401 |
+
public function setDescription($description) {
|
402 |
+
$this->description = $description;
|
403 |
+
}
|
404 |
+
public function getDescription() {
|
405 |
+
return $this->description;
|
406 |
+
}
|
407 |
+
public function setPayoutRank($payoutRank) {
|
408 |
+
$this->payoutRank = $payoutRank;
|
409 |
+
}
|
410 |
+
public function getPayoutRank() {
|
411 |
+
return $this->payoutRank;
|
412 |
+
}
|
413 |
+
public function setDefaultLinkId($defaultLinkId) {
|
414 |
+
$this->defaultLinkId = $defaultLinkId;
|
415 |
+
}
|
416 |
+
public function getDefaultLinkId() {
|
417 |
+
return $this->defaultLinkId;
|
418 |
+
}
|
419 |
+
public function setEpcSevenDayAverage(Google_Money $epcSevenDayAverage) {
|
420 |
+
$this->epcSevenDayAverage = $epcSevenDayAverage;
|
421 |
+
}
|
422 |
+
public function getEpcSevenDayAverage() {
|
423 |
+
return $this->epcSevenDayAverage;
|
424 |
+
}
|
425 |
+
public function setCommissionDuration($commissionDuration) {
|
426 |
+
$this->commissionDuration = $commissionDuration;
|
427 |
+
}
|
428 |
+
public function getCommissionDuration() {
|
429 |
+
return $this->commissionDuration;
|
430 |
+
}
|
431 |
+
public function setStatus($status) {
|
432 |
+
$this->status = $status;
|
433 |
+
}
|
434 |
+
public function getStatus() {
|
435 |
+
return $this->status;
|
436 |
+
}
|
437 |
+
public function setEpcNinetyDayAverage(Google_Money $epcNinetyDayAverage) {
|
438 |
+
$this->epcNinetyDayAverage = $epcNinetyDayAverage;
|
439 |
+
}
|
440 |
+
public function getEpcNinetyDayAverage() {
|
441 |
+
return $this->epcNinetyDayAverage;
|
442 |
+
}
|
443 |
+
public function setAllowPublisherCreatedLinks($allowPublisherCreatedLinks) {
|
444 |
+
$this->allowPublisherCreatedLinks = $allowPublisherCreatedLinks;
|
445 |
+
}
|
446 |
+
public function getAllowPublisherCreatedLinks() {
|
447 |
+
return $this->allowPublisherCreatedLinks;
|
448 |
+
}
|
449 |
+
public function setItem(Google_Advertiser $item) {
|
450 |
+
$this->item = $item;
|
451 |
+
}
|
452 |
+
public function getItem() {
|
453 |
+
return $this->item;
|
454 |
+
}
|
455 |
+
public function setJoinDate($joinDate) {
|
456 |
+
$this->joinDate = $joinDate;
|
457 |
+
}
|
458 |
+
public function getJoinDate() {
|
459 |
+
return $this->joinDate;
|
460 |
+
}
|
461 |
+
public function setLogoUrl($logoUrl) {
|
462 |
+
$this->logoUrl = $logoUrl;
|
463 |
+
}
|
464 |
+
public function getLogoUrl() {
|
465 |
+
return $this->logoUrl;
|
466 |
+
}
|
467 |
+
public function setId($id) {
|
468 |
+
$this->id = $id;
|
469 |
+
}
|
470 |
+
public function getId() {
|
471 |
+
return $this->id;
|
472 |
+
}
|
473 |
+
public function setProductFeedsEnabled($productFeedsEnabled) {
|
474 |
+
$this->productFeedsEnabled = $productFeedsEnabled;
|
475 |
+
}
|
476 |
+
public function getProductFeedsEnabled() {
|
477 |
+
return $this->productFeedsEnabled;
|
478 |
+
}
|
479 |
+
public function setName($name) {
|
480 |
+
$this->name = $name;
|
481 |
+
}
|
482 |
+
public function getName() {
|
483 |
+
return $this->name;
|
484 |
+
}
|
485 |
+
}
|
486 |
+
|
487 |
+
class Google_Advertisers extends Google_Model {
|
488 |
+
public $nextPageToken;
|
489 |
+
protected $__itemsType = 'Google_Advertiser';
|
490 |
+
protected $__itemsDataType = 'array';
|
491 |
+
public $items;
|
492 |
+
public $kind;
|
493 |
+
public function setNextPageToken($nextPageToken) {
|
494 |
+
$this->nextPageToken = $nextPageToken;
|
495 |
+
}
|
496 |
+
public function getNextPageToken() {
|
497 |
+
return $this->nextPageToken;
|
498 |
+
}
|
499 |
+
public function setItems($items) {
|
500 |
+
$this->assertIsArray($items, 'Google_Advertiser', __METHOD__);
|
501 |
+
$this->items = $items;
|
502 |
+
}
|
503 |
+
public function getItems() {
|
504 |
+
return $this->items;
|
505 |
+
}
|
506 |
+
public function setKind($kind) {
|
507 |
+
$this->kind = $kind;
|
508 |
+
}
|
509 |
+
public function getKind() {
|
510 |
+
return $this->kind;
|
511 |
+
}
|
512 |
+
}
|
513 |
+
|
514 |
+
class Google_CcOffer extends Google_Model {
|
515 |
+
public $luggageInsurance;
|
516 |
+
public $creditLimitMin;
|
517 |
+
public $cardName;
|
518 |
+
public $creditLimitMax;
|
519 |
+
public $gracePeriodDisplay;
|
520 |
+
public $offerId;
|
521 |
+
public $rewardUnit;
|
522 |
+
public $minPurchaseRate;
|
523 |
+
public $cardBenefits;
|
524 |
+
protected $__rewardsType = 'Google_CcOfferRewards';
|
525 |
+
protected $__rewardsDataType = 'array';
|
526 |
+
public $rewards;
|
527 |
+
public $offersImmediateCashReward;
|
528 |
+
public $travelInsurance;
|
529 |
+
public $returnedPaymentFee;
|
530 |
+
public $kind;
|
531 |
+
public $issuer;
|
532 |
+
public $maxPurchaseRate;
|
533 |
+
public $minimumFinanceCharge;
|
534 |
+
public $existingCustomerOnly;
|
535 |
+
public $annualFeeDisplay;
|
536 |
+
public $initialSetupAndProcessingFee;
|
537 |
+
public $issuerId;
|
538 |
+
public $purchaseRateAdditionalDetails;
|
539 |
+
public $prohibitedCategories;
|
540 |
+
public $fraudLiability;
|
541 |
+
public $cashAdvanceTerms;
|
542 |
+
public $landingPageUrl;
|
543 |
+
public $introCashAdvanceTerms;
|
544 |
+
public $rewardsExpire;
|
545 |
+
public $introPurchaseTerms;
|
546 |
+
protected $__defaultFeesType = 'Google_CcOfferDefaultFees';
|
547 |
+
protected $__defaultFeesDataType = 'array';
|
548 |
+
public $defaultFees;
|
549 |
+
public $extendedWarranty;
|
550 |
+
public $emergencyInsurance;
|
551 |
+
public $firstYearAnnualFee;
|
552 |
+
public $trackingUrl;
|
553 |
+
public $latePaymentFee;
|
554 |
+
public $overLimitFee;
|
555 |
+
public $cardType;
|
556 |
+
public $approvedCategories;
|
557 |
+
public $rewardPartner;
|
558 |
+
public $introBalanceTransferTerms;
|
559 |
+
public $foreignCurrencyTransactionFee;
|
560 |
+
public $annualFee;
|
561 |
+
public $issuerWebsite;
|
562 |
+
public $variableRatesUpdateFrequency;
|
563 |
+
public $carRentalInsurance;
|
564 |
+
public $additionalCardBenefits;
|
565 |
+
public $ageMinimum;
|
566 |
+
public $balanceComputationMethod;
|
567 |
+
public $aprDisplay;
|
568 |
+
public $additionalCardHolderFee;
|
569 |
+
public $variableRatesLastUpdated;
|
570 |
+
public $network;
|
571 |
+
public $purchaseRateType;
|
572 |
+
public $statementCopyFee;
|
573 |
+
public $rewardsHaveBlackoutDates;
|
574 |
+
public $creditRatingDisplay;
|
575 |
+
public $flightAccidentInsurance;
|
576 |
+
public $annualRewardMaximum;
|
577 |
+
public $balanceTransferTerms;
|
578 |
+
protected $__bonusRewardsType = 'Google_CcOfferBonusRewards';
|
579 |
+
protected $__bonusRewardsDataType = 'array';
|
580 |
+
public $bonusRewards;
|
581 |
+
public $imageUrl;
|
582 |
+
public $ageMinimumDetails;
|
583 |
+
public $disclaimer;
|
584 |
+
public function setLuggageInsurance($luggageInsurance) {
|
585 |
+
$this->luggageInsurance = $luggageInsurance;
|
586 |
+
}
|
587 |
+
public function getLuggageInsurance() {
|
588 |
+
return $this->luggageInsurance;
|
589 |
+
}
|
590 |
+
public function setCreditLimitMin($creditLimitMin) {
|
591 |
+
$this->creditLimitMin = $creditLimitMin;
|
592 |
+
}
|
593 |
+
public function getCreditLimitMin() {
|
594 |
+
return $this->creditLimitMin;
|
595 |
+
}
|
596 |
+
public function setCardName($cardName) {
|
597 |
+
$this->cardName = $cardName;
|
598 |
+
}
|
599 |
+
public function getCardName() {
|
600 |
+
return $this->cardName;
|
601 |
+
}
|
602 |
+
public function setCreditLimitMax($creditLimitMax) {
|
603 |
+
$this->creditLimitMax = $creditLimitMax;
|
604 |
+
}
|
605 |
+
public function getCreditLimitMax() {
|
606 |
+
return $this->creditLimitMax;
|
607 |
+
}
|
608 |
+
public function setGracePeriodDisplay($gracePeriodDisplay) {
|
609 |
+
$this->gracePeriodDisplay = $gracePeriodDisplay;
|
610 |
+
}
|
611 |
+
public function getGracePeriodDisplay() {
|
612 |
+
return $this->gracePeriodDisplay;
|
613 |
+
}
|
614 |
+
public function setOfferId($offerId) {
|
615 |
+
$this->offerId = $offerId;
|
616 |
+
}
|
617 |
+
public function getOfferId() {
|
618 |
+
return $this->offerId;
|
619 |
+
}
|
620 |
+
public function setRewardUnit($rewardUnit) {
|
621 |
+
$this->rewardUnit = $rewardUnit;
|
622 |
+
}
|
623 |
+
public function getRewardUnit() {
|
624 |
+
return $this->rewardUnit;
|
625 |
+
}
|
626 |
+
public function setMinPurchaseRate($minPurchaseRate) {
|
627 |
+
$this->minPurchaseRate = $minPurchaseRate;
|
628 |
+
}
|
629 |
+
public function getMinPurchaseRate() {
|
630 |
+
return $this->minPurchaseRate;
|
631 |
+
}
|
632 |
+
public function setCardBenefits($cardBenefits) {
|
633 |
+
$this->cardBenefits = $cardBenefits;
|
634 |
+
}
|
635 |
+
public function getCardBenefits() {
|
636 |
+
return $this->cardBenefits;
|
637 |
+
}
|
638 |
+
public function setRewards($rewards) {
|
639 |
+
$this->assertIsArray($rewards, 'Google_CcOfferRewards', __METHOD__);
|
640 |
+
$this->rewards = $rewards;
|
641 |
+
}
|
642 |
+
public function getRewards() {
|
643 |
+
return $this->rewards;
|
644 |
+
}
|
645 |
+
public function setOffersImmediateCashReward($offersImmediateCashReward) {
|
646 |
+
$this->offersImmediateCashReward = $offersImmediateCashReward;
|
647 |
+
}
|
648 |
+
public function getOffersImmediateCashReward() {
|
649 |
+
return $this->offersImmediateCashReward;
|
650 |
+
}
|
651 |
+
public function setTravelInsurance($travelInsurance) {
|
652 |
+
$this->travelInsurance = $travelInsurance;
|
653 |
+
}
|
654 |
+
public function getTravelInsurance() {
|
655 |
+
return $this->travelInsurance;
|
656 |
+
}
|
657 |
+
public function setReturnedPaymentFee($returnedPaymentFee) {
|
658 |
+
$this->returnedPaymentFee = $returnedPaymentFee;
|
659 |
+
}
|
660 |
+
public function getReturnedPaymentFee() {
|
661 |
+
return $this->returnedPaymentFee;
|
662 |
+
}
|
663 |
+
public function setKind($kind) {
|
664 |
+
$this->kind = $kind;
|
665 |
+
}
|
666 |
+
public function getKind() {
|
667 |
+
return $this->kind;
|
668 |
+
}
|
669 |
+
public function setIssuer($issuer) {
|
670 |
+
$this->issuer = $issuer;
|
671 |
+
}
|
672 |
+
public function getIssuer() {
|
673 |
+
return $this->issuer;
|
674 |
+
}
|
675 |
+
public function setMaxPurchaseRate($maxPurchaseRate) {
|
676 |
+
$this->maxPurchaseRate = $maxPurchaseRate;
|
677 |
+
}
|
678 |
+
public function getMaxPurchaseRate() {
|
679 |
+
return $this->maxPurchaseRate;
|
680 |
+
}
|
681 |
+
public function setMinimumFinanceCharge($minimumFinanceCharge) {
|
682 |
+
$this->minimumFinanceCharge = $minimumFinanceCharge;
|
683 |
+
}
|
684 |
+
public function getMinimumFinanceCharge() {
|
685 |
+
return $this->minimumFinanceCharge;
|
686 |
+
}
|
687 |
+
public function setExistingCustomerOnly($existingCustomerOnly) {
|
688 |
+
$this->existingCustomerOnly = $existingCustomerOnly;
|
689 |
+
}
|
690 |
+
public function getExistingCustomerOnly() {
|
691 |
+
return $this->existingCustomerOnly;
|
692 |
+
}
|
693 |
+
public function setAnnualFeeDisplay($annualFeeDisplay) {
|
694 |
+
$this->annualFeeDisplay = $annualFeeDisplay;
|
695 |
+
}
|
696 |
+
public function getAnnualFeeDisplay() {
|
697 |
+
return $this->annualFeeDisplay;
|
698 |
+
}
|
699 |
+
public function setInitialSetupAndProcessingFee($initialSetupAndProcessingFee) {
|
700 |
+
$this->initialSetupAndProcessingFee = $initialSetupAndProcessingFee;
|
701 |
+
}
|
702 |
+
public function getInitialSetupAndProcessingFee() {
|
703 |
+
return $this->initialSetupAndProcessingFee;
|
704 |
+
}
|
705 |
+
public function setIssuerId($issuerId) {
|
706 |
+
$this->issuerId = $issuerId;
|
707 |
+
}
|
708 |
+
public function getIssuerId() {
|
709 |
+
return $this->issuerId;
|
710 |
+
}
|
711 |
+
public function setPurchaseRateAdditionalDetails($purchaseRateAdditionalDetails) {
|
712 |
+
$this->purchaseRateAdditionalDetails = $purchaseRateAdditionalDetails;
|
713 |
+
}
|
714 |
+
public function getPurchaseRateAdditionalDetails() {
|
715 |
+
return $this->purchaseRateAdditionalDetails;
|
716 |
+
}
|
717 |
+
public function setProhibitedCategories($prohibitedCategories) {
|
718 |
+
$this->prohibitedCategories = $prohibitedCategories;
|
719 |
+
}
|
720 |
+
public function getProhibitedCategories() {
|
721 |
+
return $this->prohibitedCategories;
|
722 |
+
}
|
723 |
+
public function setFraudLiability($fraudLiability) {
|
724 |
+
$this->fraudLiability = $fraudLiability;
|
725 |
+
}
|
726 |
+
public function getFraudLiability() {
|
727 |
+
return $this->fraudLiability;
|
728 |
+
}
|
729 |
+
public function setCashAdvanceTerms($cashAdvanceTerms) {
|
730 |
+
$this->cashAdvanceTerms = $cashAdvanceTerms;
|
731 |
+
}
|
732 |
+
public function getCashAdvanceTerms() {
|
733 |
+
return $this->cashAdvanceTerms;
|
734 |
+
}
|
735 |
+
public function setLandingPageUrl($landingPageUrl) {
|
736 |
+
$this->landingPageUrl = $landingPageUrl;
|
737 |
+
}
|
738 |
+
public function getLandingPageUrl() {
|
739 |
+
return $this->landingPageUrl;
|
740 |
+
}
|
741 |
+
public function setIntroCashAdvanceTerms($introCashAdvanceTerms) {
|
742 |
+
$this->introCashAdvanceTerms = $introCashAdvanceTerms;
|
743 |
+
}
|
744 |
+
public function getIntroCashAdvanceTerms() {
|
745 |
+
return $this->introCashAdvanceTerms;
|
746 |
+
}
|
747 |
+
public function setRewardsExpire($rewardsExpire) {
|
748 |
+
$this->rewardsExpire = $rewardsExpire;
|
749 |
+
}
|
750 |
+
public function getRewardsExpire() {
|
751 |
+
return $this->rewardsExpire;
|
752 |
+
}
|
753 |
+
public function setIntroPurchaseTerms($introPurchaseTerms) {
|
754 |
+
$this->introPurchaseTerms = $introPurchaseTerms;
|
755 |
+
}
|
756 |
+
public function getIntroPurchaseTerms() {
|
757 |
+
return $this->introPurchaseTerms;
|
758 |
+
}
|
759 |
+
public function setDefaultFees($defaultFees) {
|
760 |
+
$this->assertIsArray($defaultFees, 'Google_CcOfferDefaultFees', __METHOD__);
|
761 |
+
$this->defaultFees = $defaultFees;
|
762 |
+
}
|
763 |
+
public function getDefaultFees() {
|
764 |
+
return $this->defaultFees;
|
765 |
+
}
|
766 |
+
public function setExtendedWarranty($extendedWarranty) {
|
767 |
+
$this->extendedWarranty = $extendedWarranty;
|
768 |
+
}
|
769 |
+
public function getExtendedWarranty() {
|
770 |
+
return $this->extendedWarranty;
|
771 |
+
}
|
772 |
+
public function setEmergencyInsurance($emergencyInsurance) {
|
773 |
+
$this->emergencyInsurance = $emergencyInsurance;
|
774 |
+
}
|
775 |
+
public function getEmergencyInsurance() {
|
776 |
+
return $this->emergencyInsurance;
|
777 |
+
}
|
778 |
+
public function setFirstYearAnnualFee($firstYearAnnualFee) {
|
779 |
+
$this->firstYearAnnualFee = $firstYearAnnualFee;
|
780 |
+
}
|
781 |
+
public function getFirstYearAnnualFee() {
|
782 |
+
return $this->firstYearAnnualFee;
|
783 |
+
}
|
784 |
+
public function setTrackingUrl($trackingUrl) {
|
785 |
+
$this->trackingUrl = $trackingUrl;
|
786 |
+
}
|
787 |
+
public function getTrackingUrl() {
|
788 |
+
return $this->trackingUrl;
|
789 |
+
}
|
790 |
+
public function setLatePaymentFee($latePaymentFee) {
|
791 |
+
$this->latePaymentFee = $latePaymentFee;
|
792 |
+
}
|
793 |
+
public function getLatePaymentFee() {
|
794 |
+
return $this->latePaymentFee;
|
795 |
+
}
|
796 |
+
public function setOverLimitFee($overLimitFee) {
|
797 |
+
$this->overLimitFee = $overLimitFee;
|
798 |
+
}
|
799 |
+
public function getOverLimitFee() {
|
800 |
+
return $this->overLimitFee;
|
801 |
+
}
|
802 |
+
public function setCardType($cardType) {
|
803 |
+
$this->cardType = $cardType;
|
804 |
+
}
|
805 |
+
public function getCardType() {
|
806 |
+
return $this->cardType;
|
807 |
+
}
|
808 |
+
public function setApprovedCategories($approvedCategories) {
|
809 |
+
$this->approvedCategories = $approvedCategories;
|
810 |
+
}
|
811 |
+
public function getApprovedCategories() {
|
812 |
+
return $this->approvedCategories;
|
813 |
+
}
|
814 |
+
public function setRewardPartner($rewardPartner) {
|
815 |
+
$this->rewardPartner = $rewardPartner;
|
816 |
+
}
|
817 |
+
public function getRewardPartner() {
|
818 |
+
return $this->rewardPartner;
|
819 |
+
}
|
820 |
+
public function setIntroBalanceTransferTerms($introBalanceTransferTerms) {
|
821 |
+
$this->introBalanceTransferTerms = $introBalanceTransferTerms;
|
822 |
+
}
|
823 |
+
public function getIntroBalanceTransferTerms() {
|
824 |
+
return $this->introBalanceTransferTerms;
|
825 |
+
}
|
826 |
+
public function setForeignCurrencyTransactionFee($foreignCurrencyTransactionFee) {
|
827 |
+
$this->foreignCurrencyTransactionFee = $foreignCurrencyTransactionFee;
|
828 |
+
}
|
829 |
+
public function getForeignCurrencyTransactionFee() {
|
830 |
+
return $this->foreignCurrencyTransactionFee;
|
831 |
+
}
|
832 |
+
public function setAnnualFee($annualFee) {
|
833 |
+
$this->annualFee = $annualFee;
|
834 |
+
}
|
835 |
+
public function getAnnualFee() {
|
836 |
+
return $this->annualFee;
|
837 |
+
}
|
838 |
+
public function setIssuerWebsite($issuerWebsite) {
|
839 |
+
$this->issuerWebsite = $issuerWebsite;
|
840 |
+
}
|
841 |
+
public function getIssuerWebsite() {
|
842 |
+
return $this->issuerWebsite;
|
843 |
+
}
|
844 |
+
public function setVariableRatesUpdateFrequency($variableRatesUpdateFrequency) {
|
845 |
+
$this->variableRatesUpdateFrequency = $variableRatesUpdateFrequency;
|
846 |
+
}
|
847 |
+
public function getVariableRatesUpdateFrequency() {
|
848 |
+
return $this->variableRatesUpdateFrequency;
|
849 |
+
}
|
850 |
+
public function setCarRentalInsurance($carRentalInsurance) {
|
851 |
+
$this->carRentalInsurance = $carRentalInsurance;
|
852 |
+
}
|
853 |
+
public function getCarRentalInsurance() {
|
854 |
+
return $this->carRentalInsurance;
|
855 |
+
}
|
856 |
+
public function setAdditionalCardBenefits($additionalCardBenefits) {
|
857 |
+
$this->additionalCardBenefits = $additionalCardBenefits;
|
858 |
+
}
|
859 |
+
public function getAdditionalCardBenefits() {
|
860 |
+
return $this->additionalCardBenefits;
|
861 |
+
}
|
862 |
+
public function setAgeMinimum($ageMinimum) {
|
863 |
+
$this->ageMinimum = $ageMinimum;
|
864 |
+
}
|
865 |
+
public function getAgeMinimum() {
|
866 |
+
return $this->ageMinimum;
|
867 |
+
}
|
868 |
+
public function setBalanceComputationMethod($balanceComputationMethod) {
|
869 |
+
$this->balanceComputationMethod = $balanceComputationMethod;
|
870 |
+
}
|
871 |
+
public function getBalanceComputationMethod() {
|
872 |
+
return $this->balanceComputationMethod;
|
873 |
+
}
|
874 |
+
public function setAprDisplay($aprDisplay) {
|
875 |
+
$this->aprDisplay = $aprDisplay;
|
876 |
+
}
|
877 |
+
public function getAprDisplay() {
|
878 |
+
return $this->aprDisplay;
|
879 |
+
}
|
880 |
+
public function setAdditionalCardHolderFee($additionalCardHolderFee) {
|
881 |
+
$this->additionalCardHolderFee = $additionalCardHolderFee;
|
882 |
+
}
|
883 |
+
public function getAdditionalCardHolderFee() {
|
884 |
+
return $this->additionalCardHolderFee;
|
885 |
+
}
|
886 |
+
public function setVariableRatesLastUpdated($variableRatesLastUpdated) {
|
887 |
+
$this->variableRatesLastUpdated = $variableRatesLastUpdated;
|
888 |
+
}
|
889 |
+
public function getVariableRatesLastUpdated() {
|
890 |
+
return $this->variableRatesLastUpdated;
|
891 |
+
}
|
892 |
+
public function setNetwork($network) {
|
893 |
+
$this->network = $network;
|
894 |
+
}
|
895 |
+
public function getNetwork() {
|
896 |
+
return $this->network;
|
897 |
+
}
|
898 |
+
public function setPurchaseRateType($purchaseRateType) {
|
899 |
+
$this->purchaseRateType = $purchaseRateType;
|
900 |
+
}
|
901 |
+
public function getPurchaseRateType() {
|
902 |
+
return $this->purchaseRateType;
|
903 |
+
}
|
904 |
+
public function setStatementCopyFee($statementCopyFee) {
|
905 |
+
$this->statementCopyFee = $statementCopyFee;
|
906 |
+
}
|
907 |
+
public function getStatementCopyFee() {
|
908 |
+
return $this->statementCopyFee;
|
909 |
+
}
|
910 |
+
public function setRewardsHaveBlackoutDates($rewardsHaveBlackoutDates) {
|
911 |
+
$this->rewardsHaveBlackoutDates = $rewardsHaveBlackoutDates;
|
912 |
+
}
|
913 |
+
public function getRewardsHaveBlackoutDates() {
|
914 |
+
return $this->rewardsHaveBlackoutDates;
|
915 |
+
}
|
916 |
+
public function setCreditRatingDisplay($creditRatingDisplay) {
|
917 |
+
$this->creditRatingDisplay = $creditRatingDisplay;
|
918 |
+
}
|
919 |
+
public function getCreditRatingDisplay() {
|
920 |
+
return $this->creditRatingDisplay;
|
921 |
+
}
|
922 |
+
public function setFlightAccidentInsurance($flightAccidentInsurance) {
|
923 |
+
$this->flightAccidentInsurance = $flightAccidentInsurance;
|
924 |
+
}
|
925 |
+
public function getFlightAccidentInsurance() {
|
926 |
+
return $this->flightAccidentInsurance;
|
927 |
+
}
|
928 |
+
public function setAnnualRewardMaximum($annualRewardMaximum) {
|
929 |
+
$this->annualRewardMaximum = $annualRewardMaximum;
|
930 |
+
}
|
931 |
+
public function getAnnualRewardMaximum() {
|
932 |
+
return $this->annualRewardMaximum;
|
933 |
+
}
|
934 |
+
public function setBalanceTransferTerms($balanceTransferTerms) {
|
935 |
+
$this->balanceTransferTerms = $balanceTransferTerms;
|
936 |
+
}
|
937 |
+
public function getBalanceTransferTerms() {
|
938 |
+
return $this->balanceTransferTerms;
|
939 |
+
}
|
940 |
+
public function setBonusRewards($bonusRewards) {
|
941 |
+
$this->assertIsArray($bonusRewards, 'Google_CcOfferBonusRewards', __METHOD__);
|
942 |
+
$this->bonusRewards = $bonusRewards;
|
943 |
+
}
|
944 |
+
public function getBonusRewards() {
|
945 |
+
return $this->bonusRewards;
|
946 |
+
}
|
947 |
+
public function setImageUrl($imageUrl) {
|
948 |
+
$this->imageUrl = $imageUrl;
|
949 |
+
}
|
950 |
+
public function getImageUrl() {
|
951 |
+
return $this->imageUrl;
|
952 |
+
}
|
953 |
+
public function setAgeMinimumDetails($ageMinimumDetails) {
|
954 |
+
$this->ageMinimumDetails = $ageMinimumDetails;
|
955 |
+
}
|
956 |
+
public function getAgeMinimumDetails() {
|
957 |
+
return $this->ageMinimumDetails;
|
958 |
+
}
|
959 |
+
public function setDisclaimer($disclaimer) {
|
960 |
+
$this->disclaimer = $disclaimer;
|
961 |
+
}
|
962 |
+
public function getDisclaimer() {
|
963 |
+
return $this->disclaimer;
|
964 |
+
}
|
965 |
+
}
|
966 |
+
|
967 |
+
class Google_CcOfferBonusRewards extends Google_Model {
|
968 |
+
public $amount;
|
969 |
+
public $details;
|
970 |
+
public function setAmount($amount) {
|
971 |
+
$this->amount = $amount;
|
972 |
+
}
|
973 |
+
public function getAmount() {
|
974 |
+
return $this->amount;
|
975 |
+
}
|
976 |
+
public function setDetails($details) {
|
977 |
+
$this->details = $details;
|
978 |
+
}
|
979 |
+
public function getDetails() {
|
980 |
+
return $this->details;
|
981 |
+
}
|
982 |
+
}
|
983 |
+
|
984 |
+
class Google_CcOfferDefaultFees extends Google_Model {
|
985 |
+
public $category;
|
986 |
+
public $maxRate;
|
987 |
+
public $minRate;
|
988 |
+
public $rateType;
|
989 |
+
public function setCategory($category) {
|
990 |
+
$this->category = $category;
|
991 |
+
}
|
992 |
+
public function getCategory() {
|
993 |
+
return $this->category;
|
994 |
+
}
|
995 |
+
public function setMaxRate($maxRate) {
|
996 |
+
$this->maxRate = $maxRate;
|
997 |
+
}
|
998 |
+
public function getMaxRate() {
|
999 |
+
return $this->maxRate;
|
1000 |
+
}
|
1001 |
+
public function setMinRate($minRate) {
|
1002 |
+
$this->minRate = $minRate;
|
1003 |
+
}
|
1004 |
+
public function getMinRate() {
|
1005 |
+
return $this->minRate;
|
1006 |
+
}
|
1007 |
+
public function setRateType($rateType) {
|
1008 |
+
$this->rateType = $rateType;
|
1009 |
+
}
|
1010 |
+
public function getRateType() {
|
1011 |
+
return $this->rateType;
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
class Google_CcOfferRewards extends Google_Model {
|
1016 |
+
public $category;
|
1017 |
+
public $minRewardTier;
|
1018 |
+
public $maxRewardTier;
|
1019 |
+
public $expirationMonths;
|
1020 |
+
public $amount;
|
1021 |
+
public $additionalDetails;
|
1022 |
+
public function setCategory($category) {
|
1023 |
+
$this->category = $category;
|
1024 |
+
}
|
1025 |
+
public function getCategory() {
|
1026 |
+
return $this->category;
|
1027 |
+
}
|
1028 |
+
public function setMinRewardTier($minRewardTier) {
|
1029 |
+
$this->minRewardTier = $minRewardTier;
|
1030 |
+
}
|
1031 |
+
public function getMinRewardTier() {
|
1032 |
+
return $this->minRewardTier;
|
1033 |
+
}
|
1034 |
+
public function setMaxRewardTier($maxRewardTier) {
|
1035 |
+
$this->maxRewardTier = $maxRewardTier;
|
1036 |
+
}
|
1037 |
+
public function getMaxRewardTier() {
|
1038 |
+
return $this->maxRewardTier;
|
1039 |
+
}
|
1040 |
+
public function setExpirationMonths($expirationMonths) {
|
1041 |
+
$this->expirationMonths = $expirationMonths;
|
1042 |
+
}
|
1043 |
+
public function getExpirationMonths() {
|
1044 |
+
return $this->expirationMonths;
|
1045 |
+
}
|
1046 |
+
public function setAmount($amount) {
|
1047 |
+
$this->amount = $amount;
|
1048 |
+
}
|
1049 |
+
public function getAmount() {
|
1050 |
+
return $this->amount;
|
1051 |
+
}
|
1052 |
+
public function setAdditionalDetails($additionalDetails) {
|
1053 |
+
$this->additionalDetails = $additionalDetails;
|
1054 |
+
}
|
1055 |
+
public function getAdditionalDetails() {
|
1056 |
+
return $this->additionalDetails;
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
class Google_CcOffers extends Google_Model {
|
1061 |
+
protected $__itemsType = 'Google_CcOffer';
|
1062 |
+
protected $__itemsDataType = 'array';
|
1063 |
+
public $items;
|
1064 |
+
public $kind;
|
1065 |
+
public function setItems($items) {
|
1066 |
+
$this->assertIsArray($items, 'Google_CcOffer', __METHOD__);
|
1067 |
+
$this->items = $items;
|
1068 |
+
}
|
1069 |
+
public function getItems() {
|
1070 |
+
return $this->items;
|
1071 |
+
}
|
1072 |
+
public function setKind($kind) {
|
1073 |
+
$this->kind = $kind;
|
1074 |
+
}
|
1075 |
+
public function getKind() {
|
1076 |
+
return $this->kind;
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
class Google_Event extends Google_Model {
|
1081 |
+
protected $__networkFeeType = 'Google_Money';
|
1082 |
+
protected $__networkFeeDataType = '';
|
1083 |
+
public $networkFee;
|
1084 |
+
public $advertiserName;
|
1085 |
+
public $kind;
|
1086 |
+
public $modifyDate;
|
1087 |
+
public $type;
|
1088 |
+
public $orderId;
|
1089 |
+
public $publisherName;
|
1090 |
+
public $memberId;
|
1091 |
+
public $advertiserId;
|
1092 |
+
public $status;
|
1093 |
+
public $chargeId;
|
1094 |
+
protected $__productsType = 'Google_EventProducts';
|
1095 |
+
protected $__productsDataType = 'array';
|
1096 |
+
public $products;
|
1097 |
+
protected $__earningsType = 'Google_Money';
|
1098 |
+
protected $__earningsDataType = '';
|
1099 |
+
public $earnings;
|
1100 |
+
public $chargeType;
|
1101 |
+
protected $__publisherFeeType = 'Google_Money';
|
1102 |
+
protected $__publisherFeeDataType = '';
|
1103 |
+
public $publisherFee;
|
1104 |
+
protected $__commissionableSalesType = 'Google_Money';
|
1105 |
+
protected $__commissionableSalesDataType = '';
|
1106 |
+
public $commissionableSales;
|
1107 |
+
public $publisherId;
|
1108 |
+
public $eventDate;
|
1109 |
+
public function setNetworkFee(Google_Money $networkFee) {
|
1110 |
+
$this->networkFee = $networkFee;
|
1111 |
+
}
|
1112 |
+
public function getNetworkFee() {
|
1113 |
+
return $this->networkFee;
|
1114 |
+
}
|
1115 |
+
public function setAdvertiserName($advertiserName) {
|
1116 |
+
$this->advertiserName = $advertiserName;
|
1117 |
+
}
|
1118 |
+
public function getAdvertiserName() {
|
1119 |
+
return $this->advertiserName;
|
1120 |
+
}
|
1121 |
+
public function setKind($kind) {
|
1122 |
+
$this->kind = $kind;
|
1123 |
+
}
|
1124 |
+
public function getKind() {
|
1125 |
+
return $this->kind;
|
1126 |
+
}
|
1127 |
+
public function setModifyDate($modifyDate) {
|
1128 |
+
$this->modifyDate = $modifyDate;
|
1129 |
+
}
|
1130 |
+
public function getModifyDate() {
|
1131 |
+
return $this->modifyDate;
|
1132 |
+
}
|
1133 |
+
public function setType($type) {
|
1134 |
+
$this->type = $type;
|
1135 |
+
}
|
1136 |
+
public function getType() {
|
1137 |
+
return $this->type;
|
1138 |
+
}
|
1139 |
+
public function setOrderId($orderId) {
|
1140 |
+
$this->orderId = $orderId;
|
1141 |
+
}
|
1142 |
+
public function getOrderId() {
|
1143 |
+
return $this->orderId;
|
1144 |
+
}
|
1145 |
+
public function setPublisherName($publisherName) {
|
1146 |
+
$this->publisherName = $publisherName;
|
1147 |
+
}
|
1148 |
+
public function getPublisherName() {
|
1149 |
+
return $this->publisherName;
|
1150 |
+
}
|
1151 |
+
public function setMemberId($memberId) {
|
1152 |
+
$this->memberId = $memberId;
|
1153 |
+
}
|
1154 |
+
public function getMemberId() {
|
1155 |
+
return $this->memberId;
|
1156 |
+
}
|
1157 |
+
public function setAdvertiserId($advertiserId) {
|
1158 |
+
$this->advertiserId = $advertiserId;
|
1159 |
+
}
|
1160 |
+
public function getAdvertiserId() {
|
1161 |
+
return $this->advertiserId;
|
1162 |
+
}
|
1163 |
+
public function setStatus($status) {
|
1164 |
+
$this->status = $status;
|
1165 |
+
}
|
1166 |
+
public function getStatus() {
|
1167 |
+
return $this->status;
|
1168 |
+
}
|
1169 |
+
public function setChargeId($chargeId) {
|
1170 |
+
$this->chargeId = $chargeId;
|
1171 |
+
}
|
1172 |
+
public function getChargeId() {
|
1173 |
+
return $this->chargeId;
|
1174 |
+
}
|
1175 |
+
public function setProducts($products) {
|
1176 |
+
$this->assertIsArray($products, 'Google_EventProducts', __METHOD__);
|
1177 |
+
$this->products = $products;
|
1178 |
+
}
|
1179 |
+
public function getProducts() {
|
1180 |
+
return $this->products;
|
1181 |
+
}
|
1182 |
+
public function setEarnings(Google_Money $earnings) {
|
1183 |
+
$this->earnings = $earnings;
|
1184 |
+
}
|
1185 |
+
public function getEarnings() {
|
1186 |
+
return $this->earnings;
|
1187 |
+
}
|
1188 |
+
public function setChargeType($chargeType) {
|
1189 |
+
$this->chargeType = $chargeType;
|
1190 |
+
}
|
1191 |
+
public function getChargeType() {
|
1192 |
+
return $this->chargeType;
|
1193 |
+
}
|
1194 |
+
public function setPublisherFee(Google_Money $publisherFee) {
|
1195 |
+
$this->publisherFee = $publisherFee;
|
1196 |
+
}
|
1197 |
+
public function getPublisherFee() {
|
1198 |
+
return $this->publisherFee;
|
1199 |
+
}
|
1200 |
+
public function setCommissionableSales(Google_Money $commissionableSales) {
|
1201 |
+
$this->commissionableSales = $commissionableSales;
|
1202 |
+
}
|
1203 |
+
public function getCommissionableSales() {
|
1204 |
+
return $this->commissionableSales;
|
1205 |
+
}
|
1206 |
+
public function setPublisherId($publisherId) {
|
1207 |
+
$this->publisherId = $publisherId;
|
1208 |
+
}
|
1209 |
+
public function getPublisherId() {
|
1210 |
+
return $this->publisherId;
|
1211 |
+
}
|
1212 |
+
public function setEventDate($eventDate) {
|
1213 |
+
$this->eventDate = $eventDate;
|
1214 |
+
}
|
1215 |
+
public function getEventDate() {
|
1216 |
+
return $this->eventDate;
|
1217 |
+
}
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
class Google_EventProducts extends Google_Model {
|
1221 |
+
protected $__networkFeeType = 'Google_Money';
|
1222 |
+
protected $__networkFeeDataType = '';
|
1223 |
+
public $networkFee;
|
1224 |
+
public $sku;
|
1225 |
+
public $categoryName;
|
1226 |
+
public $skuName;
|
1227 |
+
protected $__publisherFeeType = 'Google_Money';
|
1228 |
+
protected $__publisherFeeDataType = '';
|
1229 |
+
public $publisherFee;
|
1230 |
+
protected $__earningsType = 'Google_Money';
|
1231 |
+
protected $__earningsDataType = '';
|
1232 |
+
public $earnings;
|
1233 |
+
protected $__unitPriceType = 'Google_Money';
|
1234 |
+
protected $__unitPriceDataType = '';
|
1235 |
+
public $unitPrice;
|
1236 |
+
public $categoryId;
|
1237 |
+
public $quantity;
|
1238 |
+
public function setNetworkFee(Google_Money $networkFee) {
|
1239 |
+
$this->networkFee = $networkFee;
|
1240 |
+
}
|
1241 |
+
public function getNetworkFee() {
|
1242 |
+
return $this->networkFee;
|
1243 |
+
}
|
1244 |
+
public function setSku($sku) {
|
1245 |
+
$this->sku = $sku;
|
1246 |
+
}
|
1247 |
+
public function getSku() {
|
1248 |
+
return $this->sku;
|
1249 |
+
}
|
1250 |
+
public function setCategoryName($categoryName) {
|
1251 |
+
$this->categoryName = $categoryName;
|
1252 |
+
}
|
1253 |
+
public function getCategoryName() {
|
1254 |
+
return $this->categoryName;
|
1255 |
+
}
|
1256 |
+
public function setSkuName($skuName) {
|
1257 |
+
$this->skuName = $skuName;
|
1258 |
+
}
|
1259 |
+
public function getSkuName() {
|
1260 |
+
return $this->skuName;
|
1261 |
+
}
|
1262 |
+
public function setPublisherFee(Google_Money $publisherFee) {
|
1263 |
+
$this->publisherFee = $publisherFee;
|
1264 |
+
}
|
1265 |
+
public function getPublisherFee() {
|
1266 |
+
return $this->publisherFee;
|
1267 |
+
}
|
1268 |
+
public function setEarnings(Google_Money $earnings) {
|
1269 |
+
$this->earnings = $earnings;
|
1270 |
+
}
|
1271 |
+
public function getEarnings() {
|
1272 |
+
return $this->earnings;
|
1273 |
+
}
|
1274 |
+
public function setUnitPrice(Google_Money $unitPrice) {
|
1275 |
+
$this->unitPrice = $unitPrice;
|
1276 |
+
}
|
1277 |
+
public function getUnitPrice() {
|
1278 |
+
return $this->unitPrice;
|
1279 |
+
}
|
1280 |
+
public function setCategoryId($categoryId) {
|
1281 |
+
$this->categoryId = $categoryId;
|
1282 |
+
}
|
1283 |
+
public function getCategoryId() {
|
1284 |
+
return $this->categoryId;
|
1285 |
+
}
|
1286 |
+
public function setQuantity($quantity) {
|
1287 |
+
$this->quantity = $quantity;
|
1288 |
+
}
|
1289 |
+
public function getQuantity() {
|
1290 |
+
return $this->quantity;
|
1291 |
+
}
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
class Google_Events extends Google_Model {
|
1295 |
+
public $nextPageToken;
|
1296 |
+
protected $__itemsType = 'Google_Event';
|
1297 |
+
protected $__itemsDataType = 'array';
|
1298 |
+
public $items;
|
1299 |
+
public $kind;
|
1300 |
+
public function setNextPageToken($nextPageToken) {
|
1301 |
+
$this->nextPageToken = $nextPageToken;
|
1302 |
+
}
|
1303 |
+
public function getNextPageToken() {
|
1304 |
+
return $this->nextPageToken;
|
1305 |
+
}
|
1306 |
+
public function setItems($items) {
|
1307 |
+
$this->assertIsArray($items, 'Google_Event', __METHOD__);
|
1308 |
+
$this->items = $items;
|
1309 |
+
}
|
1310 |
+
public function getItems() {
|
1311 |
+
return $this->items;
|
1312 |
+
}
|
1313 |
+
public function setKind($kind) {
|
1314 |
+
$this->kind = $kind;
|
1315 |
+
}
|
1316 |
+
public function getKind() {
|
1317 |
+
return $this->kind;
|
1318 |
+
}
|
1319 |
+
}
|
1320 |
+
|
1321 |
+
class Google_Link extends Google_Model {
|
1322 |
+
public $isActive;
|
1323 |
+
public $linkType;
|
1324 |
+
public $kind;
|
1325 |
+
public $endDate;
|
1326 |
+
public $description;
|
1327 |
+
public $name;
|
1328 |
+
public $startDate;
|
1329 |
+
public $createDate;
|
1330 |
+
public $imageAltText;
|
1331 |
+
public $id;
|
1332 |
+
public $advertiserId;
|
1333 |
+
public $impressionTrackingUrl;
|
1334 |
+
public $promotionType;
|
1335 |
+
public $duration;
|
1336 |
+
public $authorship;
|
1337 |
+
public $availability;
|
1338 |
+
public $clickTrackingUrl;
|
1339 |
+
public $destinationUrl;
|
1340 |
+
public function setIsActive($isActive) {
|
1341 |
+
$this->isActive = $isActive;
|
1342 |
+
}
|
1343 |
+
public function getIsActive() {
|
1344 |
+
return $this->isActive;
|
1345 |
+
}
|
1346 |
+
public function setLinkType($linkType) {
|
1347 |
+
$this->linkType = $linkType;
|
1348 |
+
}
|
1349 |
+
public function getLinkType() {
|
1350 |
+
return $this->linkType;
|
1351 |
+
}
|
1352 |
+
public function setKind($kind) {
|
1353 |
+
$this->kind = $kind;
|
1354 |
+
}
|
1355 |
+
public function getKind() {
|
1356 |
+
return $this->kind;
|
1357 |
+
}
|
1358 |
+
public function setEndDate($endDate) {
|
1359 |
+
$this->endDate = $endDate;
|
1360 |
+
}
|
1361 |
+
public function getEndDate() {
|
1362 |
+
return $this->endDate;
|
1363 |
+
}
|
1364 |
+
public function setDescription($description) {
|
1365 |
+
$this->description = $description;
|
1366 |
+
}
|
1367 |
+
public function getDescription() {
|
1368 |
+
return $this->description;
|
1369 |
+
}
|
1370 |
+
public function setName($name) {
|
1371 |
+
$this->name = $name;
|
1372 |
+
}
|
1373 |
+
public function getName() {
|
1374 |
+
return $this->name;
|
1375 |
+
}
|
1376 |
+
public function setStartDate($startDate) {
|
1377 |
+
$this->startDate = $startDate;
|
1378 |
+
}
|
1379 |
+
public function getStartDate() {
|
1380 |
+
return $this->startDate;
|
1381 |
+
}
|
1382 |
+
public function setCreateDate($createDate) {
|
1383 |
+
$this->createDate = $createDate;
|
1384 |
+
}
|
1385 |
+
public function getCreateDate() {
|
1386 |
+
return $this->createDate;
|
1387 |
+
}
|
1388 |
+
public function setImageAltText($imageAltText) {
|
1389 |
+
$this->imageAltText = $imageAltText;
|
1390 |
+
}
|
1391 |
+
public function getImageAltText() {
|
1392 |
+
return $this->imageAltText;
|
1393 |
+
}
|
1394 |
+
public function setId($id) {
|
1395 |
+
$this->id = $id;
|
1396 |
+
}
|
1397 |
+
public function getId() {
|
1398 |
+
return $this->id;
|
1399 |
+
}
|
1400 |
+
public function setAdvertiserId($advertiserId) {
|
1401 |
+
$this->advertiserId = $advertiserId;
|
1402 |
+
}
|
1403 |
+
public function getAdvertiserId() {
|
1404 |
+
return $this->advertiserId;
|
1405 |
+
}
|
1406 |
+
public function setImpressionTrackingUrl($impressionTrackingUrl) {
|
1407 |
+
$this->impressionTrackingUrl = $impressionTrackingUrl;
|
1408 |
+
}
|
1409 |
+
public function getImpressionTrackingUrl() {
|
1410 |
+
return $this->impressionTrackingUrl;
|
1411 |
+
}
|
1412 |
+
public function setPromotionType($promotionType) {
|
1413 |
+
$this->promotionType = $promotionType;
|
1414 |
+
}
|
1415 |
+
public function getPromotionType() {
|
1416 |
+
return $this->promotionType;
|
1417 |
+
}
|
1418 |
+
public function setDuration($duration) {
|
1419 |
+
$this->duration = $duration;
|
1420 |
+
}
|
1421 |
+
public function getDuration() {
|
1422 |
+
return $this->duration;
|
1423 |
+
}
|
1424 |
+
public function setAuthorship($authorship) {
|
1425 |
+
$this->authorship = $authorship;
|
1426 |
+
}
|
1427 |
+
public function getAuthorship() {
|
1428 |
+
return $this->authorship;
|
1429 |
+
}
|
1430 |
+
public function setAvailability($availability) {
|
1431 |
+
$this->availability = $availability;
|
1432 |
+
}
|
1433 |
+
public function getAvailability() {
|
1434 |
+
return $this->availability;
|
1435 |
+
}
|
1436 |
+
public function setClickTrackingUrl($clickTrackingUrl) {
|
1437 |
+
$this->clickTrackingUrl = $clickTrackingUrl;
|
1438 |
+
}
|
1439 |
+
public function getClickTrackingUrl() {
|
1440 |
+
return $this->clickTrackingUrl;
|
1441 |
+
}
|
1442 |
+
public function setDestinationUrl($destinationUrl) {
|
1443 |
+
$this->destinationUrl = $destinationUrl;
|
1444 |
+
}
|
1445 |
+
public function getDestinationUrl() {
|
1446 |
+
return $this->destinationUrl;
|
1447 |
+
}
|
1448 |
+
}
|
1449 |
+
|
1450 |
+
class Google_Links extends Google_Model {
|
1451 |
+
public $nextPageToken;
|
1452 |
+
protected $__itemsType = 'Google_Link';
|
1453 |
+
protected $__itemsDataType = 'array';
|
1454 |
+
public $items;
|
1455 |
+
public $kind;
|
1456 |
+
public function setNextPageToken($nextPageToken) {
|
1457 |
+
$this->nextPageToken = $nextPageToken;
|
1458 |
+
}
|
1459 |
+
public function getNextPageToken() {
|
1460 |
+
return $this->nextPageToken;
|
1461 |
+
}
|
1462 |
+
public function setItems($items) {
|
1463 |
+
$this->assertIsArray($items, 'Google_Link', __METHOD__);
|
1464 |
+
$this->items = $items;
|
1465 |
+
}
|
1466 |
+
public function getItems() {
|
1467 |
+
return $this->items;
|
1468 |
+
}
|
1469 |
+
public function setKind($kind) {
|
1470 |
+
$this->kind = $kind;
|
1471 |
+
}
|
1472 |
+
public function getKind() {
|
1473 |
+
return $this->kind;
|
1474 |
+
}
|
1475 |
+
}
|
1476 |
+
|
1477 |
+
class Google_Money extends Google_Model {
|
1478 |
+
public $amount;
|
1479 |
+
public $currencyCode;
|
1480 |
+
public function setAmount($amount) {
|
1481 |
+
$this->amount = $amount;
|
1482 |
+
}
|
1483 |
+
public function getAmount() {
|
1484 |
+
return $this->amount;
|
1485 |
+
}
|
1486 |
+
public function setCurrencyCode($currencyCode) {
|
1487 |
+
$this->currencyCode = $currencyCode;
|
1488 |
+
}
|
1489 |
+
public function getCurrencyCode() {
|
1490 |
+
return $this->currencyCode;
|
1491 |
+
}
|
1492 |
+
}
|
1493 |
+
|
1494 |
+
class Google_Publisher extends Google_Model {
|
1495 |
+
public $status;
|
1496 |
+
public $kind;
|
1497 |
+
public $name;
|
1498 |
+
public $classification;
|
1499 |
+
protected $__epcSevenDayAverageType = 'Google_Money';
|
1500 |
+
protected $__epcSevenDayAverageDataType = '';
|
1501 |
+
public $epcSevenDayAverage;
|
1502 |
+
public $payoutRank;
|
1503 |
+
protected $__epcNinetyDayAverageType = 'Google_Money';
|
1504 |
+
protected $__epcNinetyDayAverageDataType = '';
|
1505 |
+
public $epcNinetyDayAverage;
|
1506 |
+
protected $__itemType = 'Google_Publisher';
|
1507 |
+
protected $__itemDataType = '';
|
1508 |
+
public $item;
|
1509 |
+
public $joinDate;
|
1510 |
+
public $sites;
|
1511 |
+
public $id;
|
1512 |
+
public function setStatus($status) {
|
1513 |
+
$this->status = $status;
|
1514 |
+
}
|
1515 |
+
public function getStatus() {
|
1516 |
+
return $this->status;
|
1517 |
+
}
|
1518 |
+
public function setKind($kind) {
|
1519 |
+
$this->kind = $kind;
|
1520 |
+
}
|
1521 |
+
public function getKind() {
|
1522 |
+
return $this->kind;
|
1523 |
+
}
|
1524 |
+
public function setName($name) {
|
1525 |
+
$this->name = $name;
|
1526 |
+
}
|
1527 |
+
public function getName() {
|
1528 |
+
return $this->name;
|
1529 |
+
}
|
1530 |
+
public function setClassification($classification) {
|
1531 |
+
$this->classification = $classification;
|
1532 |
+
}
|
1533 |
+
public function getClassification() {
|
1534 |
+
return $this->classification;
|
1535 |
+
}
|
1536 |
+
public function setEpcSevenDayAverage(Google_Money $epcSevenDayAverage) {
|
1537 |
+
$this->epcSevenDayAverage = $epcSevenDayAverage;
|
1538 |
+
}
|
1539 |
+
public function getEpcSevenDayAverage() {
|
1540 |
+
return $this->epcSevenDayAverage;
|
1541 |
+
}
|
1542 |
+
public function setPayoutRank($payoutRank) {
|
1543 |
+
$this->payoutRank = $payoutRank;
|
1544 |
+
}
|
1545 |
+
public function getPayoutRank() {
|
1546 |
+
return $this->payoutRank;
|
1547 |
+
}
|
1548 |
+
public function setEpcNinetyDayAverage(Google_Money $epcNinetyDayAverage) {
|
1549 |
+
$this->epcNinetyDayAverage = $epcNinetyDayAverage;
|
1550 |
+
}
|
1551 |
+
public function getEpcNinetyDayAverage() {
|
1552 |
+
return $this->epcNinetyDayAverage;
|
1553 |
+
}
|
1554 |
+
public function setItem(Google_Publisher $item) {
|
1555 |
+
$this->item = $item;
|
1556 |
+
}
|
1557 |
+
public function getItem() {
|
1558 |
+
return $this->item;
|
1559 |
+
}
|
1560 |
+
public function setJoinDate($joinDate) {
|
1561 |
+
$this->joinDate = $joinDate;
|
1562 |
+
}
|
1563 |
+
public function getJoinDate() {
|
1564 |
+
return $this->joinDate;
|
1565 |
+
}
|
1566 |
+
public function setSites($sites) {
|
1567 |
+
$this->sites = $sites;
|
1568 |
+
}
|
1569 |
+
public function getSites() {
|
1570 |
+
return $this->sites;
|
1571 |
+
}
|
1572 |
+
public function setId($id) {
|
1573 |
+
$this->id = $id;
|
1574 |
+
}
|
1575 |
+
public function getId() {
|
1576 |
+
return $this->id;
|
1577 |
+
}
|
1578 |
+
}
|
1579 |
+
|
1580 |
+
class Google_Publishers extends Google_Model {
|
1581 |
+
public $nextPageToken;
|
1582 |
+
protected $__itemsType = 'Google_Publisher';
|
1583 |
+
protected $__itemsDataType = 'array';
|
1584 |
+
public $items;
|
1585 |
+
public $kind;
|
1586 |
+
public function setNextPageToken($nextPageToken) {
|
1587 |
+
$this->nextPageToken = $nextPageToken;
|
1588 |
+
}
|
1589 |
+
public function getNextPageToken() {
|
1590 |
+
return $this->nextPageToken;
|
1591 |
+
}
|
1592 |
+
public function setItems($items) {
|
1593 |
+
$this->assertIsArray($items, 'Google_Publisher', __METHOD__);
|
1594 |
+
$this->items = $items;
|
1595 |
+
}
|
1596 |
+
public function getItems() {
|
1597 |
+
return $this->items;
|
1598 |
+
}
|
1599 |
+
public function setKind($kind) {
|
1600 |
+
$this->kind = $kind;
|
1601 |
+
}
|
1602 |
+
public function getKind() {
|
1603 |
+
return $this->kind;
|
1604 |
+
}
|
1605 |
+
}
|
lib/SocialLogin/contrib/Google_LatitudeService.php
ADDED
@@ -0,0 +1,283 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "currentLocation" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $latitudeService = new Google_LatitudeService(...);
|
22 |
+
* $currentLocation = $latitudeService->currentLocation;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_CurrentLocationServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Updates or creates the user's current location. (currentLocation.insert)
|
30 |
+
*
|
31 |
+
* @param Google_Location $postBody
|
32 |
+
* @param array $optParams Optional parameters.
|
33 |
+
* @return Google_Location
|
34 |
+
*/
|
35 |
+
public function insert(Google_Location $postBody, $optParams = array()) {
|
36 |
+
$params = array('postBody' => $postBody);
|
37 |
+
$params = array_merge($params, $optParams);
|
38 |
+
$data = $this->__call('insert', array($params));
|
39 |
+
if ($this->useObjects()) {
|
40 |
+
return new Google_Location($data);
|
41 |
+
} else {
|
42 |
+
return $data;
|
43 |
+
}
|
44 |
+
}
|
45 |
+
/**
|
46 |
+
* Returns the authenticated user's current location. (currentLocation.get)
|
47 |
+
*
|
48 |
+
* @param array $optParams Optional parameters.
|
49 |
+
*
|
50 |
+
* @opt_param string granularity Granularity of the requested location.
|
51 |
+
* @return Google_Location
|
52 |
+
*/
|
53 |
+
public function get($optParams = array()) {
|
54 |
+
$params = array();
|
55 |
+
$params = array_merge($params, $optParams);
|
56 |
+
$data = $this->__call('get', array($params));
|
57 |
+
if ($this->useObjects()) {
|
58 |
+
return new Google_Location($data);
|
59 |
+
} else {
|
60 |
+
return $data;
|
61 |
+
}
|
62 |
+
}
|
63 |
+
/**
|
64 |
+
* Deletes the authenticated user's current location. (currentLocation.delete)
|
65 |
+
*
|
66 |
+
* @param array $optParams Optional parameters.
|
67 |
+
*/
|
68 |
+
public function delete($optParams = array()) {
|
69 |
+
$params = array();
|
70 |
+
$params = array_merge($params, $optParams);
|
71 |
+
$data = $this->__call('delete', array($params));
|
72 |
+
return $data;
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* The "location" collection of methods.
|
78 |
+
* Typical usage is:
|
79 |
+
* <code>
|
80 |
+
* $latitudeService = new Google_LatitudeService(...);
|
81 |
+
* $location = $latitudeService->location;
|
82 |
+
* </code>
|
83 |
+
*/
|
84 |
+
class Google_LocationServiceResource extends Google_ServiceResource {
|
85 |
+
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Inserts or updates a location in the user's location history. (location.insert)
|
89 |
+
*
|
90 |
+
* @param Google_Location $postBody
|
91 |
+
* @param array $optParams Optional parameters.
|
92 |
+
* @return Google_Location
|
93 |
+
*/
|
94 |
+
public function insert(Google_Location $postBody, $optParams = array()) {
|
95 |
+
$params = array('postBody' => $postBody);
|
96 |
+
$params = array_merge($params, $optParams);
|
97 |
+
$data = $this->__call('insert', array($params));
|
98 |
+
if ($this->useObjects()) {
|
99 |
+
return new Google_Location($data);
|
100 |
+
} else {
|
101 |
+
return $data;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
/**
|
105 |
+
* Reads a location from the user's location history. (location.get)
|
106 |
+
*
|
107 |
+
* @param string $locationId Timestamp of the location to read (ms since epoch).
|
108 |
+
* @param array $optParams Optional parameters.
|
109 |
+
*
|
110 |
+
* @opt_param string granularity Granularity of the location to return.
|
111 |
+
* @return Google_Location
|
112 |
+
*/
|
113 |
+
public function get($locationId, $optParams = array()) {
|
114 |
+
$params = array('locationId' => $locationId);
|
115 |
+
$params = array_merge($params, $optParams);
|
116 |
+
$data = $this->__call('get', array($params));
|
117 |
+
if ($this->useObjects()) {
|
118 |
+
return new Google_Location($data);
|
119 |
+
} else {
|
120 |
+
return $data;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
/**
|
124 |
+
* Lists the user's location history. (location.list)
|
125 |
+
*
|
126 |
+
* @param array $optParams Optional parameters.
|
127 |
+
*
|
128 |
+
* @opt_param string max-results Maximum number of locations to return.
|
129 |
+
* @opt_param string max-time Maximum timestamp of locations to return (ms since epoch).
|
130 |
+
* @opt_param string min-time Minimum timestamp of locations to return (ms since epoch).
|
131 |
+
* @opt_param string granularity Granularity of the requested locations.
|
132 |
+
* @return Google_LocationFeed
|
133 |
+
*/
|
134 |
+
public function listLocation($optParams = array()) {
|
135 |
+
$params = array();
|
136 |
+
$params = array_merge($params, $optParams);
|
137 |
+
$data = $this->__call('list', array($params));
|
138 |
+
if ($this->useObjects()) {
|
139 |
+
return new Google_LocationFeed($data);
|
140 |
+
} else {
|
141 |
+
return $data;
|
142 |
+
}
|
143 |
+
}
|
144 |
+
/**
|
145 |
+
* Deletes a location from the user's location history. (location.delete)
|
146 |
+
*
|
147 |
+
* @param string $locationId Timestamp of the location to delete (ms since epoch).
|
148 |
+
* @param array $optParams Optional parameters.
|
149 |
+
*/
|
150 |
+
public function delete($locationId, $optParams = array()) {
|
151 |
+
$params = array('locationId' => $locationId);
|
152 |
+
$params = array_merge($params, $optParams);
|
153 |
+
$data = $this->__call('delete', array($params));
|
154 |
+
return $data;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Service definition for Google_Latitude (v1).
|
160 |
+
*
|
161 |
+
* <p>
|
162 |
+
* Lets you read and update your current location and work with your location history
|
163 |
+
* </p>
|
164 |
+
*
|
165 |
+
* <p>
|
166 |
+
* For more information about this service, see the
|
167 |
+
* <a href="https://developers.google.com/latitude/v1/using" target="_blank">API Documentation</a>
|
168 |
+
* </p>
|
169 |
+
*
|
170 |
+
* @author Google, Inc.
|
171 |
+
*/
|
172 |
+
class Google_LatitudeService extends Google_Service {
|
173 |
+
public $currentLocation;
|
174 |
+
public $location;
|
175 |
+
/**
|
176 |
+
* Constructs the internal representation of the Latitude service.
|
177 |
+
*
|
178 |
+
* @param Google_Client $client
|
179 |
+
*/
|
180 |
+
public function __construct(Google_Client $client) {
|
181 |
+
$this->servicePath = 'latitude/v1/';
|
182 |
+
$this->version = 'v1';
|
183 |
+
$this->serviceName = 'latitude';
|
184 |
+
|
185 |
+
$client->addService($this->serviceName, $this->version);
|
186 |
+
$this->currentLocation = new Google_CurrentLocationServiceResource($this, $this->serviceName, 'currentLocation', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "request": {"$ref": "LatitudeCurrentlocationResourceJson"}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "httpMethod": "POST", "path": "currentLocation", "id": "latitude.currentLocation.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "parameters": {"granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "httpMethod": "GET", "path": "currentLocation", "id": "latitude.currentLocation.get"}, "delete": {"path": "currentLocation", "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "id": "latitude.currentLocation.delete", "httpMethod": "DELETE"}}}', true));
|
187 |
+
$this->location = new Google_LocationServiceResource($this, $this->serviceName, 'location', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "request": {"$ref": "Location"}, "response": {"$ref": "Location"}, "httpMethod": "POST", "path": "location", "id": "latitude.location.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "parameters": {"locationId": {"required": true, "type": "string", "location": "path"}, "granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "id": "latitude.location.get", "httpMethod": "GET", "path": "location/{locationId}", "response": {"$ref": "Location"}}, "list": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "parameters": {"max-results": {"type": "string", "location": "query"}, "max-time": {"type": "string", "location": "query"}, "min-time": {"type": "string", "location": "query"}, "granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "response": {"$ref": "LocationFeed"}, "httpMethod": "GET", "path": "location", "id": "latitude.location.list"}, "delete": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "path": "location/{locationId}", "id": "latitude.location.delete", "parameters": {"locationId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
188 |
+
|
189 |
+
}
|
190 |
+
}
|
191 |
+
|
192 |
+
class Google_Location extends Google_Model {
|
193 |
+
public $kind;
|
194 |
+
public $altitude;
|
195 |
+
public $longitude;
|
196 |
+
public $activityId;
|
197 |
+
public $latitude;
|
198 |
+
public $altitudeAccuracy;
|
199 |
+
public $timestampMs;
|
200 |
+
public $speed;
|
201 |
+
public $heading;
|
202 |
+
public $accuracy;
|
203 |
+
public function setKind($kind) {
|
204 |
+
$this->kind = $kind;
|
205 |
+
}
|
206 |
+
public function getKind() {
|
207 |
+
return $this->kind;
|
208 |
+
}
|
209 |
+
public function setAltitude($altitude) {
|
210 |
+
$this->altitude = $altitude;
|
211 |
+
}
|
212 |
+
public function getAltitude() {
|
213 |
+
return $this->altitude;
|
214 |
+
}
|
215 |
+
public function setLongitude($longitude) {
|
216 |
+
$this->longitude = $longitude;
|
217 |
+
}
|
218 |
+
public function getLongitude() {
|
219 |
+
return $this->longitude;
|
220 |
+
}
|
221 |
+
public function setActivityId($activityId) {
|
222 |
+
$this->activityId = $activityId;
|
223 |
+
}
|
224 |
+
public function getActivityId() {
|
225 |
+
return $this->activityId;
|
226 |
+
}
|
227 |
+
public function setLatitude($latitude) {
|
228 |
+
$this->latitude = $latitude;
|
229 |
+
}
|
230 |
+
public function getLatitude() {
|
231 |
+
return $this->latitude;
|
232 |
+
}
|
233 |
+
public function setAltitudeAccuracy($altitudeAccuracy) {
|
234 |
+
$this->altitudeAccuracy = $altitudeAccuracy;
|
235 |
+
}
|
236 |
+
public function getAltitudeAccuracy() {
|
237 |
+
return $this->altitudeAccuracy;
|
238 |
+
}
|
239 |
+
public function setTimestampMs($timestampMs) {
|
240 |
+
$this->timestampMs = $timestampMs;
|
241 |
+
}
|
242 |
+
public function getTimestampMs() {
|
243 |
+
return $this->timestampMs;
|
244 |
+
}
|
245 |
+
public function setSpeed($speed) {
|
246 |
+
$this->speed = $speed;
|
247 |
+
}
|
248 |
+
public function getSpeed() {
|
249 |
+
return $this->speed;
|
250 |
+
}
|
251 |
+
public function setHeading($heading) {
|
252 |
+
$this->heading = $heading;
|
253 |
+
}
|
254 |
+
public function getHeading() {
|
255 |
+
return $this->heading;
|
256 |
+
}
|
257 |
+
public function setAccuracy($accuracy) {
|
258 |
+
$this->accuracy = $accuracy;
|
259 |
+
}
|
260 |
+
public function getAccuracy() {
|
261 |
+
return $this->accuracy;
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
class Google_LocationFeed extends Google_Model {
|
266 |
+
protected $__itemsType = 'Google_Location';
|
267 |
+
protected $__itemsDataType = 'array';
|
268 |
+
public $items;
|
269 |
+
public $kind;
|
270 |
+
public function setItems(/* array(Google_Location) */ $items) {
|
271 |
+
$this->assertIsArray($items, 'Google_Location', __METHOD__);
|
272 |
+
$this->items = $items;
|
273 |
+
}
|
274 |
+
public function getItems() {
|
275 |
+
return $this->items;
|
276 |
+
}
|
277 |
+
public function setKind($kind)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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "licenseAssignments" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $licensingService = new Google_LicensingService(...);
|
22 |
+
* $licenseAssignments = $licensingService->licenseAssignments;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_LicenseAssignmentsServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Assign License. (licenseAssignments.insert)
|
30 |
+
*
|
31 |
+
* @param string $productId Name for product
|
32 |
+
* @param string $skuId Name for sku
|
33 |
+
* @param Google_LicenseAssignmentInsert $postBody
|
34 |
+
* @param array $optParams Optional parameters.
|
35 |
+
* @return Google_LicenseAssignment
|
36 |
+
*/
|
37 |
+
public function insert($productId, $skuId, Google_LicenseAssignmentInsert $postBody, $optParams = array()) {
|
38 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
|
39 |
+
$params = array_merge($params, $optParams);
|
40 |
+
$data = $this->__call('insert', array($params));
|
41 |
+
if ($this->useObjects()) {
|
42 |
+
return new Google_LicenseAssignment($data);
|
43 |
+
} else {
|
44 |
+
return $data;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
/**
|
48 |
+
* Get license assignment of a particular product and sku for a user (licenseAssignments.get)
|
49 |
+
*
|
50 |
+
* @param string $productId Name for product
|
51 |
+
* @param string $skuId Name for sku
|
52 |
+
* @param string $userId email id or unique Id of the user
|
53 |
+
* @param array $optParams Optional parameters.
|
54 |
+
* @return Google_LicenseAssignment
|
55 |
+
*/
|
56 |
+
public function get($productId, $skuId, $userId, $optParams = array()) {
|
57 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
|
58 |
+
$params = array_merge($params, $optParams);
|
59 |
+
$data = $this->__call('get', array($params));
|
60 |
+
if ($this->useObjects()) {
|
61 |
+
return new Google_LicenseAssignment($data);
|
62 |
+
} else {
|
63 |
+
return $data;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
/**
|
67 |
+
* List license assignments for given product and sku of the customer.
|
68 |
+
* (licenseAssignments.listForProductAndSku)
|
69 |
+
*
|
70 |
+
* @param string $productId Name for product
|
71 |
+
* @param string $skuId Name for sku
|
72 |
+
* @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
|
73 |
+
* @param array $optParams Optional parameters.
|
74 |
+
*
|
75 |
+
* @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
|
76 |
+
* @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
|
77 |
+
* @return Google_LicenseAssignmentList
|
78 |
+
*/
|
79 |
+
public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) {
|
80 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
|
81 |
+
$params = array_merge($params, $optParams);
|
82 |
+
$data = $this->__call('listForProductAndSku', array($params));
|
83 |
+
if ($this->useObjects()) {
|
84 |
+
return new Google_LicenseAssignmentList($data);
|
85 |
+
} else {
|
86 |
+
return $data;
|
87 |
+
}
|
88 |
+
}
|
89 |
+
/**
|
90 |
+
* List license assignments for given product of the customer. (licenseAssignments.listForProduct)
|
91 |
+
*
|
92 |
+
* @param string $productId Name for product
|
93 |
+
* @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
|
94 |
+
* @param array $optParams Optional parameters.
|
95 |
+
*
|
96 |
+
* @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
|
97 |
+
* @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
|
98 |
+
* @return Google_LicenseAssignmentList
|
99 |
+
*/
|
100 |
+
public function listForProduct($productId, $customerId, $optParams = array()) {
|
101 |
+
$params = array('productId' => $productId, 'customerId' => $customerId);
|
102 |
+
$params = array_merge($params, $optParams);
|
103 |
+
$data = $this->__call('listForProduct', array($params));
|
104 |
+
if ($this->useObjects()) {
|
105 |
+
return new Google_LicenseAssignmentList($data);
|
106 |
+
} else {
|
107 |
+
return $data;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
/**
|
111 |
+
* Assign License. (licenseAssignments.update)
|
112 |
+
*
|
113 |
+
* @param string $productId Name for product
|
114 |
+
* @param string $skuId Name for sku for which license would be revoked
|
115 |
+
* @param string $userId email id or unique Id of the user
|
116 |
+
* @param Google_LicenseAssignment $postBody
|
117 |
+
* @param array $optParams Optional parameters.
|
118 |
+
* @return Google_LicenseAssignment
|
119 |
+
*/
|
120 |
+
public function update($productId, $skuId, $userId, Google_LicenseAssignment $postBody, $optParams = array()) {
|
121 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
|
122 |
+
$params = array_merge($params, $optParams);
|
123 |
+
$data = $this->__call('update', array($params));
|
124 |
+
if ($this->useObjects()) {
|
125 |
+
return new Google_LicenseAssignment($data);
|
126 |
+
} else {
|
127 |
+
return $data;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
/**
|
131 |
+
* Assign License. This method supports patch semantics. (licenseAssignments.patch)
|
132 |
+
*
|
133 |
+
* @param string $productId Name for product
|
134 |
+
* @param string $skuId Name for sku for which license would be revoked
|
135 |
+
* @param string $userId email id or unique Id of the user
|
136 |
+
* @param Google_LicenseAssignment $postBody
|
137 |
+
* @param array $optParams Optional parameters.
|
138 |
+
* @return Google_LicenseAssignment
|
139 |
+
*/
|
140 |
+
public function patch($productId, $skuId, $userId, Google_LicenseAssignment $postBody, $optParams = array()) {
|
141 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
|
142 |
+
$params = array_merge($params, $optParams);
|
143 |
+
$data = $this->__call('patch', array($params));
|
144 |
+
if ($this->useObjects()) {
|
145 |
+
return new Google_LicenseAssignment($data);
|
146 |
+
} else {
|
147 |
+
return $data;
|
148 |
+
}
|
149 |
+
}
|
150 |
+
/**
|
151 |
+
* Revoke License. (licenseAssignments.delete)
|
152 |
+
*
|
153 |
+
* @param string $productId Name for product
|
154 |
+
* @param string $skuId Name for sku
|
155 |
+
* @param string $userId email id or unique Id of the user
|
156 |
+
* @param array $optParams Optional parameters.
|
157 |
+
*/
|
158 |
+
public function delete($productId, $skuId, $userId, $optParams = array()) {
|
159 |
+
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
|
160 |
+
$params = array_merge($params, $optParams);
|
161 |
+
$data = $this->__call('delete', array($params));
|
162 |
+
return $data;
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
/**
|
167 |
+
* Service definition for Google_Licensing (v1).
|
168 |
+
*
|
169 |
+
* <p>
|
170 |
+
* Licensing API to view and manage license for your domain.
|
171 |
+
* </p>
|
172 |
+
*
|
173 |
+
* <p>
|
174 |
+
* For more information about this service, see the
|
175 |
+
* <a href="https://developers.google.com/google-apps/licensing/" target="_blank">API Documentation</a>
|
176 |
+
* </p>
|
177 |
+
*
|
178 |
+
* @author Google, Inc.
|
179 |
+
*/
|
180 |
+
class Google_LicensingService extends Google_Service {
|
181 |
+
public $licenseAssignments;
|
182 |
+
/**
|
183 |
+
* Constructs the internal representation of the Licensing service.
|
184 |
+
*
|
185 |
+
* @param Google_Client $client
|
186 |
+
*/
|
187 |
+
public function __construct(Google_Client $client) {
|
188 |
+
$this->servicePath = 'apps/licensing/v1/product/';
|
189 |
+
$this->version = 'v1';
|
190 |
+
$this->serviceName = 'licensing';
|
191 |
+
|
192 |
+
$client->addService($this->serviceName, $this->version);
|
193 |
+
$this->licenseAssignments = new Google_LicenseAssignmentsServiceResource($this, $this->serviceName, 'licenseAssignments', json_decode('{"methods": {"insert": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignmentInsert"}, "id": "licensing.licenseAssignments.insert", "httpMethod": "POST", "path": "{productId}/sku/{skuId}/user", "response": {"$ref": "LicenseAssignment"}}, "get": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.get", "parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/user/{userId}"}, "listForProductAndSku": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignmentList"}, "id": "licensing.licenseAssignments.listForProductAndSku", "parameters": {"pageToken": {"default": "", "type": "string", "location": "query"}, "skuId": {"required": true, "type": "string", "location": "path"}, "customerId": {"required": true, "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "100", "maximum": "1000", "minimum": "1", "location": "query", "type": "integer"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/users"}, "listForProduct": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignmentList"}, "id": "licensing.licenseAssignments.listForProduct", "parameters": {"pageToken": {"default": "", "type": "string", "location": "query"}, "customerId": {"required": true, "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "100", "maximum": "1000", "minimum": "1", "location": "query", "type": "integer"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/users"}, "update": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.update", "httpMethod": "PUT", "path": "{productId}/sku/{skuId}/user/{userId}", "response": {"$ref": "LicenseAssignment"}}, "patch": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.patch", "httpMethod": "PATCH", "path": "{productId}/sku/{skuId}/user/{userId}", "response": {"$ref": "LicenseAssignment"}}, "delete": {"httpMethod": "DELETE", "id": "licensing.licenseAssignments.delete", "parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/user/{userId}"}}}', true));
|
194 |
+
|
195 |
+
}
|
196 |
+
}
|
197 |
+
|
198 |
+
class Google_LicenseAssignment extends Google_Model {
|
199 |
+
public $skuId;
|
200 |
+
public $kind;
|
201 |
+
public $userId;
|
202 |
+
public $etags;
|
203 |
+
public $selfLink;
|
204 |
+
public $productId;
|
205 |
+
public function setSkuId($skuId) {
|
206 |
+
$this->skuId = $skuId;
|
207 |
+
}
|
208 |
+
public function getSkuId() {
|
209 |
+
return $this->skuId;
|
210 |
+
}
|
211 |
+
public function setKind($kind) {
|
212 |
+
$this->kind = $kind;
|
213 |
+
}
|
214 |
+
public function getKind() {
|
215 |
+
return $this->kind;
|
216 |
+
}
|
217 |
+
public function setUserId($userId) {
|
218 |
+
$this->userId = $userId;
|
219 |
+
}
|
220 |
+
public function getUserId() {
|
221 |
+
return $this->userId;
|
222 |
+
}
|
223 |
+
public function setEtags($etags) {
|
224 |
+
$this->etags = $etags;
|
225 |
+
}
|
226 |
+
public function getEtags() {
|
227 |
+
return $this->etags;
|
228 |
+
}
|
229 |
+
public function setSelfLink($selfLink) {
|
230 |
+
$this->selfLink = $selfLink;
|
231 |
+
}
|
232 |
+
public function getSelfLink() {
|
233 |
+
return $this->selfLink;
|
234 |
+
}
|
235 |
+
public function setProductId($productId) {
|
236 |
+
$this->productId = $productId;
|
237 |
+
}
|
238 |
+
public function getProductId() {
|
239 |
+
return $this->productId;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
|
243 |
+
class Google_LicenseAssignmentInsert extends Google_Model {
|
244 |
+
public $userId;
|
245 |
+
public function setUserId($userId) {
|
246 |
+
$this->userId = $userId;
|
247 |
+
}
|
248 |
+
public function getUserId() {
|
249 |
+
return $this->userId;
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
class Google_LicenseAssignmentList extends Google_Model {
|
254 |
+
public $nextPageToken;
|
255 |
+
protected $__itemsType = 'Google_LicenseAssignment';
|
256 |
+
protected $__itemsDataType = 'array';
|
257 |
+
public $items;
|
258 |
+
public $kind;
|
259 |
+
public $etag;
|
260 |
+
public function setNextPageToken($nextPageToken) {
|
261 |
+
$this->nextPageToken = $nextPageToken;
|
262 |
+
}
|
263 |
+
public function getNextPageToken() {
|
264 |
+
return $this->nextPageToken;
|
265 |
+
}
|
266 |
+
public function setItems(/* array(Google_LicenseAssignment) */ $items) {
|
267 |
+
$this->assertIsArray($items, 'Google_LicenseAssignment', __METHOD__);
|
268 |
+
$this->items = $items;
|
269 |
+
}
|
270 |
+
public function getItems() {
|
271 |
+
return $this->items;
|
272 |
+
}
|
273 |
+
public function setKind($kind) {
|
274 |
+
$this->kind = $kind;
|
275 |
+
}
|
276 |
+
public function getKind() {
|
277 |
+
return $this->kind;
|
278 |
+
}
|
279 |
+
public function setEtag($etag) {
|
280 |
+
$this->etag = $etag;
|
281 |
+
}
|
282 |
+
public function getEtag() {
|
283 |
+
return $this->etag;
|
284 |
+
}
|
285 |
+
}
|
lib/SocialLogin/contrib/Google_ModeratorService.php
ADDED
@@ -0,0 +1,1888 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
4 |
+
* use this file except in compliance with the License. You may obtain a copy of
|
5 |
+
* the License at
|
6 |
+
*
|
7 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
*
|
9 |
+
* Unless required by applicable law or agreed to in writing, software
|
10 |
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
11 |
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
12 |
+
* License for the specific language governing permissions and limitations under
|
13 |
+
* the License.
|
14 |
+
*/
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* The "votes" collection of methods.
|
19 |
+
* Typical usage is:
|
20 |
+
* <code>
|
21 |
+
* $moderatorService = new Google_ModeratorService(...);
|
22 |
+
* $votes = $moderatorService->votes;
|
23 |
+
* </code>
|
24 |
+
*/
|
25 |
+
class Google_VotesServiceResource extends Google_ServiceResource {
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Inserts a new vote by the authenticated user for the specified submission within the specified
|
30 |
+
* series. (votes.insert)
|
31 |
+
*
|
32 |
+
* @param string $seriesId The decimal ID of the Series.
|
33 |
+
* @param string $submissionId The decimal ID of the Submission within the Series.
|
34 |
+
* @param Google_Vote $postBody
|
35 |
+
* @param array $optParams Optional parameters.
|
36 |
+
*
|
37 |
+
* @opt_param string unauthToken User identifier for unauthenticated usage mode
|
38 |
+
* @return Google_Vote
|
39 |
+
*/
|
40 |
+
public function insert($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
|
41 |
+
$params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
|
42 |
+
$params = array_merge($params, $optParams);
|
43 |
+
$data = $this->__call('insert', array($params));
|
44 |
+
if ($this->useObjects()) {
|
45 |
+
return new Google_Vote($data);
|
46 |
+
} else {
|
47 |
+
return $data;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
/**
|
51 |
+
* Updates the votes by the authenticated user for the specified submission within the specified
|
52 |
+
* series. This method supports patch semantics. (votes.patch)
|
53 |
+
*
|
54 |
+
* @param string $seriesId The decimal ID of the Series.
|
55 |
+
* @param string $submissionId The decimal ID of the Submission within the Series.
|
56 |
+
* @param Google_Vote $postBody
|
57 |
+
* @param array $optParams Optional parameters.
|
58 |
+
*
|
59 |
+
* @opt_param string userId
|
60 |
+
* @opt_param string unauthToken User identifier for unauthenticated usage mode
|
61 |
+
* @return Google_Vote
|
62 |
+
*/
|
63 |
+
public function patch($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
|
64 |
+
$params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
|
65 |
+
$params = array_merge($params, $optParams);
|
66 |
+
$data = $this->__call('patch', array($params));
|
67 |
+
if ($this->useObjects()) {
|
68 |
+
return new Google_Vote($data);
|
69 |
+
} else {
|
70 |
+
return $data;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
/**
|
74 |
+
* Lists the votes by the authenticated user for the given series. (votes.list)
|
75 |
+
*
|
76 |
+
* @param string $seriesId The decimal ID of the Series.
|
77 |
+
* @param array $optParams Optional parameters.
|
78 |
+
*
|
79 |
+
* @opt_param string max-results Maximum number of results to return.
|
80 |
+
* @opt_param string start-index Index of the first result to be retrieved.
|
81 |
+
* @return Google_VoteList
|
82 |
+
*/
|
83 |
+
public function listVotes($seriesId, $optParams = array()) {
|
84 |
+
$params = array('seriesId' => $seriesId);
|
85 |
+
$params = array_merge($params, $optParams);
|
86 |
+
$data = $this->__call('list', array($params));
|
87 |
+
if ($this->useObjects()) {
|
88 |
+
return new Google_VoteList($data);
|
89 |
+
} else {
|
90 |
+
return $data;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
/**
|
94 |
+
* Updates the votes by the authenticated user for the specified submission within the specified
|
95 |
+
* series. (votes.update)
|
96 |
+
*
|
97 |
+
* @param string $seriesId The decimal ID of the Series.
|
98 |
+
* @param string $submissionId The decimal ID of the Submission within the Series.
|
99 |
+
* @param Google_Vote $postBody
|
100 |
+
* @param array $optParams Optional parameters.
|
101 |
+
*
|
102 |
+
* @opt_param string userId
|
103 |
+
* @opt_param string unauthToken User identifier for unauthenticated usage mode
|
104 |
+
* @return Google_Vote
|
105 |
+
*/
|
106 |
+
public function update($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
|
107 |
+
$params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
|
108 |
+
$params = array_merge($params, $optParams);
|
109 |
+
$data = $this->__call('update', array($params));
|
110 |
+
if ($this->useObjects()) {
|
111 |
+
return new Google_Vote($data);
|
112 |
+
} else {
|
113 |
+
return $data;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
/**
|
117 |
+
* Returns the votes by the authenticated user for the specified submission within the specified
|
118 |
+
* series. (votes.get)
|
119 |
+
*
|
120 |
+
* @param string $seriesId The decimal ID of the Series.
|
121 |
+
* @param string $submissionId The decimal ID of the Submission within the Series.
|
122 |
+
* @param array $optParams Optional parameters.
|
123 |
+
*
|
124 |
+
* @opt_param string userId
|
125 |
+
* @opt_param string unauthToken User identifier for unauthenticated usage mode
|
126 |
+
* @return Google_Vote
|
127 |
+
*/
|
128 |
+
public function get($seriesId, $submissionId, $optParams = array()) {
|
129 |
+
$params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
|
130 |
+
$params = array_merge($params, $optParams);
|
131 |
+
$data = $this->__call('get', array($params));
|
132 |
+
if ($this->useObjects()) {
|
133 |
+
return new Google_Vote($data);
|
134 |
+
} else {
|
135 |
+
return $data;
|
136 |
+
}
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* The "responses" collection of methods.
|
142 |
+
* Typical usage is:
|
143 |
+
* <code>
|
144 |
+
* $moderatorService = new Google_ModeratorService(...);
|
145 |
+
* $responses = $moderatorService->responses;
|
146 |
+
* </code>
|
147 |
+
*/
|
148 |
+
class Google_ResponsesServiceResource extends Google_ServiceResource {
|
149 |
+
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Inserts a response for the specified submission in the specified topic within the specified
|
153 |
+
* series. (responses.insert)
|
154 |
+
*
|
155 |
+
* @param string $seriesId The decimal ID of the Series.
|
156 |
+
* @param string $topicId The decimal ID of the Topic within the Series.
|
157 |
+
* @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
|
158 |
+
* @param Google_Submission $postBody
|
159 |
+
* @param array $optParams Optional parameters.
|
160 |
+
*
|
161 |
+
* @opt_param string unauthToken User identifier for unauthenticated usage mode
|
162 |
+
* @opt_param bool anonymous Set to true to mark the new submission as anonymous.
|
163 |
+
* @return Google_Submission
|
164 |
+
*/
|
165 |
+
public function insert($seriesId, $topicId, $parentSubmissionId, Google_Submission $postBody, $optParams = array()) {
|
166 |
+
$params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmission
|